Simulated mesoscopic structures of a domain wall in a ferroelastic lattice