Skip to content

NetworkMV

Medium-voltage network model supporting symmetrical analysis.

Manages electrical elements in GUID-indexed collections for efficient access and supports balanced three-phase power system modeling using sequence components.

Import

python
from pyptp import NetworkMV

Quick Start

python
# Load from file
network = NetworkMV.from_file("input.vnf")

# Access elements
for node in network.nodes.values():
    print(node.general.name)

# Save to file
network.save("output.vnf")

Properties

The network's global properties are stored in the properties attribute:

Element Collections

The network stores elements in typed collections:

Dict Collections

Elements indexed by key (typically GUID):

CollectionKey TypeElement Type
asynchronous_generatorsGuidAsynchronousGeneratorMV
asynchronous_motorsGuidAsynchronousMotorMV
batteriesGuidBatteryMV
cablesGuidCableMV
circuit_breakersGuidCircuitBreakerMV
earthing_transformersGuidEarthingTransformerMV
framesGuidFrameMV
fusesGuidFuseMV
growthsGuidGrowthMV
indicatorsGuidIndicatorMV
legendsGuidLegendMV
linesGuidLineMV
linksGuidLinkMV
load_behavioursGuidLoadBehaviourMV
load_switchesGuidLoadSwitchMV
loadsGuidLoadMV
measure_fieldsGuidMeasureFieldMV
mutualsstrMutualMV
nodesGuidNodeMV
profilesGuidProfileMV
pvsGuidPVMV
rail_systemsGuidRailSystemMV
reactance_coilsGuidReactanceCoilMV
scenariosstrScenarioMV
sheetsGuidSheetMV
shunt_capacitorsGuidShuntCapacitorMV
shunt_coilsGuidShuntCoilMV
sourcesGuidSourceMV
special_transformersGuidSpecialTransformerMV
synchronous_generatorsGuidSynchronousGeneratorMV
synchronous_motorsGuidSynchronousMotorMV
textsGuidTextMV
threewinding_transformersGuidThreewindingTransformerMV
transformer_loadsGuidTransformerLoadMV
transformersGuidTransformerMV
variantsstrVariantMV
windturbinesGuidWindTurbineMV

List Collections

Elements stored in ordered lists:

CollectionElement Type
calc_casesCalculationCaseMV
commentsCommentMV
hyperlinksHyperlinkMV
selectionsSelectionMV
variablesVariableMV

Methods

Class Methods

MethodDescription
from_file(path: str | Path) -> NetworkMVCreate MV network from VNF file.

Instance Methods

MethodDescription
get_cable_guid_by_name(name: str) -> strFind cable GUID by name.
get_node_guid_by_name(name: str) -> strFind node GUID by name.
get_sheet_guid_by_name(name: str) -> strFind sheet GUID by name.
save(path: str | Path) -> NoneSave network to VNF file.