Skip to content

Air

Air

Air quantities.

dynamic_viscosity staticmethod

dynamic_viscosity(
    air_temperature: floatArrayLike,
) -> floatArrayLike

Compute air dynamic viscosity.

Parameters:

Name Type Description Default

air_temperature

float | ndarray

Air temperature (°C)

required

Returns:

Type Description
floatArrayLike

float | numpy.ndarray: Dynamic viscosity in kg·m⁻¹·s⁻¹.

Source code in src/thermohl/power/rte/air.py
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@staticmethod
def dynamic_viscosity(air_temperature: floatArrayLike) -> floatArrayLike:
    r"""Compute air dynamic viscosity.

    Args:
        air_temperature (float | numpy.ndarray): Air temperature (°C)

    Returns:
        float | numpy.ndarray: Dynamic viscosity in kg·m⁻¹·s⁻¹.

    """
    return (1.458e-06 * (air_temperature + 273.0) ** 1.5) / (
        air_temperature + 383.4
    )

thermal_conductivity staticmethod

thermal_conductivity(
    air_temperature: floatArrayLike,
) -> floatArrayLike

Compute air thermal conductivity.

Parameters:

Name Type Description Default

air_temperature

float | ndarray

Air temperature (°C)

required

Returns:

Type Description
floatArrayLike

float | numpy.ndarray: Thermal conductivity in W·m⁻¹·K⁻¹.

Source code in src/thermohl/power/rte/air.py
49
50
51
52
53
54
55
56
57
58
59
60
@staticmethod
def thermal_conductivity(air_temperature: floatArrayLike) -> floatArrayLike:
    r"""Compute air thermal conductivity.

    Args:
        air_temperature (float | numpy.ndarray): Air temperature (°C)

    Returns:
        float | numpy.ndarray: Thermal conductivity in W·m⁻¹·K⁻¹.

    """
    return 2.424e-02 + 7.477e-05 * air_temperature - 4.407e-09 * air_temperature**2

volumic_mass staticmethod

volumic_mass(
    air_temperature: floatArrayLike,
    altitude: floatArrayLike = 0.0,
) -> floatArrayLike

Compute air volumic mass.

If both inputs are numpy arrays, they should have the same size.

Parameters:

Name Type Description Default

air_temperature

float | ndarray

Air temperature (°C).

required

altitude

float | ndarray

Altitude above sea level (m). The default is 0.

0.0

Returns:

Type Description
floatArrayLike

float | numpy.ndarray: Volumic mass in kg·m⁻³.

Source code in src/thermohl/power/rte/air.py
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@staticmethod
def volumic_mass(
    air_temperature: floatArrayLike, altitude: floatArrayLike = 0.0
) -> floatArrayLike:
    r"""Compute air volumic mass.

    If both inputs are numpy arrays, they should have the same size.

    Args:
        air_temperature (float | numpy.ndarray): Air temperature (°C).
        altitude (float | numpy.ndarray, optional): Altitude above sea level (m). The default is 0.

    Returns:
        float | numpy.ndarray: Volumic mass in kg·m⁻³.

    """
    return (1.293 - 1.525e-04 * altitude + 6.379e-09 * altitude**2) / (
        1.0 + 0.00367 * air_temperature
    )