Skip to content

Commit b44bada

Browse files
authored
Update windmodels.py
d2Vm will be positive when dP is a tiny positive value
1 parent f90f8da commit b44bada

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wind/windmodels.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ def secondDerivative(self):
335335
(f * rMax) ** 2) * (4 * beta * dP * rMax ** 2 / rho +
336336
E * (f * rMax ** 2) ** 2)))
337337

338+
if d2Vm > 0 and abs(dP) < 0.5:
339+
d2Vm = -2 * 1e-11
340+
338341
try:
339342
assert d2Vm < 0.0
340343
except AssertionError:

0 commit comments

Comments
 (0)