Tags and keywords
The inheritance from block
Springshown in the following is not shown in the spec but it's pretty clear from the context:
SysPhS-1.1: 'SysML connectors correspond to Modelica connect equations, which link components typed by Modelica connectors. This depends on the correspondence between SysML port types and Modelica connectors ...'
SysPhS-1.1: 'The following Modelica code corresponds to Figure 24. It has a model Example with two components s1 and s2 of types SpringA and SpringB, respectively. The models SpringA and SpringB have two components p1 and p2 of type Flange, defined similarly to Spring'
Export of block
model Example SpringA s1; SpringB s2; equation connect(s1.p2, s2.p1); end Example;
Exampleto Modelica from the MagicDraw SysML Plugin or Magic Cyber-Systems Engineer® (Cameo Systems Modeler®) gives:
model Example Example _Example; model Example SpringA s1; SpringB s2; equation connect(s2.p1,s1.p2); end Example; model SpringA extends Spring; end SpringA; model SpringB extends Spring; end SpringB; connector Flange flow Force f; Velocity lV; end Flange; model Spring Flange p1; Flange p2; end Spring; type Force=Real(unit="N"); type Velocity=Real(unit="m/s"); end Example;