block.gp.force

Syntax

Vector Access

v = block.gp.force(ind)
block.gp.force(ind) = v

Get/set the gridpoint force vector.

Returns:v - gridpoint force vector
Accepts:v - gridpoint force vector
Arguments:ind - gridpoint index

Component Access

f = block.gp.force.x(ind)
block.gp.force.x(ind) = f

Get/set the \(x\)-force of the gridpoint.

Returns:f - \(x\)-force of the gridpoint
Accepts:f - \(x\)-force of the gridpoint
Arguments:ind - gridpoint index
f = block.gp.force.y(ind)
block.gp.force.y(ind) = f

Get/set the \(y\)-force of the gridpoint.

Returns:f - \(y\)-force of the gridpoint
Accepts:f - \(y\)-force of the gridpoint
Arguments:ind - gridpoint index