# 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 v - velocity vector or component 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 f - $$x$$-component velocity vector 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 f - $$y$$-component velocity vector 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 f - $$z$$-component velocity vector z - zone pointer