modelTestWaterFlow1DFEMnm_D

Test case for Flow1DFEM

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

Information

The model is designed to test 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)

This model is designed to the test compressibility effects. The operating fluid is superheated vapour; the heat flow entering the heat exchanger is set to zero.
During simulation mass flow rate changes:

  • t=2 s, Step variation of the inlet mass flow rate. The pressure increases with a first order dynamics, the tube actually behaving like a pressurized tank.

Simulation Interval = [0...2] sec
Integration Algorithm = DASSL
Algorithm Tolerance = 1e-6

Parameters

TypeNameDefaultDescription
IntegerNnodes12
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
RealCfhex0.005
Modelica.Units.SI.MassFlowRatewhex1e-2
Modelica.Units.SI.Pressurephex0.2e5
Modelica.Units.SI.SpecificEnthalpyhs3e6

Components

TypeNameDefaultDescription
TestWaterFlow1DFEM_DrefData
FluidPh.Flow1DFEMnmhex
FluidPh.SourceMassFlowMassFlowRateSource
FluidPh.SinkPressureFluidSink
FluidPh.ValveLinValveLin1
Modelica.Blocks.Sources.StepMassFlowRateStep
Modelica.Blocks.Sources.ConstantConstant1
FluidPh.SensPSensP
Systemsystem
SI.Pressuredelta_p(refData.hex.p - hex.p)/1e5
SI.SpecificEnthalpydelta_h(refData.hex.h - hex.h)/1e6
SI.TemperatureDifferencedelta_T(refData.hex.T - hex.T)/1e2
SI.MassFlowRatedelta_w(refData.hex.w - hex.w)/0.01
SI.HeatFluxdelta_phi(refData.hex.heatTransfer.phi_f - hex.phi)/1e4

Contents

NameDescription
Medium

Revisions