cable_air
CableAir
CableAir(conductor: CableConductorProperties, layer_properties: dict[CableLayer, CableLayerProperties], layer_metrics: CableLayerMetrics, cable_type: CableType, grid_counts: dict[CableLayer, int])
Bases: Cable
Finite difference cable model with air discretization.
Attributes:
| Name | Type | Description |
|---|---|---|
_bottomright_index |
tuple[int, int]
|
Index tuple (row, col) for accessing the bottom-right element of the banded matrix used in convection boundary condition updates. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
conductor
|
CableConductorProperties
|
Conductor properties of the cable. |
required |
layer_properties
|
dict[CableLayer, CableLayerProperties]
|
Mapping of cable layers to their properties. |
required |
layer_metrics
|
CableLayerMetrics
|
Geometric and calculated metrics for the cable layers. |
required |
cable_type
|
CableType
|
The type of the cable. |
required |
grid_counts
|
dict[CableLayer, int]
|
Number of grid points per cable layer. |
required |
Source code in cable_thermal_model/model/cables/cable_air.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
set_convection_parameters
set_convection_parameters(Z: float, E: float, Cg: float)
Set the convection parameters used to compute the convection coefficient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Z
|
float
|
Convection parameter Z. |
required |
E
|
float
|
Convection parameter E. |
required |
Cg
|
float
|
Convection parameter Cg. |
required |
References
- NEN-IEC 60287-2-1 (2023) Section 4.2.1.
Source code in cable_thermal_model/model/cables/cable_air.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
integrate_timestep
integrate_timestep(previous_solution: ndarray, time_step: float) -> ndarray
Computes the temperature solution for the next time step.
Computes the temperature solution at time step [t+1] given the solution at the current time step [t], the finite difference matrix, and the vector for [t].
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
previous_solution
|
ndarray
|
The solution of the heat equation [°C] at the previous timestep (t). |
required |
time_step
|
float
|
The size of the time steps [s] in the linearized time grid. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: The updated temperature solution at the new time step [t+1] for the cable. |
Source code in cable_thermal_model/model/cables/cable_air.py
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |