cable_analysis
CableAnalysis
dataclass
CableAnalysis(cable: FDCable, solution: ndarray)
Post-processing and validation helpers for one cable solution state.
get_thermal_resistance
staticmethod
get_thermal_resistance(
rho: float, r_inner: float, r_outer: float
) -> float
Calculate the thermal resistance of a concentrical layer.
Source code in cable_thermal_model/validation/cable_analysis.py
23 24 25 26 | |
get_temperature_correction
staticmethod
get_temperature_correction(
reference_radius: float,
neighbor_radius: float,
heat_flow: float,
rho: float,
) -> float
Get the boundary-temperature correction from a neighboring grid point.
Source code in cable_thermal_model/validation/cable_analysis.py
28 29 30 31 32 33 34 35 36 | |
get_mean_temperature_cable_layer
get_mean_temperature_cable_layer(
layer: CableLayer,
) -> float | None
Calculate the mean temperature for a cable layer, None if absent.
Source code in cable_thermal_model/validation/cable_analysis.py
38 39 40 41 42 43 44 | |
get_boundary_temperatures_for_layer
get_boundary_temperatures_for_layer(
layer: CableLayer,
) -> tuple[float, float]
Calculate inner and outer boundary temperatures for a cable layer.
Source code in cable_thermal_model/validation/cable_analysis.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
get_heat_flow
get_heat_flow(inner_index: int) -> float
Calculate heat flow per unit length between grid points at inner_index and inner_index + 1.
Source code in cable_thermal_model/validation/cable_analysis.py
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 | |
get_heat_flow_at_radius
get_heat_flow_at_radius(r: float) -> float
Calculate approximate heat flow per unit length for a given radius.
If radius lies between two grid points r[i] and r[i+1], heat flow between these two points is returned. If radius equals a grid point r[i], heat flow between r[i-1] and r[i] is returned.
Source code in cable_thermal_model/validation/cable_analysis.py
109 110 111 112 113 114 115 116 117 118 119 120 | |
get_heat_flow_cable_layer
get_heat_flow_cable_layer(layer: CableLayer) -> float
Calculate the heat flow per meter for a non-heat-generating cable layer.
Source code in cable_thermal_model/validation/cable_analysis.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
get_heat_loss_cable_layer
get_heat_loss_cable_layer(layer: CableLayer) -> float
Calculate the net heat loss (W/m) for one layer in the cable.
Source code in cable_thermal_model/validation/cable_analysis.py
141 142 143 144 145 146 147 148 149 150 151 | |
get_thermal_resistance_cable_layer
get_thermal_resistance_cable_layer(
layer: CableLayer,
) -> float
Calculate the thermal resistance for a cable layer, 0 if absent.
Source code in cable_thermal_model/validation/cable_analysis.py
153 154 155 156 157 158 159 160 161 162 163 | |
get_thermal_resistance_external_medium
get_thermal_resistance_external_medium(
ambient_temperature: float,
) -> float
Calculate thermal resistance between cable sheath surface and ambient.
Source code in cable_thermal_model/validation/cable_analysis.py
165 166 167 168 169 | |