CableMV
Represents a cable (MV).
Inherits from: ExtrasNotesMixin, HasPresentationsMixin
Import
python
from pyptp.elements.mv import CableMVProperties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
general | General | Yes | - | |
cable_parts | list[CablePart] | Yes | - | |
cable_types | list[CableType] | Yes | - | |
presentations | list[BranchPresentation] | Yes | - | |
geo_cable_parts | list[GeoCablePart] | No | [] | |
joints | list[Joint] | No | [] | |
geo | Geo | None | No | None | |
extras | list[Extra] | No | [] | |
notes | list[Note] | No | [] |
CablePart
Properties for a part of the cable.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
length | float | No | 1.0 | |
cable_type | str | No | "" | |
year | str | No | "" | |
parallel_cable_count | int | No | 1 | |
ground_resistivity_index | int | No | 1 | |
ampacity_factor | int | No | 1 |
General
General properties for a cable.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
guid | Guid | No | (auto UUID) | |
creation_time | float | int | No | 0 | |
mutation_date | int | No | 0 | |
revision_date | float | int | No | 0.0 | |
variant | bool | No | False | |
subnet_border | bool | No | False | |
field_name1 | str | No | "" | Name of the connection field on node1 side. |
field_name2 | str | No | "" | Name of the connection field on node2 side. |
source1 | str | No | "" | Name of the feeding object on node1 side (subnet border case). |
source2 | str | No | "" | Name of the feeding object on node2 side (subnet border case). |
name | str | No | "" | |
repair_duration | float | No | 0.0 | |
failure_frequency | float | No | 0.0 | |
maintenance_frequency | float | No | 0.0 | |
maintenance_duration | float | No | 0.0 | |
maintenance_cancel_duration | float | No | 0.0 | |
joint_failure_frequency | float | No | 0.0 | |
loadrate_max | float | No | 0.0 | |
loadrate_max_emergency | float | No | 0.0 | |
switch_state1 | int | No | 1 | |
switch_state2 | int | No | 1 | |
rail_connectivity | int | No | 0 | |
dyn_model | str | No | "P" | |
dyn_number_of_sections | int | No | 1 | |
dyn_neglect_capacitance | bool | No | False | |
node1 | Guid | No | NIL_GUID | |
node2 | Guid | No | NIL_GUID |
Geo
Cable Geographical properties.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
coordinates | list[tuple] | No | [] |
Joint
Cable joint properties.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
x | float | int | No | 0.0 | |
y | float | int | No | 0.0 | |
type | str | No | "" | |
year | str | No | "" | |
failure_frequency | float | int | No | 0.0 |
Referenced Types
GeoCablePart
Geography of the cable parts.
Defined in pyptp.elements.mv.shared
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
coordinates | list[tuple] | No | [] |