Tags and keywords
model Spring
Flange p1;
Flange p2;
end Spring;
connector Flange
flow Real f;
Real lV;
end Flange;
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;