Skip to content

model_air

ModelAir

ModelAir(static_env: StaticEnvAir)

Bases: Model[ModelAirRunOptions, StateAir, ScenarioModelAir, StaticEnvAir, CableAir]

ModelAir computes cable temperatures for installations in air using the finite difference method.

In most cases the model is instantiated with a StaticEnvAir and executed with a scenario via run().

Parameters:

Name Type Description Default
static_env StaticEnvAir

A StaticEnvAir instance containing the circuit configuration and cable properties.

required
Source code in cable_thermal_model/model/model_air.py
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
def __init__(self, static_env: StaticEnvAir):
    """Initialize the ModelAir instance with a static environment.

    Args:
        static_env: A StaticEnvAir instance containing the circuit configuration and cable properties.

    """
    if not isinstance(static_env, StaticEnvAir):
        raise ValueError(
            f"Can not use model '{self.__class__.__name__}' if static "
            "environment is not an environment in air. Please use "
            "ModelSoil instead."
        )

    super().__init__(static_env=static_env)

cables_in_environment property

cables_in_environment: dict[CableKey, PosCable[CableAir]]

Return per-run cable instances for the model.

Runtime cable properties can differ from their static/default values. For cables in air, this mainly concerns temperature-dependent pipe-fill resistivity.