basic simulation loop
added z filter
analysis function for dipole and shear