Skip to content

RadiativeCooling

RadiativeCooling

RadiativeCooling(
    ambient_temperature: floatArrayLike,
    outer_diameter: floatArrayLike,
    emissivity: floatArrayLike,
    stefan_boltzmann_constant: float = 5.67e-08,
    **kwargs: Any,
)

Bases: RadiativeCoolingBase

Parameters:

Name Type Description Default

ambient_temperature

float | ndarray

Ambient temperature (°C).

required

outer_diameter

float | ndarray

External diameter (m).

required

emissivity

float | ndarray

Emissivity (—).

required

stefan_boltzmann_constant

float

Stefan–Boltzmann constant (W·m⁻²·K⁻⁴). The default is 5.67e-08.

5.67e-08
Source code in src/thermohl/power/cigre/radiative_cooling.py
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
def __init__(
    self,
    ambient_temperature: floatArrayLike,
    outer_diameter: floatArrayLike,
    emissivity: floatArrayLike,
    stefan_boltzmann_constant: float = 5.67e-08,
    **kwargs: Any,
):
    r"""Init with args.

    Args:
        ambient_temperature (float | numpy.ndarray): Ambient temperature (°C).
        outer_diameter (float | numpy.ndarray): External diameter (m).
        emissivity (float | numpy.ndarray): Emissivity (—).
        stefan_boltzmann_constant (float, optional): Stefan–Boltzmann constant (W·m⁻²·K⁻⁴). The default is 5.67e-08.
    """
    super().__init__(
        ambient_temperature=ambient_temperature,
        outer_diameter=outer_diameter,
        emissivity=emissivity,
        stefan_boltzmann_constant=stefan_boltzmann_constant,
        zerok=273.0,
        **kwargs,
    )

derivative

derivative(
    conductor_temperature: floatArrayLike,
) -> floatArrayLike

Analytical derivative of value method.

Parameters:

Name Type Description Default

conductor_temperature

float | ndarray

Conductor temperature (K).

required

Returns:

Type Description
floatArrayLike

float | numpy.ndarray: Power term derivative (W·m⁻¹·K⁻¹).

Source code in src/thermohl/power/radiative_cooling.py
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
def derivative(self, conductor_temperature: floatArrayLike) -> floatArrayLike:
    r"""Analytical derivative of value method.

    Args:
        conductor_temperature (float | numpy.ndarray): Conductor temperature (K).

    Returns:
        float | numpy.ndarray: Power term derivative (W·m⁻¹·K⁻¹).

    """
    return (
        4.0
        * np.pi
        * self.stefan_boltzmann
        * self.emissivity
        * self.outer_diameter
        * conductor_temperature**3
    )

value

value(
    conductor_temperature: floatArrayLike,
) -> floatArrayLike

Compute radiative cooling using the Stefan-Boltzmann law.

Parameters:

Name Type Description Default

conductor_temperature

float | ndarray

Conductor temperature (°C).

required

Returns:

Type Description
floatArrayLike

float | numpy.ndarray: Power term value (W·m⁻¹).

Source code in src/thermohl/power/radiative_cooling.py
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
def value(self, conductor_temperature: floatArrayLike) -> floatArrayLike:
    r"""Compute radiative cooling using the Stefan-Boltzmann law.

    Args:
        conductor_temperature (float | numpy.ndarray): Conductor temperature (°C).

    Returns:
        float | numpy.ndarray: Power term value (W·m⁻¹).

    """
    return (
        np.pi
        * self.stefan_boltzmann
        * self.emissivity
        * self.outer_diameter
        * (
            self._celsius2kelvin(conductor_temperature) ** 4
            - self.ambient_temperature**4
        )
    )