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. When gamma_coolant is supplied, the instance is treated as a compressible coolant.

Parameters:
Prfloat or callable()

Prandtl number [-] or a function Pr(T, p) -> float.

mufloat or callable()

Dynamic (absolute) viscosity [Pa·s] or a function mu(T, p) -> float.

kfloat or callable()

Thermal conductivity [W/(m·K)] or a function k(T, p) -> float.

cpfloat or callable(), optional

Isobaric specific heat [J/(kg·K)] or cp(T, p) -> float. Required when this object represents a coolant.

rhofloat or callable(), optional

Density [kg/m³] or rho(T, p) -> float. Required when this object represents a coolant.

gamma_coolantfloat or callable(), optional

Ratio of specific heats γ = cp/cv [-] or gamma(T, p) -> float. If provided, the object is assumed to represent a compressible coolant.

Attributes:
compressible_coolantbool

Whether the instance represents a compressible coolant (gamma_coolant was provided).

_Pr, _mu, _k, _cp, _rho, _gamma_coolantAny

Backing values/callables as provided.

See also

Fluid

Fluid identifier utilities used elsewhere in the package.

Notes

  • All callables must accept (T [K], p [Pa]) in that order.

  • For coolants, both cp and rho should be provided to allow

consistent thermo-fluid calculations.

Pr(T, p)

Prandtl number.

Parameters:
Tfloat

Temperature [K].

pfloat

Pressure [Pa].

Returns:
float

Prandtl number [-].

cp(T, p)

Isobaric specific heat capacity.

Parameters:
Tfloat

Temperature [K].

pfloat

Pressure [Pa].

Returns:
float

c_p [J/(kg·K)].

Raises:
ValueError

If cp was not provided at construction.

gamma_coolant(T, p)

Ratio of specific heats for a compressible coolant.

Parameters:
Tfloat

Temperature [K].

pfloat

Pressure [Pa].

Returns:
float

γ = c_p / c_v [-].

Raises:
ValueError

If gamma_coolant was not provided at construction.

k(T, p)

Thermal conductivity.

Parameters:
Tfloat

Temperature [K].

pfloat

Pressure [Pa].

Returns:
float

Thermal conductivity [W/(m·K)].

mu(T, p)

Dynamic (absolute) viscosity.

Parameters:
Tfloat

Temperature [K].

pfloat

Pressure [Pa].

Returns:
float

Viscosity [Pa·s].

rho(T, p)

Density.

Parameters:
Tfloat

Temperature [K].

pfloat

Pressure [Pa].

Returns:
float

Density [kg/m³].

Raises:
ValueError

If rho was not provided at construction.