Vector Algebra

In this simulation the z component of the velocity vector is zero. The vector lies in the xy-plane. The rotation vector is perpendicular to the xy-plane; it has just a z component.

This results in:

a = (ax , ay, 0)

div a = ∂ax/∂x + ∂ay/∂y + 0 = ∂ax/∂x + ∂ay/∂y

rot v = (0, 0, ∂ay/∂x -∂ax/∂y)

When is the field without vortex: rotation = 0 ?

∂vy/∂x -∂vx/∂y =  0

This holds when ax = a(x) and ay = a(y); the components are functions of their own coordinates only (e.g.  ax = x2+3x-1, ay = y3-y2). This includes the case of both components being constants, whose derivative is zero (e.g. ax = 1, ay = -4).

If one component is a function of the other coordinate, then in general the field will have vortices, except when the partial derivatives just compensate, as for

rot (ax = y, ay = x) = (0, 0, 1 - 1)  = (0, 0, 0 ) = 0

When is the field without source: divergence = 0?

∂ax/∂x = - ∂ay/∂y

The partial derivatives must be equal in absolute value, with opposite sign (sum = zero).

The movement of the test object is determined and calculated by two simple ordinary differential equations: 

dx/dt = ax

dy/dt = ay