WOLFRAM SYSTEM MODELER

selectBranch

Determine branch which is closest to initial angle=0<br><br>This class is declared protected in <a href="Modelica.Mechanics.MultiBody.Joints.Internal.PrismaticWithLengthConstraint.html">Modelica.Mechanics.MultiBody.Joints.Internal.PrismaticWithLengthConstraint</a>

Wolfram Language

In[1]:=
SystemModel["Modelica.Mechanics.MultiBody.Joints.Internal.PrismaticWithLengthConstraint.selectBranch"]
Out[1]:=

Syntax

positiveBranch = selectBranch(L, e, d_guess, r_a, r_b)

Inputs (5)

L

Type: Length (m)

Description: Length of length constraint

e

Type: Real[3]

Description: Unit vector along axis of translation, resolved in frame_a (= same in frame_b)

d_guess

Type: Position (m)

Description: Select the configuration such that at initial time |d-d_guess| is minimal (d: distance between origin of frame_a and origin of frame_b)

r_a

Type: Position[3] (m)

Description: Position vector from frame_a to frame_a side of length constraint, resolved in frame_a of prismatic joint

r_b

Type: Position[3] (m)

Description: Position vector from frame_b to frame_b side of length constraint, resolved in frame_b of prismatic joint

Outputs (1)

positiveBranch

Type: Boolean

Description: Branch of the initial solution