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 NetworkMVQuick 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:
properties: PropertiesMV
Element Collections
The network stores elements in typed collections:
Dict Collections
Elements indexed by key (typically GUID):
List Collections
Elements stored in ordered lists:
| Collection | Element Type |
|---|---|
calc_cases | CalculationCaseMV |
comments | CommentMV |
hyperlinks | HyperlinkMV |
selections | SelectionMV |
variables | VariableMV |
Methods
Class Methods
| Method | Description |
|---|---|
from_file(path: str | Path) -> NetworkMV | Create MV network from VNF file. |
Instance Methods
| Method | Description |
|---|---|
get_cable_guid_by_name(name: str) -> str | Find cable GUID by name. |
get_node_guid_by_name(name: str) -> str | Find node GUID by name. |
get_sheet_guid_by_name(name: str) -> str | Find sheet GUID by name. |
save(path: str | Path) -> None | Save network to VNF file. |