gp.vel

Syntax

Vector Access

v := gp.vel(gp<,i>)
gp.vel(gp<,i>) := v

Get/set the velocity vector for the gridpoint. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value.

Returns:

v - velocity vector or component

Accepts:

v - velocity vector or component

Arguments:

z - zone pointer

i - optional vector component, from 1 to 3

Component Access

f := gp.vel.x(gp)
gp.vel.x(gp) := f

Get/set the \(x\)-component velocity vector.

Returns:f - \(x\)-component velocity vector
Accepts:f - \(x\)-component velocity vector
Arguments:z - zone pointer
f := gp.vel.y(gp)
gp.vel.y(gp) := f

Get/set the \(y\)-component velocity vector.

Returns:f - \(y\)-component velocity vector
Accepts:f - \(y\)-component velocity vector
Arguments:z - zone pointer
f := gp.vel.z(gp)
gp.vel.z(gp) := f

Get/set the \(z\)-component velocity vector.

Returns:f - \(z\)-component velocity vector
Accepts:f - \(z\)-component velocity vector
Arguments:z - zone pointer