modelTestWaterFlow1DFEMnm_G

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) under reversing and zero flow conditions.

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 simulation starts with cold fluid in the pipe and with positive flow from the hot source on the left. Around t = 20, the flow is reversed, and cold fluid enters the pipe from the cold source on the right. Around t = 40, the flow is brought to zero and stays there.

Simulation Interval = [0...50] sec

Integration Algorithm = DASSL

Algorithm Tolerance = 1e-6

Parameters

TypeNameDefaultDescription
IntegerNnodes6
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.005
Modelica.Units.SI.MassFlowRatewhex0.3
Modelica.Units.SI.Pressurephex2e5
Modelica.Units.SI.SpecificEnthalpyhinhex1e5
Modelica.Units.SI.SpecificEnthalpyhouthex1e5
Modelica.Units.SI.SpecificEnthalpydeltah41800
Modelica.Units.SI.EnergyFlowRateW41800*whex

Components

TypeNameDefaultDescription
TestWaterFlow1DFEM_GrefData
FluidPh.SourceMassFlowFluid_Source
FluidPh.SinkPressureFluid_Sink
FluidPh.Flow1DFEMnmhex
FluidPh.SensTT_in
Modelica.Blocks.Sources.TimeTableMassFlowRate
FluidPh.SensTT_out
Systemsystem
SI.Pressuredelta_p(refData.hex.p - hex.p)/1e5
SI.SpecificEnthalpydelta_h(refData.hex.h - hex.h)/1e5
SI.TemperatureDifferencedelta_T(refData.hex.T - hex.T)/1e2
SI.MassFlowRatedelta_w(refData.hex.w - hex.w)/0.1
SI.HeatFluxdelta_phi(refData.hex.heatTransfer.phi_f - hex.phi)/1e4

Contents

NameDescription
Medium

Revisions