From 7eaab1347b60d0bf96f4e9d9ce7e9e88cf39d137 Mon Sep 17 00:00:00 2001 From: FredericSabot Date: Mon, 8 Apr 2024 15:23:02 +0200 Subject: [PATCH] #30 Add timeline event for IBG overvoltage trips Signed-off-by: FredericSabot --- dynawo/sources/Common/Dictionaries/DYNTimeline_en_GB.dic | 2 ++ .../BaseClasses/GenericIBG/OverVoltageProtection.mo | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/dynawo/sources/Common/Dictionaries/DYNTimeline_en_GB.dic b/dynawo/sources/Common/Dictionaries/DYNTimeline_en_GB.dic index d2e6cc188a7..8642889a895 100644 --- a/dynawo/sources/Common/Dictionaries/DYNTimeline_en_GB.dic +++ b/dynawo/sources/Common/Dictionaries/DYNTimeline_en_GB.dic @@ -115,6 +115,8 @@ DCLineClosed = DC line closed LVRTTripped = LVRT generator tripped LVRTArming = LVRT automaton for generator arming LVRTDisarming = LVRT automaton for generator disarming +// --> Over voltage protection +OverVoltageTripped = Over-voltage protection tripped // --> Aggregated IBG PartialTripping = Partial tripping ongoing // --> Distance protection diff --git a/dynawo/sources/Models/Modelica/Dynawo/Electrical/InverterBasedGeneration/BaseClasses/GenericIBG/OverVoltageProtection.mo b/dynawo/sources/Models/Modelica/Dynawo/Electrical/InverterBasedGeneration/BaseClasses/GenericIBG/OverVoltageProtection.mo index 4c8e83d5bcb..7e41056d417 100644 --- a/dynawo/sources/Models/Modelica/Dynawo/Electrical/InverterBasedGeneration/BaseClasses/GenericIBG/OverVoltageProtection.mo +++ b/dynawo/sources/Models/Modelica/Dynawo/Electrical/InverterBasedGeneration/BaseClasses/GenericIBG/OverVoltageProtection.mo @@ -14,6 +14,9 @@ within Dynawo.Electrical.InverterBasedGeneration.BaseClasses.GenericIBG; */ model OverVoltageProtection + import Dynawo.NonElectrical.Logs.Timeline; + import Dynawo.NonElectrical.Logs.TimelineKeys; + parameter Types.VoltageModulePu UMaxPu "Maximum voltage over which the unit is disconnected in pu (base UNom)"; Dynawo.Connectors.BPin switchOffSignal(value(start = false)) "Switch off message for the generator"; @@ -24,6 +27,7 @@ model OverVoltageProtection equation when Um > UMaxPu then switchOffSignal.value = true; + Timeline.logEvent1(TimelineKeys.OverVoltageTripped); end when; annotation(preferredView = "text");