iec_60287_parameter_extractor
IEC60287CableParameters
dataclass
IEC60287CableParameters(
ampacity: float,
conductor_temperature: float,
screen_temperature: float,
armour_temperature: float | None,
surface_temperature: float,
dc_resistance_conductor_at_20: float,
skin_effect_factor: float,
proximity_effect_factor: float,
ac_resistance_conductor: float,
dc_resistance_screen: float,
t1: float,
t2: float,
t3: float,
t4: float,
conductor_loss: float,
dielectric_loss: float,
screen_loss: float,
armour_loss: float,
total_loss: float,
screen_loss_factor: float,
armour_loss_factor: float,
)
Reference IEC 60287 parameters for a single cable validation case.
from_dict
classmethod
from_dict(d: dict)
Create an IEC60287CableParameters instance from a dictionary, ensuring all required keys are present.
Source code in cable_thermal_model/validation/iec_60287_parameter_extractor.py
74 75 76 77 | |
build_scenario
build_scenario(
circuit_ratings: dict[str, float],
soil_thermal_resistivity: float,
soil_thermal_capacity: float,
ambient_temperature: float,
) -> DataFrame[ScenarioSchemaSoil]
Build a static scenario DataFrame used for IEC parameter extraction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
circuit_ratings
|
dict[str, float]
|
Mapping of circuit names to their load ratings (A). |
required |
soil_thermal_resistivity
|
float
|
Thermal resistivity of the surrounding soil (K*m/W). |
required |
soil_thermal_capacity
|
float
|
Volumetric heat capacity of the soil (J/(m^3*K)). |
required |
ambient_temperature
|
float
|
Ambient temperature of the soil (C). |
required |
Returns:
| Type | Description |
|---|---|
DataFrame[ScenarioSchemaSoil]
|
A DataFrame with columns for ambient temperature, soil properties, and load. |
Source code in cable_thermal_model/validation/iec_60287_parameter_extractor.py
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 | |
extract_iec_60287_parameters
extract_iec_60287_parameters(
static_env: StaticEnvSoil,
circuit_ratings: dict[str, float],
soil_thermal_resistivity: float,
soil_thermal_capacity: float,
ambient_temperature: float,
) -> DataFrame
Compute IEC validation parameters and return a compact DataFrame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
static_env
|
StaticEnvSoil
|
The static environment to solve. |
required |
circuit_ratings
|
dict[str, float]
|
Mapping of circuit names to their load ratings (A). |
required |
soil_thermal_resistivity
|
float
|
Thermal resistivity of the surrounding soil (K*m/W). |
required |
soil_thermal_capacity
|
float
|
Volumetric heat capacity of the soil (J/(m^3*K)). |
required |
ambient_temperature
|
float
|
Ambient temperature of the soil (°C). |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
A DataFrame with the relevant IEC parameters for all cables in static_env. |
Source code in cable_thermal_model/validation/iec_60287_parameter_extractor.py
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 | |
compare_parameters_to_reference
compare_parameters_to_reference(
extracted_parameters: Series,
reference_parameters: IEC60287CableParameters,
) -> DataFrame
Compare extracted parameters to reference values and compute differences.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
extracted_parameters
|
Series
|
A Series containing the extracted parameters for a cable. |
required |
reference_parameters
|
IEC60287CableParameters
|
An IEC60287CableParameters object with reference values. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
A DataFrame comparing extracted and reference parameters, including differences. |
Source code in cable_thermal_model/validation/iec_60287_parameter_extractor.py
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 | |