Ticket #3476: connectorTest.mo

File connectorTest.mo, 752 bytes (added by Markus Dahl, 9 years ago)
Line 
1package connectorTest
2 partial package partialMedium
3 constant Integer nX;
4 end partialMedium;
5
6 connector advConnector
7 replaceable package Medium = connectorTest.OtherMedium;
8 Modelica.SIunits.Pressure p;
9 flow Modelica.SIunits.MassFlowRate m_flow;
10 stream Modelica.SIunits.Mass C_flow[Medium.nS];
11 end advConnector;
12
13 package PackageExample
14 extends connectorTest.partialMedium(nX = 2);
15 final constant Integer nS = 3;
16 end PackageExample;
17
18 package OtherMedium
19 final constant Integer nS = 3;
20 end OtherMedium;
21
22 model testModel
23 replaceable package Medium = PackageExample;
24 connectorTest.advConnector something(redeclare package Medium = Medium);
25 end testModel;
26end connectorTest;