From 6e9b038f235580c27906582fc5ef87495627be68 Mon Sep 17 00:00:00 2001 From: Anne Tilloy <48123713+annetill@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:40:02 +0200 Subject: [PATCH] Make method to compute hvdc line losses public (#3098) * Fix access to hvdc line losses. Signed-off-by: Anne Tilloy --- .../src/main/java/com/powsybl/iidm/network/util/HvdcUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iidm/iidm-api/src/main/java/com/powsybl/iidm/network/util/HvdcUtils.java b/iidm/iidm-api/src/main/java/com/powsybl/iidm/network/util/HvdcUtils.java index 0bc5677b583..4b464295f0c 100644 --- a/iidm/iidm-api/src/main/java/com/powsybl/iidm/network/util/HvdcUtils.java +++ b/iidm/iidm-api/src/main/java/com/powsybl/iidm/network/util/HvdcUtils.java @@ -77,7 +77,7 @@ private static double getAbsoluteValuePAc(HvdcConverterStation station) { } } - private static double getHvdcLineLosses(double rectifierPDc, double nominalV, double r) { + public static double getHvdcLineLosses(double rectifierPDc, double nominalV, double r) { // This method computes the losses due to the HVDC line. // The active power value on rectifier DC side is known as the HVDC active power set point minus the losses related // to AC/DC conversion (rectifier conversion), the voltage is approximated to the nominal voltage as attribute of the HVDC line.