modelTestWaterFlow1DFV_AdaptiveAverageTemp

Test case for Water.Flow1DFV

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model is designed to test the adaptive average temperature mechanism of the FlowDependentHeatTransferCoefficient model.

This model represent the fluid side of a heat exchanger with convective thermal exchange against an external source of constant and uniform temperature. The number of transfer units at the beginning of the transient with the nominal flow rate is NTU = 2.42.

By computing the heat transfer with the average volume temperatures, using three finite volumes the outlet temperature is computed at 66.17 degC, which is very close to the theoretical value 20+50*(1-exp(-NTU))=65.55.

After 10 seconds, the mass flow rate is rapidly reduced to zero. Thanks to the adaptive average temperature feature, when the flows gets below 10% of the nominal value, the heat transfer is computed as a function of the volume outlet temperatures instead of the average inlet/outlet temperature. As a consequence, all the temperatures correctly move to the value of the heat source

If the adaptiveAverageTemperature parameter of the heat transfer model is set to false, the values of the temperature along the heat exchanger approach non-physical values, some of them above the source temperature, and lead to a singularity when the flow rate is exactly zero.

Simulation Interval = [0...200] sec

Integration Algorithm = DASSL

Algorithm Tolerance = 1e-6

Parameters

TypeNameDefaultDescription
IntegerNnodes4Number of nodes
IntegerNt5Number of tubes
Modelica.SIunits.LengthLhex2Total length
Modelica.SIunits.DiameterDihex0.02Internal diameter
Modelica.SIunits.RadiusrhexDihex/2Internal radius
Modelica.SIunits.LengthomegahexModelica.Constants.pi*DihexInternal perimeter
Modelica.SIunits.AreaAhexModelica.Constants.pi*rhex^2Internal cross section
RealCfhex0.005Friction coefficient
Modelica.SIunits.MassFlowRatewhex0.31Nominal mass flow rate
Modelica.SIunits.Pressurephex3e5Initial pressure
Modelica.SIunits.SpecificEnthalpyhsMedium.specificEnthalpy_pT(phex, 293.15)Initial inlet specific enthalpy
Modelica.SIunits.CoefficientOfHeatTransfergamma5000Fixed heat transfer coefficient

Components

TypeNameDefaultDescription
RealcpMedium.specificHeatCapacityCp(hex.fluidState[1])
RealNTU(Nt*Lhex*Dihex*3.1415*gamma)/(whex*Medium.specificHeatCapacityCp(hex.fluidState[1]))Number of heat transfer units
Realalpha1 - exp(-NTU)Steady state gain of outlet temperature vs. external temperature
Water.ValveLinvalve
Water.SourceMassFlowfluidSource
Water.SinkPressurefluidSink
Modelica.Blocks.Sources.Constanttemperature
Modelica.Blocks.Sources.ConstantvalveOpening
Water.SensTT_in
Water.SensTT_out
Systemsystem
Thermal.TempSource1DFVtempSource
Water.Flow1DFVhex
Modelica.Blocks.Sources.RampmassFlowRate

Contents

NameDescription
Medium

Revisions