Skip to content

Commit acb25d5

Browse files
committed
Revert changes to HYGOV
1 parent a0ca3e5 commit acb25d5

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

  • OpenIPSL/Electrical/Controls/PSSE/TG

OpenIPSL/Electrical/Controls/PSSE/TG/HYGOV.mo

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ model HYGOV "HYGOV - Hydro Turbine-Governor model"
1414
parameter Types.PerUnit A_t=1.2 "Turbine gain";
1515
parameter Types.PerUnit D_turb=0.2 "Turbine damping";
1616
parameter Types.PerUnit q_NL=0.08 "Water flow at no load";
17+
parameter Types.PerUnit h0(min=0)=1 "Water head initial value > 0";
1718
Modelica.Blocks.Sources.Constant n_ref(k=nref) annotation (Placement(transformation(extent={{-178,14},{-166,26}})));
1819
OpenIPSL.NonElectrical.Continuous.SimpleLag SimpleLag1(
1920
K=1,
@@ -24,7 +25,7 @@ model HYGOV "HYGOV - Hydro Turbine-Governor model"
2425
annotation (Placement(transformation(extent={{-130,-22},{-142,-10}})));
2526
Modelica.Blocks.Math.Gain Gain4(k=D_turb)
2627
annotation (Placement(transformation(extent={{-62,-34},{-50,-22}})));
27-
Modelica.Blocks.Sources.Constant hs(k=1)
28+
Modelica.Blocks.Sources.Constant hs(k=h0)
2829
annotation (Placement(transformation(extent={{20,-20},{32,-8}})));
2930
Modelica.Blocks.Continuous.Integrator q(
3031
y_start=q0,
@@ -72,8 +73,6 @@ model HYGOV "HYGOV - Hydro Turbine-Governor model"
7273
y_start=0)
7374
annotation (Placement(transformation(extent={{-106,0},{-94,12}})));
7475
protected
75-
parameter Real h0=1 "water head initial value";
76-
// Real T_w(start=T_w);//=1.25 "Water time constant, s";
7776
parameter Real q0(fixed=false);
7877
//=Pm0/(A_t*h0)+q_NL "water flow initial value";
7978
parameter Real g0(fixed=false);
@@ -153,7 +152,11 @@ equation
153152
extent={{-100,160},{100,100}},
154153
lineColor={28,108,200},
155154
textString="HYGOV")}),
156-
Documentation(info="<html> This is a hydro turbine-governor model.
155+
Documentation(info="<html>
156+
<p> This is a hydro turbine-governor model. </p>
157+
<p> If compared to the original PSSE implementation one will notice that the initial water head value, <code>h0</code>, is declared as a parameter.
158+
This allows the user to modify it, if required, in order to perform adequate studies.
159+
The user should leave it in its default value (<code>1</code>) if they do not have any information on water head value, or if they do not wish to modify the parameter.</p>
157160
</html>",revisions="<html>
158161
<table cellspacing=\"1\" cellpadding=\"1\" border=\"1\">
159162
<tr>
@@ -162,7 +165,7 @@ equation
162165
</tr>
163166
<tr>
164167
<td><p>Last update</p></td>
165-
<td><p>2020-09</p></td>
168+
<td><p>2022-11</p></td>
166169
</tr>
167170
<tr>
168171
<td><p>Author</p></td>

0 commit comments

Comments
 (0)