1 | within ;
|
---|
2 | package ParameterBug
|
---|
3 | model Test
|
---|
4 |
|
---|
5 | StaticPipe pipe1( redeclare model FlowModel = PartialGenericPipeFlow (m_flow_nominal=1));
|
---|
6 |
|
---|
7 | end Test;
|
---|
8 |
|
---|
9 | model StaticPipe "Basic pipe flow model without storage of mass or energy"
|
---|
10 |
|
---|
11 | // Pressure loss
|
---|
12 | replaceable model FlowModel = PartialGenericPipeFlow;
|
---|
13 |
|
---|
14 | FlowModel flowModel;
|
---|
15 |
|
---|
16 | end StaticPipe;
|
---|
17 |
|
---|
18 | model PartialGenericPipeFlow
|
---|
19 |
|
---|
20 | parameter Modelica.SIunits.MassFlowRate m_flow_nominal;
|
---|
21 |
|
---|
22 | end PartialGenericPipeFlow;
|
---|
23 | annotation (uses(Modelica(version="3.2")));
|
---|
24 | end ParameterBug;
|
---|