Skip to content

Commit

Permalink
fix: use connectivity node container to find nominal voltage
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwar committed Jun 21, 2024
1 parent c13ed87 commit b1fde69
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cimsparql/sparql/converters.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ where {
# Extract mrid, name, substation and optionally aliasName of the converter
?converter cim:IdentifiedObject.mRID ?mrid;
cim:IdentifiedObject.name ?name;
cim:ConductingEquipment.BaseVoltage/cim:BaseVoltage.nominalVoltage ?un;
ALG:VoltageSourceConverter.DCPole|ALG:DCConverter.DCPole ?pole.

?pole ALG:DCPole.DCController/cim:IdentifiedObject.mRID ?controller;
Expand All @@ -23,8 +22,10 @@ where {
?terminal cim:Terminal.ConductingEquipment ?converter;
cim:Terminal.ConnectivityNode ?con_node;
cim:Terminal.sequenceNumber|cim:ACDCTerminal.sequenceNumber 1 .
?con_node cim:IdentifiedObject.mRID ?connectivity_node ;
cim:ConnectivityNode.ConnectivityNodeContainer/cim:VoltageLevel.Substation ?substation .
?con_node cim:IdentifiedObject.mRID ?connectivity_node;
cim:ConnectivityNode.ConnectivityNodeContainer ?con_node_container.
?con_node_container cim:VoltageLevel.Substation ?substation;
cim:VoltageLevel.BaseVoltage/cim:BaseVoltage.nominalVoltage ?un.
?substation cim:IdentifiedObject.mRID ?substation_mrid;
cim:Substation.Region/cim:SubGeographicalRegion.Region/cim:IdentifiedObject.name ?area .
optional {?converter SN:Equipment.networkAnalysisEnable ?_analysis_enabled .}
Expand Down

0 comments on commit b1fde69

Please sign in to comment.