# block.gp.vel

Syntax

v := block.gp.vel(bgpp)
block.gp.vel(bgpp) := v

Get/set the gridpoint velocity.

Returns: v - velocity vector v - velocity vector bgpp - block gridpoint pointer

Component Access

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

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

Get/set the $$x$$-component of the gridpoint velocity.

Returns: f - $$x$$-component of the gridpoint velocity vector f - $$x$$-component of the gridpoint velocity vector bgpp - block gridpoint pointer

Access other vector components ($$y$$, $$z$$) by substituting the component name where $$x$$ appears above. See Member Access Operator for information about accessing members from data types using ->.

Deprecated Component Access

Component access by adding an optional integer in the function arguments (block.gp.vel(bgpp,<int>)) is deprecated. It remains available but will not be supported in future versions. See Component Access with Integers in FISH on the Deprecated Commands and FISH page for details.

This is hidden. Added to include remaining vector component access functions for inline help.

f := block.gp.vel.y(bgpp)
f := block.gp.vel.z(bgpp)