HX Air Solid
Heat exchanger between Air and Solid
Description
Equations
Variables
Connections
Parameters
See Also
The HX Air Solid component models a generic heat exchanger between Fluid Air and Solid materials for the lumped thermal fluid simulation of Air. This component mainly calculates pressure difference, mass flow rate and heat flow rate.
The calculation is changed based on parameter values of Type of flow and Dynamics of mass in the Air Settings component.
Type of flow = Linear and Dynamics of mass = Static
Pressure difference is calculated with:
dp=1A⋅α__linear⋅mflow
Heat transfer coefficient is calculated with:
h__act=h
Reynolds number is calculated with:
Re__h=maxinStream`port_a.rho`+inStream`port_b.rho`2⋅v⋅D__hμ,0.1
Prandtl is calculated with:
Pr=vis⋅c__pk
Type of flow = Linear and Dynamics of mass = Dynamic
Mass flow rate is calculated with:
mflow=A⋅α__linear⋅dp
Prandtl number is calculated with:
Pr=μ⋅c__pk
Type of flow = Square root and Dynamics of mass = Static
dp=1A⋅α__sqrt2⋅mflow2⋅signmflow
Type of flow = Square root and Dynamics of mass = Dynamic
In theory, Mass flow rate is calculated with:
mflow=A⋅α__sqrt⋅dp⋅signdp
In the Heat Transfer Library, the following equation is used to resolve difficulties of the numerical calculation:
mflow=A⋅α__sqrt⋅`HeatTransfer.Functions.regRoot`dp,sharpness
(*) `HeatTransfer.Functions.regRoot` is the same function as `Modelica.Fluid.Utilities.regRoot`. To check the details of the package and view the original documentation, which includes author and copyright information, click here.
Type of flow = Darcy-Weisbach and Dynamics of mass = Static
Pressure difference is calculated with Darcy–Weisbach equation:
dp=12⋅λ⋅LD__h⋅A2⋅{inStream`port_a.rho`dp≥0inStream`port_b.rho`others⋅mflow2⋅signmflow
h__act=1−κ__h⋅h__lam+κ__h⋅h__tur
h__lam=kD__h⋅3.66
h__tur={kD__h⋅0.023⋅Re__h0.8⋅Pr0.4`solid.T`<`port_a.T`+`port_b.T`2kD__h⋅0.023⋅Re__h0.8⋅Pr0.3others
κ__h=tanhIF__speed⋅Re__h−Re__CoT2+12
Re__h_target=maxinStream`port_a.rho`+inStream`port_b.rho`2⋅v⋅D__hμ,0.1
ⅆRe__hⅆt=Re__h_target−Re__hT__const
Type of flow = Darcy-Weisbach and Dynamics of mass = Dynamic
In theory, Mass flow rate is calculated with Darcy–Weisbach equation:
mflow=2⋅D__h⋅A2λ⋅L⋅{inStream`port_a.rho`dp≥0inStream`port_b.rho`others⋅dp⋅signdp
mflow=2⋅D__h⋅A2λ⋅L⋅`HeatTransfer.Functions.regRoot2`dp,dp_small,inStream`port_a.rho`,inStream`port_b.rho`,true,sharpness
(*) `HeatTransfer.Functions.regRoot2` is the same function as `Modelica.Fluid.Utilities.regRoot2`. To check the details of the package and view the original documentation, which includes author and copyright information, click here.
Definitions related to Mass flow rate and pressure :
dp=`port_a.p`−`port_b.p`
v=mflow{inStream`port_a.rho`dp≥0inStream`port_b.rho`others⋅A
`port_a.mflow`=mflow
`port_b.mflow`=−mflow
Definitions related to Heat flow rate:
Q_flow=h__act⋅A__surface⋅`solid.T`−inStream`port_a.T`+inStream`port_b.T`2
q_flow=Q_flowmaxmflow,0.00001
If Dynamics of mass is Static, specific enthalpy is defined with:
`port_a.hflow`=inStream`port_b.hflow`mflow≥0inStream`port_b.hflow`+q_flowothers
`port_b.hflow`=inStream`port_a.hflow`+q_flowmflow≥0inStream`port_a.hflow`others
If Dynamics of mass is Dynamic, specific enthalpy is defined with:
`port_a.hflow`=inStream`port_b.hflow`dp≥0inStream`port_b.hflow`+q_flowothers
`port_b.hflow`=inStream`port_a.hflow`+q_flowdp≥0inStream`port_a.hflow`others
If Fidelity of properties = Constant, properties μ and c__p and k are constants.
(*) Regarding the value of properties for Constant, see more in Air Settings.
If Fidelity of properties = Ideal Gas (NASA Polynomial), properties are calculated with:
μ=Function__visinStream`port_a.T`+inStream`port_b.T`2
c__p=Function__cpinStream`port_a.T`+inStream`port_b.T`2
k=Function__kinStream`port_a.T`+inStream`port_b.T`2
(*) The properties are defined with NASA polynomials and coefficients, see more in Air Settings.
Port's variables are defined with:
`port_a.rho`=inStream`port_b.rho`
`port_b.rho`=inStream`port_a.rho`
`port_a.T`=inStream`port_b.T`
`port_b.T`=inStream`port_a.T`
Symbol
Units
Modelica ID
dp
Pa
Pressure difference
p
mflow
kgs
Mass flow rate
v
ms
Velocity of flow
h__act
Wm2⋅K
Heat transfer coefficient used for Fluid simulation
h_act
Re__h
−
Reynolds number for Heat transfer coefficient calculation
Re_h
Re__h_target
Targeted Reynolds number for Heat transfer coefficient calculation, if Fidelity of properties = Ideal Gas (NASA Polynomial) is valid.
Re_h_target
Pr
Prandtl number
κ__h
Intermittency factor to calculate Transition zone, if Fidelity of properties = Ideal Gas (NASA Polynomial) is valid.
kappa_h
h__lam
Heat transfer coefficient for Laminar flow, if Fidelity of properties = Ideal Gas (NASA Polynomial) is valid.
h_lam
h__tur
Heat transfer coefficient for Turbulent flow, if Fidelity of properties = Ideal Gas (NASA Polynomial) is valid.
h_tur
Q_flow
W
Heat flow rate between solid materials and fluid Air
q_flow
Wkg
Specific energy between solid materials and fluid Air
μ
Pa⋅s
Dynamic viscosity
vis
c__p
Jkg⋅K
Specific heat capacity at the constant pressure
cp
k
Wm⋅K
Thermal conductivity
Name
port__a
Air Port
port_a
port__b
port_b
solid
Heat Port
Default
Airsimulationsettings
AirSettings1
Specify a component of Air simulation settings
Settings
Type offlow
Linear
Select Flow calculation type
- Linear
- Square root
- Darcy-Weisbach
TypeOfFlow
α__linear
10
Flow coefficient for Linear type
alpha_lin
α__sqrt
60
Flow coefficient for Square root type
alpha_sqrt
L
0.1
m
Pipe length (Only for Darcy-Weisbach)
D__h
Internal hydraulic diameter (Only for Darcy-Weisbach)
Dh
A
Pi400
m2
Flow area
A__surface
Pi100
Surface are for Heat exchange
A_surface
λ
0.000015
Friction coefficient for Darcy-Weisbach equation
lambda
dp__small
Approximation of function for |dp| <= dp_small
dp_small
sharpness
1.0
Sharpness of approximation for sqrt(dp) and sqrt(rho * dp)
T__const
0.001
s
Time constant for Reynolds number calculation
T_const
Re__CoT
3500
Reynolds number of the center of Transition zone
Re_CoT
Spread ofIntermittencyfactor
0.007
Changing rate of Intermittency factor
IF_spread
Heat Transfer Library Overview
Air Overview
Air Basic Overview
Download Help Document