| 1 | within ;
|
|---|
| 2 | package 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 |
|
|---|
| 25 | block 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}})));
|
|---|
| 31 | equation
|
|---|
| 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}})));
|
|---|
| 37 | end MIMO;
|
|---|
| 38 | annotation (uses(Modelica(version="3.2.1")));
|
|---|
| 39 | end MIMO;
|
|---|