longitudinal waves simulation