Figure 23: Ports for physical interaction in SysML

Gallery
Tutorial
Click on the image to view it full size

model Spring
  Flange p1;
  Flange p2;
end Spring;
connector Flange
  flow Real f;
  Real lV;
end Flange;
There are errors, the type Real used directly for both 'f' and 'lV' are wrong (or at least not fully consistent): Export of block Spring to Modelica from the MagicDraw SysML Plugin or Magic Cyber-Systems Engineer ® (Cameo Systems Modeler®) gives:

model Spring
  Spring _Spring;
  model Spring
    Flange p1;
    Flange p2;
  end Spring;
  connector Flange
    flow Force f;
    Velocity lV;
  end Flange;
  type Force=Real(unit="N");
  type Velocity=Real(unit="m/s");
end Spring;
Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)