Skip to content

Commit

Permalink
fix: devide controller factor by number of poles for any converter
Browse files Browse the repository at this point in the history
The controller factor is given per pole and there can be one or two converters per pole.
  • Loading branch information
leifwar committed Jun 21, 2024
1 parent 7b96db1 commit 2220e4e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cimsparql/sparql/converters.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ where {
cim:IdentifiedObject.name ?name;
ALG:VoltageSourceConverter.DCPole|ALG:DCConverter.DCPole ?pole.

?pole ALG:DCPole.DCController/cim:IdentifiedObject.mRID ?controller;
ALG:DCPole.participationFactor ?controller_factor.
?pole ALG:DCPole.DCController/cim:IdentifiedObject.mRID ?controller.
{
select ?pole (max(xsd:float(str(?controller_factor))) / count(*) as ?controller_factor)
{
?converter ALG:VoltageSourceConverter.DCPole|ALG:DCConverter.DCPole ?pole.
?pole ALG:DCPole.participationFactor ?controller_factor.
} group by ?pole
}

optional {?converter cim:IdentifiedObject.aliasName ?alias .}
# Extract properties for the terminals for the converter
Expand Down

0 comments on commit 2220e4e

Please sign in to comment.