modelTestWaterFlow1DFV_AdaptiveAverageTemp

Test case for FluidPh.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
SI.LengthLhex2Total length
SI.DiameterDihex0.02Internal diameter
SI.RadiusrhexDihex/2Internal radius
SI.LengthomegahexModelica.Constants.pi*DihexInternal perimeter
SI.AreaAhexModelica.Constants.pi*rhex^2Internal cross section
RealCfhex0.005Friction coefficient
SI.MassFlowRatewhex0.31Nominal mass flow rate
SI.Pressurephex3e5Initial pressure
SI.SpecificEnthalpyhsMedium.specificEnthalpy_pT(phex, 293.15)Initial inlet specific enthalpy
SI.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
FluidPh.ValveLinvalve
FluidPh.SourceMassFlowfluidSource
FluidPh.SinkPressurefluidSink
Modelica.Blocks.Sources.Constanttemperature
Modelica.Blocks.Sources.ConstantvalveOpening
FluidPh.SensTT_in
FluidPh.SensTT_out
Systemsystem
Thermal.TempSource1DFVtempSource
FluidPh.Flow1DFVhex
Modelica.Blocks.Sources.RampmassFlowRate

Contents

NameDescription
Medium

Revisions