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.'
SysPhS-1.1: p.30: text and Figure 22: Incorrect references to 'RealInSignalElement' and 'RealOutSignalElement' (should be RealSignalInElement, RealSignalOutElement)
SysPhS-1.1: 'The following Modelica code corresponds to Figure 22. It has a model Spring, with two components u and y of type Real and of direction respectively in and out.'
model Spring in Real u; out Real y; end Spring;
SysPhS-1.1: p.30: 10.7.4 Modelica modeling, signal flow: Example Modelica code for Spring corresponding to 'Figure 22: Ports for signal flow in SysML' is invalid [should probably be 'input Real u;' and 'output Real y;' not 'in ...' and 'out ...']
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.
Springto 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;
connector RealInput = input Real "'input Real' as connector";
connector RealOutput = output Real "'output Real' as connector";