Skip to content

Commit

Permalink
Merge pull request #465 from abhineet-gupta/ViternaFix
Browse files Browse the repository at this point in the history
Fix Viterna extrapolation bug to avoid repeated data
  • Loading branch information
gbarter committed Oct 13, 2023
2 parents 0cbb0a6 + 4f43ca6 commit 59fecc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wisdem/ccblade/Polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ def extrapolate(self, cdmax, AR=None, cdmin=0.001, nalpha=15):
# -90 <-> -alpha_high
alpha5 = np.linspace(-np.pi / 2, alpha5max, nalpha)
alpha5 = alpha5[1:]
if alpha_low == -alpha_high:
alpha5 = alpha5[:-1]
cl5, cd5 = self.__Viterna(-alpha5, -cl_adj)

# -180+alpha_high <-> -90
Expand Down

0 comments on commit 59fecc1

Please sign in to comment.