Skip to content
LIBRARY
HeatTransfer.ConstantPhasic.md

HeatTransfer.ConstantPhasic

Phase-resolved heat-transfer model with constant coefficients per regime.

For each cell, the heat-transfer coefficient is selected from the cell vapor quality: alpha_liq for liquid (x <= 0), alpha_vap for vapor (x >= 1), and alpha_2ph in the two-phase interior, with smooth transitions across the xdot_1 / xdot_2 boundaries. Drop this in wherever a PartialTwoPhaseHeatTransfer is required — e.g. the StraightPipe's heatTransfer slot.

This component extends from PartialTwoPhaseHeatTransfer

Usage

HVACComponents.HeatTransfer.ConstantPhasic(medium_data, surfaceAreas, lengths, dimensions, roughnesses, diameters=missing, As=missing, alpha0, ps_start, hs_start, alpha_liq, alpha_2ph, alpha_vap, xdot_1, xdot_2)

Parameters:

NameDescriptionUnitsDefault value
NNumber of heat-transfer control volumes
medium_dataRefrigerant medium properties
surfaceAreasPer-cell heat-transfer surface area [m^2] (length N)
lengthsPer-cell axial length [m] (length N)
dimensionsPer-cell characteristic dimension (hydraulic diameter) [m] (length N)
roughnessesPer-cell wall roughness [m] (length N)
alpha0Nominal heat-transfer coefficient used as the solver guess for alphas [W/(m^2.K)]
ps_startInitial pressure profile across the cells [Pa] (length N)Pa
hs_startInitial specific-enthalpy profile across the cells [J/kg] (length N)J/kg
alpha_liqLiquid-phase heat-transfer coefficient [W/(m^2.K)]
alpha_2phTwo-phase heat-transfer coefficient [W/(m^2.K)]
alpha_vapVapor-phase heat-transfer coefficient [W/(m^2.K)]
xdot_1Lower vapor-quality blending bound between liquid and two-phase [-] (typically ~0.05)
xdot_2Upper vapor-quality blending bound between two-phase and vapor [-] (typically ~0.9)

Connectors

  • heatPorts - This connector represents a thermal port with temperature and heat flow as the potential and flow variables, respectively. (HeatPort)

Variables

NameDescriptionUnits
vsPer-cell mean velocity [m/s] (length N); typically bound externally
TsPer-cell fluid temperature [K] (length N)K
dsPer-cell fluid density [kg/m^3] (length N)
m_flowsPer-cell mass flow rate [kg/s] (length N; = ds * vs * As)kg/s
alphasPer-cell heat-transfer coefficient [W/(m^2.K)] (length N); extender supplies
xsPer-cell vapor quality [-] (length N); typically bound externally
Q_flowsPer-cell heat flow into the fluid [W] (length N; = heatPorts[i].Q_flow)W