Skip to content

CableMV ​

Represents a cable (MV).

Inherits from: ExtrasNotesMixin, HasPresentationsMixin

Import ​

python
from pyptp.elements.mv import CableMV

Properties ​

PropertyTypeRequiredDefaultDescription
generalGeneralYes-
cable_partslist[CablePart]No[]
cable_typeslist[CableType]No[]
presentationslist[BranchPresentation]No[]
geo_cable_partslist[GeoCablePart]No[]
jointslist[Joint]No[]
geolist[Geo]No[]
extraslist[Extra]No[]
noteslist[Note]No[]

Adding Parts ​

A new cable starts with no parts. add_part(types, name, length) looks up the MV cable type by name or alias in a type library, appends a part of length metres to cable_parts and its type data to cable_types, and returns the new part. It raises UnknownTypeError when the library has no such type.

python
from pyptp.type_reader import Types

types = Types()
cable = network.add(CableMV(CableMV.General(name="Kerkplein - Molenweg", node1=..., node2=...)))
cable.add_part(types, "3*150 AL Kudi 6/10", 340.0)
cable.add_part(types, "3*150 CU XLPE   6/10", 120.0)

cable_parts[i] belongs to cable_types[i]. See MV Cable Parts for a full example.

CablePart ​

Properties for a part of the cable.

PropertyTypeRequiredDefaultDescription
lengthfloatNo1.0Length in metres.
cable_typestrNo""
yearstrNo""
parallel_cable_countintNo1
ground_resistivity_indexintNo1
ampacity_factorintNo1

General ​

General properties for a cable.

PropertyTypeRequiredDefaultDescription
guidGuidNo(auto UUID)
creation_timefloat | intNo0
mutation_dateintNo0
revision_datefloat | intNo0.0
variantboolNoFalse
subnet_borderboolNoFalse
field_name1strNo""Name of the connection field on node1 side.
field_name2strNo""Name of the connection field on node2 side.
source1strNo""Name of the feeding object on node1 side (subnet border case).
source2strNo""Name of the feeding object on node2 side (subnet border case).
namestrNo""
repair_durationfloatNo0.0
failure_frequencyfloatNo0.0
maintenance_frequencyfloatNo0.0
maintenance_durationfloatNo0.0
maintenance_cancel_durationfloatNo0.0
joint_failure_frequencyfloatNo0.0
loadrate_maxfloatNo0.0
loadrate_max_winterfloatNo0.0
loadrate_max_emergencyfloatNo0.0
loadrate_max_emergency_winterfloatNo0.0
switch_state1boolNoTrue
switch_state2boolNoTrue
rail_connectivityintNo0
dyn_modelstrNo"P"
dyn_number_of_sectionsintNo1
dyn_neglect_capacitanceboolNoFalse
node1GuidNoGuid('00000000-0000-0000-00...
node2GuidNoGuid('00000000-0000-0000-00...

Geo ​

Cable Geographical properties.

PropertyTypeRequiredDefaultDescription
coordinateslist[tuple]No[]

Joint ​

Cable joint properties.

PropertyTypeRequiredDefaultDescription
xfloat | intNo0.0
yfloat | intNo0.0
typestrNo""
yearstrNo""
failure_frequencyfloat | intNo0.0

Referenced Types ​

GeoCablePart ​

Geography of the cable parts.

Defined in pyptp.elements.mv.shared

PropertyTypeRequiredDefaultDescription
coordinateslist[tuple]No[]