Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 6369b42

Browse files
authored
Merge pull request #72 from abhineet-gupta/ViternaBugfix
Fix Viterna extrapolation bug to avoid repeated data
2 parents 99049f0 + 12a25ee commit 6369b42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyFAST/airfoils/Polar.py

+2
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,8 @@ def extrapolate(self, cdmax, AR=None, cdmin=0.001, nalpha=15):
539539
# -90 <-> -alpha_high
540540
alpha5 = np.linspace(-np.pi / 2, alpha5max, nalpha)
541541
alpha5 = alpha5[1:]
542+
if alpha_low == -alpha_high:
543+
alpha5 = alpha5[:-1]
542544
cl5, cd5 = self.__Viterna(-alpha5, -cl_adj)
543545

544546
# -180+alpha_high <-> -90

0 commit comments

Comments
 (0)