Tags and keywords
SysPhS-1.1: 'Figure 22 shows an example signal flow application. The block Spring has two ports u and y, of type RealInSignalElement and RealOutSignalElement from the signal flow library ..., respectively. RealInSignalElement has an in flow property rsig, while RealOutSignalElement has the same property with an out direction.'
model Spring
in Real u;
out Real y;
end Spring;
input
and output
:
Note that you can't connect directly to input Real u;
or output Real y;
in Modelica. They can, however, be referenced internally as is shown later in more detail in Figure 25: Constraint block for signal flow in SysML.
Spring
to Modelica from the MagicDraw SysML Plugin or Magic Cyber-Systems Engineer ® (Cameo Systems Modeler®) gives:
model Spring
Modelica.Blocks.Interfaces.RealInput u;
Modelica.Blocks.Interfaces.RealOutput y;
end Spring;
Where Modelica.Blocks.Interfaces.RealInput
is just:
connector RealInput = input Real "'input Real' as connector";
And Modelica.Blocks.Interfaces.RealOutput
is just:
connector RealOutput = output Real "'output Real' as connector";