modelTestWaterFlow1DFEMnm_A

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 represent the fluid side of a heat exchanger with an applied external heat flow. The operating fluid is liquid water.
During the simulation, the inlet specific enthalpy, heat flux and mass flow rate are changed:

  • t=0 s, Step variation of the specific enthalpy of the fluid entering the heat exchanger. The outlet temperature should undergo a step change 10 s later.
  • t=30 s, Step variation of the thermal flow entering the heat exchanger lateral surface. The outlet temperature should undergo a ramp change lasting 10 s
  • t=50 s, Step variation of the mass flow rate entering the heat exchanger. Again, the outlet temperature should undergo a ramp change lasting 10s

Simulation Interval = [0...80] 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.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_ArefData
FluidPh.SourceMassFlowFluid_Source
FluidPh.SinkPressureFluid_Sink
FluidPh.ValveLinValve
FluidPh.Flow1DFEMnmhex
FluidPh.SensTT_in
Thermal.HeatSource1DFEMHeatSource1D1
Modelica.Blocks.Sources.StepMassFlowRate
Modelica.Blocks.Sources.ConstantConstant1
Modelica.Blocks.Sources.StepInSpecEnthalpy
Modelica.Blocks.Sources.StepExtPower
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