pyskyfire.skycea.coolant_transport.TransportProperties¶
- class pyskyfire.skycea.coolant_transport.TransportProperties(Pr, mu, k, cp=None, rho=None, gamma_coolant=None)¶
Container for transport-property models (constants or callables).
This class stores transport properties that can be either constant scalars or callables of temperature and pressure in the order
(T [K], p [Pa]). It is suitable for walls, coolants, or generic working fluids. Whengamma_coolantis supplied, the instance is treated as a compressible coolant.- Parameters:
- Pr
floatorcallable() Prandtl number [-] or a function
Pr(T, p) -> float.- mu
floatorcallable() Dynamic (absolute) viscosity [Pa·s] or a function
mu(T, p) -> float.- k
floatorcallable() Thermal conductivity [W/(m·K)] or a function
k(T, p) -> float.- cp
floatorcallable(),optional Isobaric specific heat [J/(kg·K)] or
cp(T, p) -> float. Required when this object represents a coolant.- rho
floatorcallable(),optional Density [kg/m³] or
rho(T, p) -> float. Required when this object represents a coolant.- gamma_coolant
floatorcallable(),optional Ratio of specific heats
γ = cp/cv[-] orgamma(T, p) -> float. If provided, the object is assumed to represent a compressible coolant.
- Pr
- Attributes:
- compressible_coolantbool
Whether the instance represents a compressible coolant (
gamma_coolantwas provided).- _Pr, _mu, _k, _cp, _rho, _gamma_coolant
Any Backing values/callables as provided.
See also
FluidFluid identifier utilities used elsewhere in the package.
Notes
All callables must accept
(T [K], p [Pa])in that order.For coolants, both
cpandrhoshould be provided to allow
consistent thermo-fluid calculations.
- Pr(T, p)¶
Prandtl number.
- cp(T, p)¶
Isobaric specific heat capacity.
- Parameters:
- Returns:
floatc_p[J/(kg·K)].
- Raises:
ValueErrorIf
cpwas not provided at construction.
- gamma_coolant(T, p)¶
Ratio of specific heats for a compressible coolant.
- Parameters:
- Returns:
floatγ = c_p / c_v[-].
- Raises:
ValueErrorIf
gamma_coolantwas not provided at construction.
- k(T, p)¶
Thermal conductivity.
- mu(T, p)¶
Dynamic (absolute) viscosity.
- rho(T, p)¶
Density.
- Parameters:
- Returns:
floatDensity [kg/m³].
- Raises:
ValueErrorIf
rhowas not provided at construction.