Skip to content

Commit 71f6dfd

Browse files
committed
Guarded against rounding error for wind cutoff (maint 12)
This is for #4224
1 parent dd6acc4 commit 71f6dfd

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Buildings/Electrical/Interfaces/PartialWindTurbine.mo

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ protected
1515
Modelica.Blocks.Tables.CombiTable1Ds per(
1616
final tableOnFile=tableOnFile,
1717
final table=cat(1, cat(1, [0, 0], table),
18-
[vOut+10*Modelica.Constants.eps, 0;
19-
vOut+20*Modelica.Constants.eps, 0]),
18+
[vOut+1E-9, 0;
19+
vOut+2E-9, 0]),
2020
final tableName=tableName,
2121
final fileName=fileName,
2222
final columns=2:2,
@@ -170,6 +170,11 @@ Below and above these wind speeds, the generated power is zero.
170170
</html>", revisions="<html>
171171
<ul>
172172
<li>
173+
April 9, 2025, by Michael Wetter:<br/>
174+
Increased small number to extend table beyond cut-out wind speed.<br/>
175+
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/4224\">issue 4224</a>.
176+
</li>
177+
<li>
173178
March 1, 2016, by Michael Wetter:<br/>
174179
Removed test for equality of <code>Real</code> variables.
175180
This is for

0 commit comments

Comments
 (0)