Skip to content

Commit

Permalink
NE-260 Power at the Transformer not correctly compared
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickoswald committed Jan 25, 2018
1 parent c30c43f commit 3de0664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ShortCircuitCalculation extends RESTful
spec.setFunctionName (CIMInteractionSpec.EXECUTE_CIM_FUNCTION)
val input = getInputRecord ("input record containing the function to run")
// ToDo: get the default from parameters
val options = ShortCircuitOptions (false, 200.0, -70.0, transformer, null)
val options = ShortCircuitOptions (false, 200.0, -70.0, 1.0, 0.90, 1.0, 1.0, transformer, null)
val query = ShortCircuitFunction (options, spreadsheet)
input.asInstanceOf[map].put (CIMFunction.FUNCTION, query)
val interaction = connection.createInteraction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ case class Einspeiseleistung (session: SparkSession, options: EinspeiseleistungO
}

// P = VI = 400 / sqrt(3) * I [one phase] = sqrt(3) * 400 * I [three phase]
val i = if (options.three) power / (400.0 * math.sqrt (3)) else math.sqrt (3) * power / 400.0
val i = if (options.three) power / (400.0 * math.sqrt (3)) else power / 400.0
val overI = elements.filter (if (options.three) interesting3ph (i) else interesting1ph (i))
overI.flatMap (assign (experiments))
}
Expand Down

0 comments on commit 3de0664

Please sign in to comment.