Skip to content
Snippets Groups Projects
Commit 38f29a2b authored by Taeyoung Kim's avatar Taeyoung Kim
Browse files

add conversion to pandapowr: it read json output file and create pandapower...

add conversion to pandapowr: it read json output file and create pandapower netowrk. // Problem: current CIM file gives multiple slack buses. Thisneed us to make different nets based on connectivity map. ToDo: read connectivity map in dataframe, and make two different network to run powerflow

Signed-off-by: default avatarTaeyoung Kim <taeyoung.kim@eonerc.rwth-aachen.de>
parent 643345ff
Branches
No related tags found
No related merge requests found
{
"computationId": "power_flow_mv_input",
"computationUTC": "2025-04-24T13:12:53",
"mtPowerFlowInput": {
"baseMVA": 100000,
"busses": [
{
"index": 0,
"type": 3,
"name": "busbar-AD102000201CSA-8.4kV",
"activePowerkW": 0.0,
"reactivePowerkVAR": 0.0,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 1,
"type": 3,
"name": "busbar-AD102002005NSA-8.4kV",
"activePowerkW": -0.15135,
"reactivePowerkVAR": -0.0454,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 2,
"type": 3,
"name": "busbar-AD102000268CSA-8.4kV",
"activePowerkW": -0.13012,
"reactivePowerkVAR": -0.03903,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 3,
"type": 1,
"name": "busbar-AD001090024254_AD102425N-8.4kV",
"activePowerkW": 0.0,
"reactivePowerkVAR": 0.0,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 4,
"type": 3,
"name": "busbar-AD102005376CSA-8.4kV",
"activePowerkW": -0.18562,
"reactivePowerkVAR": -0.05569,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 5,
"type": 3,
"name": "busbar-AD102005220NSA-8.4kV",
"activePowerkW": 0.0,
"reactivePowerkVAR": 0.0,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 6,
"type": 3,
"name": "busbar-AD102005097CSA-8.4kV",
"activePowerkW": 0.0,
"reactivePowerkVAR": 0.0,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 7,
"type": 3,
"name": "busbar-AD102005377CSA-8.4kV",
"activePowerkW": -0.00293,
"reactivePowerkVAR": -0.00088,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 8,
"type": 3,
"name": "busbar-AD102005094CSA-8.4kV",
"activePowerkW": -0.00092,
"reactivePowerkVAR": -0.00028,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 9,
"type": 3,
"name": "busbar-AD102005076NSA-8.4kV",
"activePowerkW": -0.17043,
"reactivePowerkVAR": -0.05113,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 10,
"type": 3,
"name": "busbar-AD102005297NSA-8.4kV",
"activePowerkW": -0.00108,
"reactivePowerkVAR": -0.00032,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 11,
"type": 1,
"name": "busbar-AD001090060253_AD106025N-8.4kV",
"activePowerkW": 0.0,
"reactivePowerkVAR": 0.0,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
},
{
"index": 12,
"type": 3,
"name": "busbar-AD102005015NSA-8.4kV",
"activePowerkW": -0.00293,
"reactivePowerkVAR": -0.00088,
"capacityPu": 0.0,
"voltageArea": 1,
"voltageModulePu": 1.0,
"voltagePhasePu": 0.0,
"nominalVoltagekV": 8.4,
"powerLine": 0,
"voltageMaxPu": 1.1,
"voltageMinPu": 0.9
}
],
"transformers": [],
"branches": [
{
"index": 0,
"busIndexFrom": 1,
"busIndexTo": 0,
"resistancePu": 0.024985827664399093,
"reactancePu": 0.006374007936507936,
"susceptancePu": -9.586133884417508,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 1,
"busIndexFrom": 2,
"busIndexTo": 1,
"resistancePu": 0.001987670068027211,
"reactancePu": 0.0012259070294784581,
"susceptancePu": -224.78527381415495,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 2,
"busIndexFrom": 3,
"busIndexTo": 0,
"resistancePu": 0.35875496031746035,
"reactancePu": 0.14917091836734694,
"susceptancePu": -0.9881677227787493,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 3,
"busIndexFrom": 4,
"busIndexTo": 7,
"resistancePu": 0.018941326530612246,
"reactancePu": 0.007886904761904762,
"susceptancePu": -18.734758814069878,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 4,
"busIndexFrom": 10,
"busIndexTo": 7,
"resistancePu": 0.019033446712018138,
"reactancePu": 0.0073837868480725625,
"susceptancePu": -17.715742449725074,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 5,
"busIndexFrom": 12,
"busIndexTo": 5,
"resistancePu": 0.02362528344671202,
"reactancePu": 0.009750566893424037,
"susceptancePu": -14.926753402969592,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 6,
"busIndexFrom": 10,
"busIndexTo": 5,
"resistancePu": 0.010717828798185941,
"reactancePu": 0.00442531179138322,
"susceptancePu": -32.912899768883726,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 7,
"busIndexFrom": 6,
"busIndexTo": 9,
"resistancePu": 0.037634637188208614,
"reactancePu": 0.015564767573696145,
"susceptancePu": -9.384122573980571,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 8,
"busIndexFrom": 9,
"busIndexTo": 5,
"resistancePu": 0.01739654195011338,
"reactancePu": 0.007181831065759637,
"susceptancePu": -20.275151399896846,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 9,
"busIndexFrom": 4,
"busIndexTo": 11,
"resistancePu": 0.21895549886621313,
"reactancePu": 0.08789328231292518,
"susceptancePu": -1.578919171635558,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
},
{
"index": 10,
"busIndexFrom": 12,
"busIndexTo": 8,
"resistancePu": 0.02269699546485261,
"reactancePu": 0.009382086167800454,
"susceptancePu": -15.55444575653805,
"maxCurrentA": 99999,
"lengthkm": 0.1,
"status": 1
}
]
}
}
\ No newline at end of file
INFO:cimpy.cimimport:START of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/areti/1.xml" INFO:cimpy.cimimport:START of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/AD102425N.xml"
INFO:cimpy.cimimport:START of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/areti/2.xml" INFO:cimpy.cimimport:START of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/AD106025N.xml"
INFO:cimpy.cimimport:START of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/areti/3.xml" INFO:cimpy.cimimport:END of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/AD102425N.xml"
INFO:cimpy.cimimport:END of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/areti/1.xml" INFO:cimpy.cimimport:END of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/AD106025N.xml"
INFO:cimpy.cimimport:END of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/areti/2.xml" WARNING:cimpy.cimimport:Package information not found for class type : 275 times
INFO:cimpy.cimimport:END of parsing file "/home/ubuntu/code/CIM_Read/pyvolt-docker/examples/sample_data/areti/3.xml" WARNING:cimpy.cimimport:Package information not found for class SvPowerFlow, attribute p : 11 times
WARNING:cimpy.cimimport:Package information not found for class type : 1222 times WARNING:cimpy.cimimport:Package information not found for class SvPowerFlow, attribute q : 11 times
WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute ConductingEquipment : 436 times WARNING:cimpy.cimimport:Package information not found for class SvPowerFlow, attribute Terminal : 11 times
WARNING:cimpy.cimimport:'Terminal' has not attribute 'ConnectivityNode' : 436 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute name : 11 times
WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute name : 436 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute x : 11 times
WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute connected : 436 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute r : 11 times
WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute sequenceNumber : 436 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute gch : 11 times
WARNING:cimpy.cimimport:Referenced Terminal [PhaseCode.ABC] object missing. : 436 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute bch : 11 times
WARNING:cimpy.cimimport:'ConnectivityNode' has not attribute 'name' : 163 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute length : 11 times
WARNING:cimpy.cimimport:'ConnectivityNode' has not attribute 'ConnectivityNodeContainer' : 163 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute BaseVoltage : 11 times
WARNING:cimpy.cimimport:Package information not found for class Disconnector, attribute name : 112 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute aggregate : 11 times
WARNING:cimpy.cimimport:Package information not found for class Disconnector, attribute BaseVoltage : 112 times WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute EquipmentContainer : 11 times
WARNING:cimpy.cimimport:Package information not found for class Disconnector, attribute EquipmentContainer : 112 times WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute ConductingEquipment : 95 times
WARNING:cimpy.cimimport:Package information not found for class Disconnector, attribute normalOpen : 112 times WARNING:cimpy.cimimport:'Terminal' has not attribute 'ConnectivityNode' : 95 times
WARNING:cimpy.cimimport:Package information not found for class EnergyConsumer, attribute name : 52 times WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute name : 95 times
WARNING:cimpy.cimimport:Package information not found for class EnergyConsumer, attribute EquipmentContainer : 52 times WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute connected : 95 times
WARNING:cimpy.cimimport:Package information not found for class EnergyConsumer, attribute aggregate : 52 times WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute sequenceNumber : 95 times
WARNING:cimpy.cimimport:'EnergyConsumer' has not attribute 'pfixed' : 52 times WARNING:cimpy.cimimport:Referenced Terminal [PhaseCode.ABC] object missing. : 95 times
WARNING:cimpy.cimimport:'EnergyConsumer' has not attribute 'qfixed' : 52 times WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute TopologicalNode : 51 times
WARNING:cimpy.cimimport:Package information not found for class Terminal, attribute TopologicalNode : 224 times WARNING:cimpy.cimimport:'ConnectivityNode' has not attribute 'name' : 35 times
WARNING:cimpy.cimimport:Package information not found for class SvVoltage, attribute v : 57 times WARNING:cimpy.cimimport:'ConnectivityNode' has not attribute 'ConnectivityNodeContainer' : 35 times
WARNING:cimpy.cimimport:Package information not found for class SvVoltage, attribute angle : 57 times WARNING:cimpy.cimimport:Package information not found for class Disconnector, attribute name : 25 times
WARNING:cimpy.cimimport:Package information not found for class SvVoltage, attribute TopologicalNode : 57 times WARNING:cimpy.cimimport:Package information not found for class Disconnector, attribute BaseVoltage : 25 times
WARNING:cimpy.cimimport:Package information not found for class Substation, attribute name : 57 times WARNING:cimpy.cimimport:Package information not found for class Disconnector, attribute EquipmentContainer : 25 times
WARNING:cimpy.cimimport:Package information not found for class Substation, attribute Region : 57 times WARNING:cimpy.cimimport:Package information not found for class Disconnector, attribute normalOpen : 25 times
WARNING:cimpy.cimimport:Package information not found for class TopologicalNode, attribute name : 57 times WARNING:cimpy.cimimport:Package information not found for class SvVoltage, attribute v : 13 times
WARNING:cimpy.cimimport:Package information not found for class TopologicalNode, attribute ConnectivityNodeContainer : 57 times WARNING:cimpy.cimimport:Package information not found for class SvVoltage, attribute angle : 13 times
WARNING:cimpy.cimimport:Package information not found for class TopologicalNode, attribute TopologicalIsland : 57 times WARNING:cimpy.cimimport:Package information not found for class SvVoltage, attribute TopologicalNode : 13 times
WARNING:cimpy.cimimport:Package information not found for class TopologicalNode, attribute BaseVoltage : 57 times WARNING:cimpy.cimimport:Package information not found for class ExternalNetworkInjection, attribute aggregate : 2 times
WARNING:cimpy.cimimport:Package information not found for class SvPowerFlow, attribute p : 52 times WARNING:cimpy.cimimport:Package information not found for class ExternalNetworkInjection, attribute name : 2 times
WARNING:cimpy.cimimport:Package information not found for class SvPowerFlow, attribute q : 52 times WARNING:cimpy.cimimport:Package information not found for class ExternalNetworkInjection, attribute EquipmentContainer : 2 times
WARNING:cimpy.cimimport:Package information not found for class SvPowerFlow, attribute Terminal : 52 times WARNING:cimpy.cimimport:Package information not found for class TopologicalNode, attribute name : 13 times
WARNING:cimpy.cimimport:Package information not found for class VoltageLevel, attribute BaseVoltage : 58 times WARNING:cimpy.cimimport:Package information not found for class TopologicalNode, attribute ConnectivityNodeContainer : 13 times
WARNING:cimpy.cimimport:Package information not found for class VoltageLevel, attribute name : 58 times WARNING:cimpy.cimimport:Package information not found for class TopologicalNode, attribute TopologicalIsland : 13 times
WARNING:cimpy.cimimport:Package information not found for class VoltageLevel, attribute Substation : 58 times WARNING:cimpy.cimimport:Package information not found for class TopologicalNode, attribute BaseVoltage : 13 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute name : 54 times WARNING:cimpy.cimimport:Package information not found for class VoltageLevel, attribute BaseVoltage : 14 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute x : 54 times WARNING:cimpy.cimimport:Package information not found for class VoltageLevel, attribute name : 14 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute r : 54 times WARNING:cimpy.cimimport:Package information not found for class VoltageLevel, attribute Substation : 14 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute gch : 54 times WARNING:cimpy.cimimport:Package information not found for class BaseVoltage, attribute nominalVoltage : 2 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute bch : 54 times WARNING:cimpy.cimimport:Package information not found for class BaseVoltage, attribute name : 2 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute length : 54 times WARNING:cimpy.cimimport:Package information not found for class EnergyConsumer, attribute name : 11 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute BaseVoltage : 54 times WARNING:cimpy.cimimport:Package information not found for class EnergyConsumer, attribute EquipmentContainer : 11 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute aggregate : 54 times WARNING:cimpy.cimimport:Package information not found for class EnergyConsumer, attribute aggregate : 11 times
WARNING:cimpy.cimimport:Package information not found for class ACLineSegment, attribute EquipmentContainer : 54 times WARNING:cimpy.cimimport:'EnergyConsumer' has not attribute 'pfixed' : 11 times
WARNING:cimpy.cimimport:Package information not found for class BusbarSection, attribute name : 55 times WARNING:cimpy.cimimport:'EnergyConsumer' has not attribute 'qfixed' : 11 times
WARNING:cimpy.cimimport:Package information not found for class BusbarSection, attribute EquipmentContainer : 55 times WARNING:cimpy.cimimport:Package information not found for class GeographicalRegion, attribute name : 2 times
WARNING:cimpy.cimimport:Package information not found for class BusbarSection, attribute BaseVoltage : 55 times WARNING:cimpy.cimimport:Package information not found for class Substation, attribute name : 13 times
WARNING:cimpy.cimimport:Package information not found for class Line, attribute name : 54 times WARNING:cimpy.cimimport:Package information not found for class Substation, attribute Region : 13 times
WARNING:cimpy.cimimport:Package information not found for class Line, attribute Region : 54 times WARNING:cimpy.cimimport:Package information not found for class Line, attribute name : 11 times
WARNING:cimpy.cimimport:Package information not found for class SubGeographicalRegion, attribute name : 3 times WARNING:cimpy.cimimport:Package information not found for class Line, attribute Region : 11 times
WARNING:cimpy.cimimport:Package information not found for class SubGeographicalRegion, attribute Region : 3 times WARNING:cimpy.cimimport:Package information not found for class SubGeographicalRegion, attribute name : 2 times
WARNING:cimpy.cimimport:Package information not found for class TopologicalIsland, attribute name : 3 times WARNING:cimpy.cimimport:Package information not found for class SubGeographicalRegion, attribute Region : 2 times
WARNING:cimpy.cimimport:Package information not found for class ExternalNetworkInjection, attribute aggregate : 3 times WARNING:cimpy.cimimport:Package information not found for class BusbarSection, attribute name : 13 times
WARNING:cimpy.cimimport:Package information not found for class ExternalNetworkInjection, attribute name : 3 times WARNING:cimpy.cimimport:Package information not found for class BusbarSection, attribute EquipmentContainer : 13 times
WARNING:cimpy.cimimport:Package information not found for class ExternalNetworkInjection, attribute EquipmentContainer : 3 times WARNING:cimpy.cimimport:Package information not found for class BusbarSection, attribute BaseVoltage : 13 times
WARNING:cimpy.cimimport:Package information not found for class BaseVoltage, attribute nominalVoltage : 3 times WARNING:cimpy.cimimport:Package information not found for class TopologicalIsland, attribute name : 2 times
WARNING:cimpy.cimimport:Package information not found for class BaseVoltage, attribute name : 3 times INFO:cimpy.cimimport:CIM object SvPowerFlow created : 11 times
WARNING:cimpy.cimimport:Package information not found for class GeographicalRegion, attribute name : 3 times INFO:cimpy.cimimport:CIM object ACLineSegment created : 11 times
INFO:cimpy.cimimport:CIM object Terminal created : 436 times INFO:cimpy.cimimport:CIM object Terminal created : 95 times
INFO:cimpy.cimimport:CIM object ConnectivityNode created : 163 times INFO:cimpy.cimimport:CIM object ConnectivityNode created : 35 times
INFO:cimpy.cimimport:CIM object Disconnector created : 112 times INFO:cimpy.cimimport:CIM object Disconnector created : 25 times
INFO:cimpy.cimimport:CIM object EnergyConsumer created : 52 times INFO:cimpy.cimimport:CIM object SvVoltage created : 13 times
INFO:cimpy.cimimport:CIM object SvVoltage created : 57 times INFO:cimpy.cimimport:CIM object ExternalNetworkInjection created : 2 times
INFO:cimpy.cimimport:CIM object Substation created : 57 times INFO:cimpy.cimimport:CIM object TopologicalNode created : 13 times
INFO:cimpy.cimimport:CIM object TopologicalNode created : 57 times INFO:cimpy.cimimport:CIM object VoltageLevel created : 14 times
INFO:cimpy.cimimport:CIM object SvPowerFlow created : 52 times INFO:cimpy.cimimport:CIM object BaseVoltage created : 2 times
INFO:cimpy.cimimport:CIM object VoltageLevel created : 58 times INFO:cimpy.cimimport:CIM object EnergyConsumer created : 11 times
INFO:cimpy.cimimport:CIM object ACLineSegment created : 54 times INFO:cimpy.cimimport:CIM object GeographicalRegion created : 2 times
INFO:cimpy.cimimport:CIM object BusbarSection created : 55 times INFO:cimpy.cimimport:CIM object Substation created : 13 times
INFO:cimpy.cimimport:CIM object Line created : 54 times INFO:cimpy.cimimport:CIM object Line created : 11 times
INFO:cimpy.cimimport:CIM object SubGeographicalRegion created : 3 times INFO:cimpy.cimimport:CIM object SubGeographicalRegion created : 2 times
INFO:cimpy.cimimport:CIM object TopologicalIsland created : 3 times INFO:cimpy.cimimport:CIM object BusbarSection created : 13 times
INFO:cimpy.cimimport:CIM object ExternalNetworkInjection created : 3 times INFO:cimpy.cimimport:CIM object TopologicalIsland created : 2 times
INFO:cimpy.cimimport:CIM object BaseVoltage created : 3 times INFO:cimpy.cimimport:Created totally 275 CIM objects in 0.026203155517578125s
INFO:cimpy.cimimport:CIM object GeographicalRegion created : 3 times
INFO:cimpy.cimimport:Created totally 1207 CIM objects in 0.08098077774047852s
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
WARNING:pandapower.auxiliary:numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
...@@ -56,6 +56,9 @@ bb= aa.readSampleJson('/home/ubuntu/code/CIM_Read/pyvolt-docker/Data/template') ...@@ -56,6 +56,9 @@ bb= aa.readSampleJson('/home/ubuntu/code/CIM_Read/pyvolt-docker/Data/template')
cc= aa.extractKeyFromSampleJson(bb) cc= aa.extractKeyFromSampleJson(bb)
# dd = aa.feedDataToTemplate(cc) # dd = aa.feedDataToTemplate(cc)
aaa = export.PandapowerWork(json_file='/home/ubuntu/code/CIM_Read/pyvolt-docker/Data/output.json')
bbb = aaa.convertJsonToPP(dir_json='/home/ubuntu/code/CIM_Read/pyvolt-docker/Data/output.json')
# Print node voltages # Print node voltages
print("Powerflow converged in " + str(num_iter) + " iterations.\n") print("Powerflow converged in " + str(num_iter) + " iterations.\n")
print("Results: \n") print("Results: \n")
......
...@@ -8,6 +8,7 @@ import os ...@@ -8,6 +8,7 @@ import os
import networkx as nx import networkx as nx
import glob import glob
from datetime import datetime from datetime import datetime
import pandapower as pp
""" """
to export read CIM file in pyvolt of ARETI into PandaPower-readble json. to export read CIM file in pyvolt of ARETI into PandaPower-readble json.
...@@ -406,3 +407,20 @@ class PandapowerWork(Exporter): ...@@ -406,3 +407,20 @@ class PandapowerWork(Exporter):
if data is json, call function convertJsonToPP if data is json, call function convertJsonToPP
if data is dataframe, call function convertDFtoPP if data is dataframe, call function convertDFtoPP
""" """
pass
def convertJsonToPP(self, dir_json):
#load json
try:
with open (dir_json, "r") as f:
data = json.load(f)
except Exception as e:
raise Exception(f"Error loading JSON file '{dir_json}': {e}")
mva_base = data["mtPowerFlowInput"]["baseMVA"] # S_base (in MVA)
busses = data["mtPowerFlowInput"]["busses"]
branches = data["mtPowerFlowInput"]["branches"]
# transformers = data["mtPowerFlowInput"]["transformers"] #empty for now
#Create PandaPower Network
net = pp.create_empty_network()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment