gp.pos
Syntax
Vector Access
- v = gp.pos(gp<,i>)
- gp.pos(gp<,i>) = v
Get/set the position of the gridpoint. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value.
Note that changing position vectors during cycling will not update geometry-derived values calculated during an update. See the intrinsic
zone.force.update
.Returns: v - position vector or component
Accepts: v - position vector or component
Arguments: gp - gridpoint pointer
Component Access
- f = gp.pos.x(gp)
- gp.pos.x(gp) = f
Get/set the x-component position vector.
Returns: f - x-component position vector Accepts: f - x-component position vector Arguments: gp - gridpoint pointer
Was this helpful? ... | PFC 6.0 © 2019, Itasca | Updated: Nov 19, 2021 |