ball.vel
Syntax
- v = ball.vel(bp)
- ball.vel(bp) = v
Get/set the ball velocity.
Returns: v - ball velocity vector Accepts: v - ball velocity vector Arguments: bp - ball pointer
Component Access
f = ball.vel
(bp)->x
ball.vel
(bp)->x
= f
- f = ball.vel.x(bp)
- ball.vel.x(bp) = f
Get/set the \(x\)-component of the ball velocity.
Returns: f - \(x\)-component of the ball velocity vector Accepts: f - \(x\)-component of the ball velocity vector Arguments: bp - ball 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 = ball.vel(bp,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.
Was this helpful? ... | FLAC3D © 2019, Itasca | Updated: Feb 25, 2024 |