WOLFRAM SYSTEM MODELER
BranchingDynamicPipesMulti-way connections of pipes with dynamic momentum balance, pressure wave and flow reversal |
SystemModel["Modelica.Fluid.Examples.BranchingDynamicPipes"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This model demonstrates the use of distributed pipe models with dynamic energy, mass and momentum balances. At time=2s the pressure of boundary4 jumps, which causes a pressure wave and flow reversal.
Change system.momentumDynamics on the Assumptions tab of the system object from SteadyStateInitial to SteadyState, in order to assume a steady-state momentum balance. This is the default for all models of the library.
Change the Medium from MoistAir to StandardWater, in order to investigate a medium with significantly different density. Note the static head caused by the elevation of the pipes.
Note the appropriate use of the modelStructure of the DynamicPipe models (Advanced tab). The default modelStructure is av_vb, i.e. volumes with a pressure state are exposed at both ports. In many cases this gives good numerical performance, avoiding algebraic loops in connections, e.g. if a pipe is connected to a valve or to a vessel with portsData configured. The price to pay is a high-index DAE if two pipes are connected or if a pipe is connected to a boundary with prescribed pressure. In such cases one might consider changing the modelStructure.
In the BranchingDynamicPipes example, {pipe1,pipe3,pipe4}.modelStructure are configured to a_v_b, while pipe2.modelStructure remains av_vb. This avoids a high-index DAE and overdetermined initial conditions.
system |
Type: System Description: System properties and default values (ambient, flow direction, initialization) |
|
---|---|---|
boundary1 |
Type: Boundary_pT Description: Boundary with prescribed pressure, temperature, composition and trace substances |
|
pipe1 |
Type: DynamicPipe Description: Dynamic pipe model with storage of mass and energy |
|
pipe2 |
Type: DynamicPipe Description: Dynamic pipe model with storage of mass and energy |
|
pipe3 |
Type: DynamicPipe Description: Dynamic pipe model with storage of mass and energy |
|
pipe4 |
Type: DynamicPipe Description: Dynamic pipe model with storage of mass and energy |
|
boundary4 |
Type: Boundary_pT Description: Boundary with prescribed pressure, temperature, composition and trace substances |
|
ramp1 |
Type: Ramp Description: Generate ramp signal |
|
heat2 |
Type: FixedHeatFlow[pipe2.nNodes] Description: Fixed heat flow boundary condition |