modelTestWaterFlow1DFEMnm_F

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_pA/B (pressure)
  • delta_hA/B (specific enthalpy profile)
  • delta_TA/B (semperature profile)
  • delta_wA/B (mass flowrate profile)
  • delta_phiA/B (heat flux profile)

This model represent the two fluid sides of a heat exchanger in counterflow configuration. The two sides are divided by a metal wall. The operating fluid is liquid water. The mass flow rate during the experiment and initial conditions are the same for the two sides.
During the simulation, the inlet specific enthalpy for hexA ("hot side") is changed:

  • t=50 s, Step variation of the specific enthalpy of the fluid entering hexA .
The outlet temperature of the hot side changes after the fluid transport time delay and the first order delay due to the wall's thermal inertia. The outlet temperature of the cold side starts changing after the thermal inertia delay.

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

Parameters

TypeNameDefaultDescription
IntegerNnodes16
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.SpecificEnthalpyhinhex1e5
Modelica.Units.SI.SpecificEnthalpyhouthex1e5

Components

TypeNameDefaultDescription
TestWaterFlow1DFEM_FrefData
FluidPh.Flow1DFEMnmhexA
FluidPh.SinkPressureSideA_FluidSink
FluidPh.SinkPressureSideB_FluidSink
FluidPh.SourceMassFlowSideA_MassFlowRate
FluidPh.ValveLinValveLin1
FluidPh.ValveLinValveLin2
FluidPh.Flow1DFEMnmhexB
Thermal.MetalTubeFEMMetalWall
FluidPh.SensTSensT_A_in
Modelica.Blocks.Sources.StepSideA_InSpecEnth
Modelica.Blocks.Sources.ConstantConstant1
Modelica.Blocks.Sources.ConstantConstant2
FluidPh.SensTSensT_B_in
FluidPh.SourceMassFlowSourceW1
FluidPh.SensTSensT_A_out
FluidPh.SensTSensT_B_out
Thermal.CounterCurrentFEMCounterCurrent1
Systemsystem
SI.Pressuredelta_pA(refData.hexA.p - hexA.p)/1e5
SI.SpecificEnthalpydelta_hA(refData.hexA.h - hexA.h)/1e5
SI.TemperatureDifferencedelta_TA(refData.hexA.T - hexA.T)/1e2
SI.MassFlowRatedelta_wA(refData.hexA.w - hexA.w)/0.1
SI.HeatFluxdelta_phiA(refData.hexA.heatTransfer.phi_f - hexA.phi)/1e4
SI.Pressuredelta_pB(refData.hexB.p - hexB.p)/1e5
SI.SpecificEnthalpydelta_hB(refData.hexB.h - hexB.h)/1e5
SI.TemperatureDifferencedelta_TB(refData.hexB.T - hexB.T)/1e2
SI.MassFlowRatedelta_wB(refData.hexB.w - hexB.w)/0.1
SI.HeatFluxdelta_phiB(refData.hexB.heatTransfer.phi_f - hexB.phi)/1e4

Contents

NameDescription
Medium

Revisions