Skip to content

Commit

Permalink
dynawo#32 Fix initialisation of grid forming droop control when activ…
Browse files Browse the repository at this point in the history
…e damping is used

Signed-off-by: FredericSabot <[email protected]>
  • Loading branch information
FredericSabot committed Oct 3, 2024
1 parent d983c1b commit fb7d663
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ model GridFormingControl_INIT "Initialization model for the grid forming control
parameter Types.PerUnit KpVI "Proportional gain of the virtual impedance";
parameter Types.PerUnit XRratio "X/R ratio of the virtual impedance";
parameter Types.CurrentModulePu IMaxVI "Maximum current before activating the virtual impedance in pu (base UNom, SNom)";
parameter Types.PerUnit Kff = 0 "Gain of the active damping";

Types.PerUnit IdcSourceRef0Pu "Start value of DC current reference in pu (base UdcNom, SNom)";
Types.PerUnit IdcSource0Pu "Start value of DC current in pu (base UdcNom, SNom)";
Expand Down Expand Up @@ -47,9 +48,9 @@ model GridFormingControl_INIT "Initialization model for the grid forming control
equation
/* External loop */
PRef0Pu = PFilter0Pu;
UdFilter0Pu = UFilterRef0Pu;
UdFilter0Pu = UFilterRef0Pu - Kff*IdPcc0Pu;
QRef0Pu = QFilter0Pu;
UqFilter0Pu = 0;
UqFilter0Pu = - Kff*IqPcc0Pu;

/* DC voltage control */
IdcSourceRef0Pu = IdcSource0Pu;
Expand Down

0 comments on commit fb7d663

Please sign in to comment.