abstract_cable
CableConductorProperties
Bases: BaseModel
This dataclass is responsible for storing physical cable conductor properties.
Relevant sizes, materials and other physical properties not addressed at a layer level will be stored in this dataclass.
Attributes:
| Name | Type | Description |
|---|---|---|
number_of_conductors |
CableConductorCount
|
A CableConductorCount object representing the number of conductors in the cable. |
shape |
CableConductorShape
|
A CableConductorShape object representing the shape of the cable's conductors. |
material |
CableConductorMaterial
|
A CableConductorMaterial object representing the material of the cable's conductors. |
surface_type |
CableConductorSurfaceType
|
A CableConductorSurfaceType object representing the surface type of the cable's conductors. |
CableConductorType
Bases: BaseModel
A backup dataclass for the original ConductorType class used for CableSpecParser.
TODO: CableSpecParser should be updated to use the CableConductorProperties class instead of this one.
WeightedScreenImpedance
Bases: BaseModel
Weighted screen impedance data for multi-cable circuit loss calculations.
CableLayerProperties
Bases: BaseModel
A dataclass aimed at supplying cable layered properties.
This dataclass holds the physical properties for a single cable layer.
Attributes:
| Name | Type | Description |
|---|---|---|
material |
Material
|
The material of the cable layer. |
inner_radius |
float
|
The inner radius of the cable layer (in meters). |
outer_radius |
float
|
The outer radius of the cable layer (in meters). |
rho |
float
|
The thermal resistivity value of the layer (in mK/W). |
capacity |
float
|
The thermal capacity of the layer (in J/(m³K)). |
electric_rho |
float
|
The electric resistivity value of the layer (in Ohm·m). |
alpha |
float
|
The electrical resistivity temperature coefficient of the layer. |
epsilon |
float
|
The relative permittivity value of the layer. |
tan_delta |
float
|
The dissipation factor value of the layer. |
CableLayerMetrics
Bases: BaseModel
The dataclass holding the remaining physical properties of a cable.
After the CableConductorProperties and CableLayerProperties dataclasses, this dataclass holds the remaining physical properties remaining for a cable.
Notes
It may be good idea to change the name and / or the contents of this class in the nearby future. As of now there is no proper identity for this class, outside of serving as a method of preventing a large number of AbstractCable class properties from having to be defined within that class itself.
Attributes:
| Name | Type | Description |
|---|---|---|
conductor_centers |
list[tuple[float, float]]
|
A list of (x,y) locations indicating the position of each conductor, relative to the cable's center. |
conductor_cross_section |
float
|
A float value representing the conductor's cross-section in meters squared (m2). |
conductor_virtual_cross_section |
float
|
A float value representing a virtual cross-section in meters squared (m2), which can be used to compute an IEC compatible conductor resistance. |
conductor_equivalent_outer_diameter |
float
|
An optional float value representing the outer diameter of an equivalent solid conductor with the same central duct as the original situation (in mm). Used to represent the conductor situation as a single solid conductor in situations with multiple conductors. |
conductor_distance |
float
|
An optional float, applicable for situations with three conductors, where this value represents distance between the conductor centers. |
screen_cross_section |
float | None
|
A float representing the cable screen's cross-section size. |
screen_circulating_loss_type |
CableScreenCirculatingLossType | None
|
Method for calculating circulating-current losses in the screen. |
screen_eddy_loss_type |
CableScreenEddyLossType | None
|
Method for calculating eddy-current losses in the screen. |
armour_cross_section |
float | None
|
A float representing the cross-section size of the cable's armour. |
diameter_over_stranded_conductors |
float
|
A float representing the cable's diagonal spanning the conductors' outermost borders. |
nominal_phase_voltage |
float
|
A float representing the cable's phase voltage. |
sector_radius |
float
|
An optional float representing cable sector radius. |
outer_radius |
float
|
A float representing the cable's outer radius. |
core_to_sector_distance |
float
|
An optional float representing the distance from the cable's core to its sector. |
original_insulation_thickness |
float
|
An optional float representing the original t1 value of the cable. |
load_series |
ndarray
|
An optional np.ndarray representing the cable's load series. |
pipe |
Pipe
|
An optional Pipe object representing the cable's pipe, if there is one. |
CableConvectionParams
Bases: BaseModel
Convection parameters used to model heat transfer in air-installed cables.
AbstractCable
AbstractCable(conductor: CableConductorProperties, layer_properties: dict[CableLayer, CableLayerProperties], layer_metrics: CableLayerMetrics, cable_type: CableType)
The Abstract base class for cables.
This class represents all physical qualities of a single cable, outside of those specific to FD cables. Abstract cables will be extended by the Cable class.
Attributes:
| Name | Type | Description |
|---|---|---|
conductor |
CableConductorProperties
|
A CableConductorProperties object containing the cable's intended conductor properties. |
layer_properties |
CableLayerProperties
|
A CableLayerProperties object containing the cable's intended layer properties. |
layer_metrics |
CableLayerMetrics
|
A CableLayerMetrics object containing the cable's intended layer metrics values. |
cable_type |
CableType
|
A CableType object containing the cable's intended type. |
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 |
Source code in cable_thermal_model/model/cables/abstract_cable.py
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
layers
property
layers: list[CableLayer]
A shorthand method for retrieving the list of layers of the cable.
layer_count
property
layer_count: int
A shorthand method for retrieving the number of layers of the cable.
non_soil_layer_count
property
non_soil_layer_count: int
A shorthand method for retrieving the number of layers of the cable, excluding the soil layer.
omega
property
omega: float
Angular frequency at 50 Hz in rad/s.
electric_rho_screen
property
electric_rho_screen: float
Electrical resistivity of the screen layer in Ohm·m.
alpha_screen
property
alpha_screen: float
Temperature coefficient of electrical resistivity for the screen layer.
c
property
c: float
Distance between the conductors in a three-core cable.
d
property
d: float
Average diameter of the earth screen layer.
s
property
s: float
Center-to-center distance between conductors in meters.
Ft
property
Ft: float
Armor loss factor (1 when no armor is present).
X
property
X: float
Reactance factor for proximity effect calculations.
Xm
property
Xm: float
Mutual reactance factor used in screen loss calculations.
get_ac_resistance_conductor
get_ac_resistance_conductor(Tc: float, s: float) -> float
Computes the AC resistance of the conductor based on its temperature and distance to other conductors.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Tc
|
float
|
The conductor temperature in degrees Celsius. |
required |
s
|
float
|
The distance between the conductors in meters. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The AC resistance of the conductor in Ohm/m. |
Source code in cable_thermal_model/model/cables/abstract_cable.py
342 343 344 345 346 347 348 349 350 351 352 353 354 | |
get_skin_effect_factor
get_skin_effect_factor(Rdc: float) -> float
Compute skin effect factor y_s from DC resistance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Rdc
|
float
|
The DC resistance of the conductor in Ohm/m at the operating temperature. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The skin effect factor y_s. |
References
- IEC 60287-1-1 - section 5.1.3
Source code in cable_thermal_model/model/cables/abstract_cable.py
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 | |
get_proximity_effect_factor
get_proximity_effect_factor(Rdc: float, s: float) -> float
Compute proximity effect factor y_p from DC resistance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Rdc
|
float
|
The DC resistance of the conductor in Ohm/m at the operating temperature. |
required |
s
|
float
|
The distance between the conductors in meters. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The proximity effect factor y_p. |
References
- IEC 60287-1-1 - section 5.1.5
Source code in cable_thermal_model/model/cables/abstract_cable.py
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 | |
get_dc_resistance_conductor
get_dc_resistance_conductor(Tc: float) -> float
Computes the DC resistance of the conductor at a given conductor temperature.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Tc
|
float
|
The conductor temperature in degrees Celsius. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The DC resistance of the conductor in Ohm/m. |
Source code in cable_thermal_model/model/cables/abstract_cable.py
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | |
get_heat_generation_conductor_and_screen
get_heat_generation_conductor_and_screen(load: float, conductor_temperature: float, screen_temperature: float, temperature_dependent_electric_resistance: bool, ac_current: bool, custom_screen_current: float | None = None) -> tuple[float, float]
Calculates the heat generation in the conductor based on the load and resistance.
In W/m.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ac_current
|
bool
|
Whether to use AC resistance (skin/proximity effects) or only DC resistance. |
required |
load
|
float
|
The load in Amperes. |
required |
conductor_temperature
|
float
|
The temperature of the conductor in degrees Celsius. |
required |
screen_temperature
|
float
|
The temperature of the screen in degrees Celsius. |
required |
temperature_dependent_electric_resistance
|
bool
|
Whether to use temperature-dependent electric resistance. |
required |
custom_screen_current
|
float | None
|
Optional RMS screen current in amperes, replacing calculated circulating losses. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If AC resistance is requested but conductor distance is not set. |
Returns:
| Type | Description |
|---|---|
tuple[float, float]
|
tuple[float, float]: A tuple containing the heat generation in the conductor and the screen respectively in W/m. |
Source code in cable_thermal_model/model/cables/abstract_cable.py
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 | |
get_heat_generation_conductor
get_heat_generation_conductor(ac_current: bool, load: float, conductor_temperature: float, temperature_dependent_electric_resistance: bool) -> float
Calculates the heat generation in the conductor based on the load and resistance.
In W/m.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ac_current
|
bool
|
Whether to use AC resistance (skin/proximity effects) or only DC resistance. |
required |
load
|
float
|
The load in Amperes. |
required |
conductor_temperature
|
float
|
The temperature of the conductor in degrees Celsius. |
required |
temperature_dependent_electric_resistance
|
bool
|
Whether to use temperature-dependent electric resistance. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If AC resistance is requested but conductor distance is not set. |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The heat generation in the conductor in W/m. |
Source code in cable_thermal_model/model/cables/abstract_cable.py
726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 | |
get_heat_generation_screen
get_heat_generation_screen(heat_generation_conductor: float, screen_temperature: float, conductor_temperature: float, temperature_dependent_electric_resistance: bool, custom_screen_current: float | None = None) -> float
Calculates the heat generation in the screen based on the conductor heat generation and screen loss factor.
In W/m.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
heat_generation_conductor
|
float
|
The heat generation in the conductor in W/m. |
required |
screen_temperature
|
float
|
The temperature of the screen in degrees Celsius. |
required |
conductor_temperature
|
float
|
The temperature of the conductor in degrees Celsius. |
required |
temperature_dependent_electric_resistance
|
bool
|
Whether to use temperature-dependent electric resistance. |
required |
custom_screen_current
|
float | None
|
Optional RMS screen current in amperes. None retains calculated circulating losses. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The heat generation in the screen in W/m. |
Source code in cable_thermal_model/model/cables/abstract_cable.py
771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 | |
get_cable_screen_loss_factor
get_cable_screen_loss_factor(Ts: float, Tc: float) -> float
Return the combined circulating-current and eddy screen loss factor.
Source code in cable_thermal_model/model/cables/abstract_cable.py
831 832 833 | |
get_screen_eddy_loss_factor
get_screen_eddy_loss_factor(Ts: float, Tc: float) -> float
Return only the standards-derived eddy component of the screen loss factor.
Bonding, geometry, and Milliken corrections retain their existing applicability. The circulating-current calculation is not evaluated.
Source code in cable_thermal_model/model/cables/abstract_cable.py
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 | |
get_screen_circulating_loss_factor
get_screen_circulating_loss_factor(Ts: float, Tc: float) -> float
Return the calculated circulating-current component of the screen loss factor.
Source code in cable_thermal_model/model/cables/abstract_cable.py
871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 | |
get_dielectric_loss_for_cable
get_dielectric_loss_for_cable() -> float
Computes dielectric losses per conductor using permittivity and tan(delta) of the insulation material.
This function checks first whether the dielectric loss can be neglected based on the cable configuration. If so, it returns 0. Otherwise, it computes the dielectric loss using the compute_dielectric_loss_per_conductor function.
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
Dielectric losses per conductor in W/m. |
References
- NEN-IEC 60287-1-1 (2023) - [section 5.2]
Source code in cable_thermal_model/model/cables/abstract_cable.py
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 | |