External simulation: Languages and tools: SysML vs SysPhS vs Modelica vs Simulink Gallery Tutorial MINI TRAIL: Some recommended tools for getting started with Model-Based Systems Engineering with SysML and simulation with Modelica and/or Simulink Section
As of 2021-01-11 OpenModelica no longer has DMG install bundles for Mac, and currently does NOT install on Mac Big Sur using MacPorts!
Figure 29: State machine in SysML Gallery Tutorial SysPhS-1.1 in MagicDraw SysML (or Cameo Systems Modeler) vs Modelica Section Slide kind hybrid diagram SysML Block Definition Diagram (BDD) SysML StateMachine Diagram
The following Modelica code corresponds to Figure 28. It has a type Force, which extends Real, and the unit symbol N assigned to it. Source SysPhS-1.1
Modelica data types can be subtyped to add a unit symbol. The interpretation of this symbol is not defined in Modelica. Source SysPhS-1.1
Figure 28: Units in SysML Gallery Tutorial SysPhS-1.1 in MagicDraw SysML (or Cameo Systems Modeler) vs Modelica Section Slide kind SysML Block Definition Diagram (BDD)
It has a model B with a val component. The val component has a start value of 10. A class A is defined with a component b of type B. A component modification indicates that the start value of b.val is 20.0. Source SysPhS-1.1
SysML default and initial values correspond to start values of Modelica components. Start values are marked as fixed, requiring the values be set at the beginning of the simulation (otherwise, simulators only take the values as suggestions ...) Source SysPhS-1.1