Skip to content

Commit

Permalink
Addressing reviewer's comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
staudtMarius committed Jan 21, 2025
1 parent 62fcd13 commit 4cb32fb
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class PowerFlowSupportSpec

"perform the power flow for the slack grid correctly" in {
val withMvPowerFlowResults: Map[UUID, Dimensionless] = {
val (gridModel, receivedValueStore) = TestData.withMv
val (gridModel, receivedValueStore) = TestData.withEHV

val (operationPoint, slackNodeVoltages) = composeOperatingPoint(
gridModel.gridComponents.nodes,
Expand Down Expand Up @@ -430,8 +430,8 @@ class PowerFlowSupportSpec
pf.nodeData.map(n => indexMap(n.index) -> Each(n.voltage.abs)).toMap
}

val onlyLvPowerFlowResults: Map[UUID, Dimensionless] = {
val (gridModel, receivedValueStore) = TestData.onlyLv
val onlyHvPowerFlowResults: Map[UUID, Dimensionless] = {
val (gridModel, receivedValueStore) = TestData.onlyHV

val pf = slackGridPF(
gridModel,
Expand All @@ -451,7 +451,7 @@ class PowerFlowSupportSpec

}

onlyLvPowerFlowResults.foreach { case (uuid, result) =>
onlyHvPowerFlowResults.foreach { case (uuid, result) =>
withMvPowerFlowResults(uuid) should approximate(result)(tolerance)
}
}
Expand All @@ -474,7 +474,7 @@ class PowerFlowSupportSpec
simonaConfig,
)

val withMv: (GridModel, ReceivedValuesStore) = {
val withEHV: (GridModel, ReceivedValuesStore) = {
val gridModel = TestGridFactory.createSubGrid(
gridName = "centerGrid",
subgrid = 1,
Expand All @@ -497,7 +497,7 @@ class PowerFlowSupportSpec
(gridModel, receivedValueStore)
}

val onlyLv: (GridModel, ReceivedValuesStore) = {
val onlyHV: (GridModel, ReceivedValuesStore) = {
val updatedNode1 =
node1.copy().slack(true).vTarget(0.9999984268502677.asPu).build()
val gridModel = TestGridFactory.createSubGrid(
Expand Down

0 comments on commit 4cb32fb

Please sign in to comment.