HeatTransfer.PartialTwoPhaseHeatTransfer
Partial base class for an N-cell two-phase convective heat-transfer model.
Provides the per-cell heat balance Q = alpha * A * (T_wall - T_fluid), the linkage to a HeatPort array, the per-cell thermodynamic states, and the geometry/state-derived variables (Ts, ds, m_flows, ...). The cell-side flow state must be driven externally — typically the parent distributed-volume component binds states[i].p / states[i].h and the cell velocities vs[i]. Extending components must supply the alphas[i] closure (e.g. ConstantPhasic selects phase-specific values from vapor quality xs[i]). Sign convention: Q_flows[i] = heatPorts[i].Q_flow, so positive Q_flow means heat into the fluid.
Usage
HVACComponents.HeatTransfer.PartialTwoPhaseHeatTransfer(medium_data, surfaceAreas, lengths, dimensions, roughnesses, diameters=missing, As=missing, alpha0, ps_start, hs_start)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
N | Number of heat-transfer control volumes | – | |
medium_data | Refrigerant medium properties | – | |
surfaceAreas | Per-cell heat-transfer surface area [m^2] (length N) | – | |
lengths | Per-cell axial length [m] (length N) | – | |
dimensions | Per-cell characteristic dimension (hydraulic diameter) [m] (length N) | – | |
roughnesses | Per-cell wall roughness [m] (length N) | – | |
alpha0 | Nominal heat-transfer coefficient used as the solver guess for alphas [W/(m^2.K)] | – | |
ps_start | Initial pressure profile across the cells [Pa] (length N) | Pa | |
hs_start | Initial specific-enthalpy profile across the cells [J/kg] (length N) | J/kg |
Connectors
heatPorts- This connector represents a thermal port with temperature and heat flow as the potential and flow variables, respectively. (HeatPort)
Variables
| Name | Description | Units |
|---|---|---|
vs | Per-cell mean velocity [m/s] (length N); typically bound externally | – |
Ts | Per-cell fluid temperature [K] (length N) | K |
ds | Per-cell fluid density [kg/m^3] (length N) | – |
m_flows | Per-cell mass flow rate [kg/s] (length N; = ds * vs * As) | kg/s |
alphas | Per-cell heat-transfer coefficient [W/(m^2.K)] (length N); extender supplies | – |
xs | Per-cell vapor quality [-] (length N); typically bound externally | – |
Q_flows | Per-cell heat flow into the fluid [W] (length N; = heatPorts[i].Q_flow) | W |