modelHEXsimple

Generic base for heat exchanger. Calculates pressure drop. Defines main variables

Extends from FreeFluids.Interfaces.TwoFluidPorts (To be used by equipment with two fluid ports.).

Information

A very simple, and undefined, heat exchanger.
For the pressure drop you can consider it constant or variable with the flow.
Regarding heat transfer, you just have to supply the global heat transfer coefficient and the surface (or the power) of the exchanger, plus the inlet and outlet temperatures for the medium at the other side of the exchanger. The heat exchanged is calculated using the plain LMTD.

Parameters

TypeNameDefaultDescription
Ports links
BooleanuseElevDifference (from TwoFluidPorts)trueintroduces, or not, an equation for the ports elevation. Use only in one connector
FreeFluids.Types.ElevationOptionelevCalcMethod (from TwoFluidPorts)FreeFluids.Types.ElevationOption.differentialif useElevDifference==true, selects the equation to use: differential, or absolute for PortB
Modelica.Units.SI.LengthelevDifference (from TwoFluidPorts)0.0used only if previously selected. Positive if PortB higher than PortA
Modelica.Units.SI.LengthportBelevation (from TwoFluidPorts)0.0used only if previously selected.
BooleancalcEnthalpyDifference (from TwoFluidPorts)trueif true, will calculate the enthalpy difference between ports. Use only in one connector
BooleanpassComposition (from TwoFluidPorts)trueif true, the equation PortA.X=PortB.X will be activated
Flow
BooleanuseFixedDiffPtrueif true fixed dP will be used. Otherwise a function of mass flow rate
Modelica.Units.SI.PressureDifferencedPpressure loss, constant or at reference flow rate. Negative if PortB.P < PortA.P
Modelica.Units.SI.MassFlowRaterefGreference mass flow rate. If useFixedDiffP is false
BooleanisLaminarFlowfalseflow regime to apply. Only if useFixedDiffP is false
Heat transfer
Modelica.Units.SI.CoefficientOfHeatTransferuglobal heat transfer coefficient
BooleanfixSurfacetrueif true, please fix the surface. If false, fix the power
Modelica.Units.SI.Areas0fixed heat exchange surface
Modelica.Units.SI.Powerwfixed heat transfer power. Positive if fluid inputs heat
Modelica.Units.SI.SpecificHeatCapacityextCp1003fixed specific heat capacity of external media. Air=1003. Water=4194
Modelica.Units.SI.TemperatureextTin298.15fixed external media inlet temperature
BooleanfixExternalFlowfalseif false, the external media outlet temp. must be given. If true, the external flow.
Modelica.Units.SI.MassFlowRateextGfixed external media massic flow
Modelica.Units.SI.TemperatureextTout318.15fixed external media outlet temperature
BooleancounterCurrentFlowtrueif false, concurrent flow is considered

Connectors

TypeNameDefaultDescription
FreeFluids.Interfaces.FluidPortAPortA (from TwoFluidPorts)
FreeFluids.Interfaces.FluidPortBPortB (from TwoFluidPorts)

Components

TypeNameDefaultDescription
Modelica.Units.SI.SpecificEnthalpyHdiff (from TwoFluidPorts)specific enthalpy difference: Port B - Port A
Modelica.Units.SI.PressureDifferencePdiff (from TwoFluidPorts)pressure difference: Port B - Port A
Modelica.Units.SI.TemperatureDifferenceLMTD
Modelica.Units.SI.AreaS
Modelica.Units.SI.MassFlowRateGextexternal media mass flow rate
Modelica.Units.SI.TemperatureTextOut
Modelica.Units.SI.ThermalConductanceThConductanceW/K
Modelica.Units.SI.PowerWheat transfer. Positive if fluid inputs heat
Medium.ThermodynamicStateStateAstate at PortA
Medium.ThermodynamicStateStateBstate at PortB
Medium.TemperatureTa
Medium.TemperatureTb