vorticity and velocity potential implemented