modelTestWaterFlow1DFEM_J

Test case for Flow1Dfem

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The model is designed to test the coupling between the mass and energy balance equations in the component Flow1DFEM (fluid side of a heat exchanger, finite element method).

The pipe is connected to two pressure sources at the same pressure, with initial conditions corresponding to superheated steam @ 30 bar, 700 K.

At time t = 0, the two pressures start to increase, so that the fluid is compressed into the pipe. Since the configuration is symmetric, there is a forward flow in the left half of the pipe and a backward flow on the right half of the pipe. The parameter wout is an analytical estimate of the flow rate going out each end of the pipe, which is in a good agreement with the actual solution.

Parameters

TypeNameDefaultDescription
IntegerNnodes11
SI.LengthLhex10
SI.DiameterDihex0.02
SI.RadiusrhexDihex/2
SI.LengthomegahexModelica.Constants.pi*Dihex
SI.AreaAhexModelica.Constants.pi*rhex^2
SI.PerUnitCfhex0.05
SI.MassFlowRatewhex0.03
SI.Pressurephex30e5
SI.TemperatureThex700
SI.SpecificEnthalpyhhexMedium.specificEnthalpy_pT(phex, Thex)
SI.DensityrhohexMedium.density_pT(phex, Thex)
SI.SpecificHeatCapacitycvMedium.specificHeatCapacityCv(Medium.setState_pT(phex, Thex))

Components

TypeNameDefaultDescription
ThermoPower.Water.SinkPressuresink1
Water.Flow1DFEMpipe1
Systemsystem
Water.SourcePressuresource1
Modelica.Blocks.Sources.Rampramp

Contents

NameDescription
Medium

Revisions