block.gp.vel

Syntax

Vector Access

v/f = block.gp.vel(bgpp<,i>)
block.gp.vel(bgpp<,i>) = v/f

Get/set the gridpoint velocity. If the optional argument i is supplied, the return value/assignment is restricted by vector component (1 = \(x\), 2 = \(y\), 3 = \(z\)).

Returns:v or f - velocity vector or component
Accepts:v or f - velocity vector or component
Arguments:bgpp - block gridpoint pointer
i - optional index of component

Component Access

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

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

Returns:f - \(x\)-component applied velocity vector
Accepts:f - \(x\)-component applied velocity vector
Arguments:bgpp - block gridpoint pointer
f := block.gp.vel.y(bgpp)
block.gp.vel.y(bgpp) := f

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

Returns:f - \(y\)-component applied velocity vector
Accepts:f - \(y\)-component applied velocity vector
Arguments:bgpp - block gridpoint pointer
f := block.gp.vel.z(bgpp)
block.gp.vel.z(bgpp) := f

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

Returns:f - \(z\)-component applied velocity vector
Accepts:f - \(z\)-component applied velocity vector
Arguments:bgpp - block gridpoint pointer