rblock.vel

Syntax

v = rblock.vel(p)
rblock.vel(p) = v

Get/set the rigid block velocity.

Returns:v - rigid block velocity vector
Accepts:v - rigid block velocity vector
Arguments:p - rigid block pointer

Component Access

f = rblock.vel (p)->x
rblock.vel (p)->x = f

f = rblock.vel.x(p)
rblock.vel.x(p) = f

Get/set the \(x\)-component of the rigid block velocity.

Returns:f - \(x\)-component of the rigid block velocity vector
Accepts:f - \(x\)-component of the rigid block velocity vector
Arguments:p - rigid block pointer

Access other vector components (\(y\), \(z\) (3D ONLY)) 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 (e.g., f = rblock.vel(p, 3)) 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 = rblock.vel.y(p)
f = rblock.vel.z(p) (3D ONLY)