Ticket #3307: MIMO.mo

File MIMO.mo, 1.4 KB (added by Michael Wetter, 10 years ago)

test model to reproduce the error

Line 
1within ;
2package MIMO
3
4 connector FluidProperties "Type definition for fluid properties"
5 // No input or output is declared here, as the whole connector
6 // can be all input or all output variables.
7 Modelica.SIunits.SpecificEnthalpy h "Specific thermodynamic enthalpy";
8 Real X_w "Water vapor mass fractions per kg total air";
9 end FluidProperties;
10
11 connector inlet
12 input Modelica.SIunits.MassFlowRate m_flow;
13 input Modelica.SIunits.AbsolutePressure p;
14 input FluidProperties proFor;
15 output FluidProperties proBac;
16 end inlet;
17
18 connector outlet
19 output Modelica.SIunits.MassFlowRate m_flow;
20 output Modelica.SIunits.AbsolutePressure p;
21 input FluidProperties proBac;
22 output FluidProperties proFor;
23 end outlet;
24
25block MIMO "Test model"
26
27 inlet inlet1 annotation (Placement(transformation(extent={{-110,-10},{-90,10}}),
28 iconTransformation(extent={{-110,-10},{-90,10}})));
29 outlet outlet1 annotation (Placement(transformation(extent={{90,-10},{110,10}}),
30 iconTransformation(extent={{90,-10},{110,10}})));
31equation
32
33 connect(inlet1, outlet1)
34 annotation (Line(points={{-100,0},{100,0},{100,0}}, color={0,0,0}));
35 annotation (uses(Modelica(version="3.2.1")), Diagram(coordinateSystem(
36 preserveAspectRatio=false, extent={{-100,-100},{100,100}})));
37end MIMO;
38 annotation (uses(Modelica(version="3.2.1")));
39end MIMO;