modelTestWaterFlow1DFEMnm_K

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 Flow1DFEMnm vs the reference model Flow1DFEM (fluid side of a heat exchanger, finite element method).

The following relative errors can be used to check the results vs the reference model:

  • delta_p (pressure)
  • delta_h (specific enthalpy profile)
  • delta_T (semperature profile)
  • delta_w (mass flowrate profile)
  • delta_phi (heat flux profile)

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

At time t = 0, a constant uniform heat flux is applied to the lateral boundary of the pipe. The steam heats up and expands uniformly; since the configuration is symmetric, there is a backflow in the left half of the pipe and a forward 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
Modelica.Units.SI.LengthLhex10
Modelica.Units.SI.DiameterDihex0.02
Modelica.Units.SI.RadiusrhexDihex/2
Modelica.Units.SI.LengthomegahexModelica.Constants.pi*Dihex
Modelica.Units.SI.AreaAhexModelica.Constants.pi*rhex^2
Modelica.Units.SI.PerUnitCfhex0.05
Modelica.Units.SI.MassFlowRatewhex0.3
Modelica.Units.SI.Pressurephex30e5
Modelica.Units.SI.TemperatureThex700
Modelica.Units.SI.SpecificEnthalpyhhexMedium.specificEnthalpy_pT(phex, Thex)
Modelica.Units.SI.DensityrhohexMedium.density_pT(phex, Thex)
Modelica.Units.SI.SpecificHeatCapacitycpMedium.specificHeatCapacityCp(Medium.setState_pT(phex, Thex))
Modelica.Units.SI.EnergyFlowRateW100
Realdrho_dTrhohex/Thex
Modelica.Units.SI.MassMrhohex*Ahex*Lhex
RealdT_dtW/(cp*M)
Modelica.Units.SI.MassFlowRatedM_dTAhex*Lhex*drho_dT*dT_dt
Modelica.Units.SI.MassFlowRatewout0.5*dM_dT

Components

TypeNameDefaultDescription
TestWaterFlow1DFEM_KrefData
FluidPh.SinkPressuresink1
FluidPh.Flow1DFEMnmpipe1
Systemsystem
FluidPh.SourcePressuresource1
Thermal.HeatSource1DFEMheatSource1D
Modelica.Blocks.Sources.Stepstep
SI.Pressuredelta_p(refData.pipe1.p - pipe1.p)/1e5
SI.SpecificEnthalpydelta_h(refData.pipe1.h - pipe1.h)/1e5
SI.TemperatureDifferencedelta_T(refData.pipe1.T - pipe1.T)/1e2
SI.MassFlowRatedelta_w(refData.pipe1.w - pipe1.w)/0.1
SI.HeatFluxdelta_phi(refData.pipe1.heatTransfer.phi_f - pipe1.phi)/1e4

Contents

NameDescription
Medium

Revisions