SimpleDomains - Rotational

Gallery
Tutorial
Click on the image to view it full size

The Modelica By Example target code is:


connector Rotational
     Modelica.SIunits.Angle phi;
     flow Modelica.SIunits.Torque tau;
end Rotational;

Unfortunately, we can't just use AMomFlowElement and FlowingAMom from the SysPhS , because FlowingAMom is based on angular velocity rather than angle, which is not how the Modelica By Example chooses to approach it:

DomainThrough VariableAcross Variable
ElectricalCurrent [A]Voltage [V]
ThermalHeat [W]Temperature [K]
TranslationalForce [N]Position [m]
RotationalTorque [N.m]Angle [rad]

Therefore for this trail angle-based FlowingAngularMomentum and AngularMomentumFlowElement are introduced, from which an equivalent Modelica connector can then be generated via SysPhS as part of a minimal rotational system:


model RotationalContext
  RotationalContext _RotationalContext;
  model RotationalContext
    RotationalA a;
    RotationalB b;
  equation
    connect(a.io,b.io);
  end RotationalContext;
  model RotationalA
    AngularMomentumFlowElement io;
  end RotationalA;
  model RotationalB
    AngularMomentumFlowElement io;
  end RotationalB;

  connector AngularMomentumFlowElement
    flow Torque tau;
    Angle phi;
  end AngularMomentumFlowElement;

  type Torque=Real(unit="N·m");
  type Angle=Real(unit="rad");
end RotationalContext;
Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)
External links