modelTestWaterFlow1DFEMnm_C

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 simulate the flow reversal througth the heat exchanger. The operating fluid is liquid water; the heat flux entering the heat exchanger is set to zero.
During the simulation, flow reversal is achieved:

  • t=500 s, Negative ramp variation (duration = 20 s) of the mass flow rate trough the heat exchanger. The final mass flow rate has the same magnitude and opposite direction with respect to the initial one.

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

Parameters

TypeNameDefaultDescription
IntegerNnodes12
Modelica.Units.SI.LengthLhex200
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.Pressurephex1e5
Modelica.Units.SI.SpecificEnthalpyhs1e5

Components

TypeNameDefaultDescription
TestWaterFlow1DFEM_CrefData
FluidPh.Flow1DFEMnmhex
FluidPh.ValveLinValveLin1
FluidPh.SinkPressureSinkP1
FluidPh.SourceMassFlowSourceW1
Modelica.Blocks.Sources.RampRamp1
Modelica.Blocks.Sources.ConstantConstant1
FluidPh.SensTT_in
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