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
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
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
57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
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
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |