1 | partial 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;
|
---|
12 | end PartialHelmholtzMedium;
|
---|
13 |
|
---|
14 | package Types
|
---|
15 | record myFluidConstants
|
---|
16 | end myFluidConstants;
|
---|
17 | end Types;
|
---|
18 |
|
---|
19 | partial package PartialMedium
|
---|
20 | end PartialMedium;
|
---|
21 |
|
---|
22 | partial model PartialTestModel
|
---|
23 | replaceable package Medium = PartialMedium;
|
---|
24 | parameter Real p_start = Medium.p_default;
|
---|
25 | end PartialTestModel;
|
---|
26 |
|
---|
27 | model ButaneTestModel_dT
|
---|
28 | extends PartialTestModel(redeclare package Medium = PartialHelmholtzMedium(inputChoice = Medium.foo));
|
---|
29 | end ButaneTestModel_dT;
|
---|