Ticket #4558: ButaneTestModel_dT.mo

File ButaneTestModel_dT.mo, 727 bytes (added by Per Östlund, 7 years ago)

Minimal test model

Line 
1partial package PartialHelmholtzMedium
2 extends PartialMedium(redeclare record foo = Types.myFluidConstants);
3
4 record HelmholtzDerivs
5 end HelmholtzDerivs;
6
7 constant InputChoice inputChoice;
8
9 function setState_pTX
10 HelmholtzDerivs f;
11 end setState_pTX;
12end PartialHelmholtzMedium;
13
14package Types
15 record myFluidConstants
16 end myFluidConstants;
17end Types;
18
19partial package PartialMedium
20end PartialMedium;
21
22partial model PartialTestModel
23 replaceable package Medium = PartialMedium;
24 parameter Real p_start = Medium.p_default;
25end PartialTestModel;
26
27model ButaneTestModel_dT
28 extends PartialTestModel(redeclare package Medium = PartialHelmholtzMedium(inputChoice = Medium.foo));
29end ButaneTestModel_dT;