struct.node.fix

Syntax

i2 := struct.node.fix(sn,i1)
struct.node.fix(sn,i1) := b

Get/Set velocity-fixity flag expressed in the node-local system (degree-of-freedom component i1 ∈ {1, 2, … , 6} or {1, 2, 3} in 2D.

Get return value {1, 2, 3} denotes free, fixed, or buddied to velocity of target object, respectively. Buddied conditions arise from rigid attachment conditions; degrees-of-freedom that are buddied cannot be fixed.

Set accepts a boolean value to fix or free. If the node is buddied in that local degree of freedom, then an error will occur.

Returns:

i2 - integer value

Accepts:

b - true to fix or false to free.

Arguments:

sn - pointer to a structure node

i1 - degree-of-freedom component i1 ∈ {1, 2, … , 6} or {1, 2, 3} in 2D