Usually, the absolute angle and the absolute angular velocity of Modelica.Mechanics.Rotational.Components.Inertia models are used as state variables. In some circumstances, relative quantities are better suited, e.g., because it may be easier to supply initial values. In such cases, model RelativeStates allows the definition of state variables in the following way:

An example is given in the next figure


Here, the relative angle and the relative angular velocity between the two inertias are used as state variables. Additionally, the simulator selects either the absolute angle and absolute angular velocity of model inertia1 or of model inertia2 as state variables.

See also the discussion State Selection in the User's Guide of the Rotational library.

Generated at 2020-03-31T01:39:28Z by OpenModelicaOpenModelica 1.16.0~dev-258-g0359763 using GenerateDoc.mos