modelTestWaterFlow1DFEMnm_B

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 convective exchange with an external source at a given temperature.
The operating fluid is liquid water.
During the experiment the external (fixed) temperature changes:

  • t=20 s, Step variation of the external temperature. Heat exchanger outlet temperature should vary accordingly to the transfer function (K1/(1+s*tau1))*(1-exp(-K2-s*tau2)), where the parameters K1, K2, tau1, tau1 depend on exchanger geometry, the fluid heat transfer coefficient and operating conditions.

Simulation Interval = [0...200] 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.31
Modelica.Units.SI.Pressurephex3e5
Modelica.Units.SI.SpecificEnthalpyhs1e5

Components

TypeNameDefaultDescription
TestWaterFlow1DFEM_BrefData
FluidPh.Flow1DFEMnmhex
Thermal.TempSource1DFEMTempSource
FluidPh.ValveLinValveLin1
FluidPh.SourceMassFlowFluidSource
FluidPh.SinkPressureFluidSink
Modelica.Blocks.Sources.StepTemperature
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