Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Feb 27, 2024
2 parents 74dac0a + 0a18bc4 commit 107a450
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions studies/AirfoilDatabaseQuality/compute_airfoil_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def compute_airfoil_quality(af: asb.Airfoil):
if np.any(af.y() >= 0.5):
raise QualityError("Airfoil has abnormally high y-coordinates.")

if np.any(af.local_thickness(x_over_c = np.linspace(0, 1, 101)) < 0):
raise QualityError("Airfoil has negative thickness.")

# Check if the airfoil is self-intersecting
if not af.as_shapely_polygon().is_valid:
raise QualityError("Airfoil is self-intersecting.")
Expand Down

0 comments on commit 107a450

Please sign in to comment.