Commit 78224a81 authored by Markus Mirz's avatar Markus Mirz
Browse files

restructuring

parent e1217015
import sys
sys.path.append("..\..\cimpy")
import cimpy
import logging
logging.basicConfig(level=logging.INFO)
xml_files=[r"..\..\cim-grid-data\WSCC-09\WSCC-09_Neplan_EQ.xml",
r"..\..\cim-grid-data\WSCC-09\WSCC-09_Neplan_SV.xml",
r"..\..\cim-grid-data\WSCC-09\WSCC-09_Neplan_TP.xml"]
res=cimpy.cimread(xml_files)
cimpy.setNodes(res)
cimpy.setPowerTransformerEnd(res)
network=System(res)
print("Vector bR:")
print(network.bR)
print()
print("Vector bX:")
print(network.bX)
print()
print("Vector P:")
print(network.P)
print()
print("Vector Q:")
print(network.Q)
print()
\ No newline at end of file
......@@ -46,32 +46,3 @@ class System():
self.branch.append(Branch(value.primaryConnection.r, value.primaryConnection.x, startNode, endNode))
else:
continue
import sys
sys.path.append("..\..\cimpy")
import cimpy
import logging
logging.basicConfig(level=logging.INFO)
xml_files=[r"..\..\cim-grid-data\WSCC-09\WSCC-09_Neplan_EQ.xml",
r"..\..\cim-grid-data\WSCC-09\WSCC-09_Neplan_SV.xml",
r"..\..\cim-grid-data\WSCC-09\WSCC-09_Neplan_TP.xml"]
res=cimpy.cimread(xml_files)
cimpy.setNodes(res)
cimpy.setPowerTransformerEnd(res)
network=System(res)
print("Vector bR:")
print(network.bR)
print()
print("Vector bX:")
print(network.bX)
print()
print("Vector P:")
print(network.P)
print()
print("Vector Q:")
print(network.Q)
print()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment