-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Bezier curve to fit NACA 4-digit airfoil #320
Comments
PR #384 adds a prototype that samples the 4th-order polynomial profile of the airfoil using both cubic bezier curves: Lines 113 to 127 in 6e634cd
And straight lines: Lines 106 to 110 in 6e634cd
But fitting is not done yet. |
@YenPeiChen07 Could you please help completing all tasks for fitting the airfoil? I may add more as we go. But if the work lasts too long I may create a new issue to track. If you are not familiar with an optimization algorithm like linear least square, perhaps discussing with @Gene0315 can help. |
PR #406 refactors the code added in PR #384 and moved the calculating and drawing code from A reference to the wikipedia page https://en.wikipedia.org/wiki/NACA_airfoil is added in the code comment: modmesh/modmesh/pilot/airfoil/__init__.py Line 49 in d9214b6
The related equations are listed in the wikipedia page. I also copied them in the code comments. The symmetric profile: modmesh/modmesh/pilot/airfoil/__init__.py Lines 90 to 100 in d9214b6
The asymmetric profile (camber): modmesh/modmesh/pilot/airfoil/__init__.py Lines 127 to 148 in d9214b6
|
Also in the future, we may consider to move other GUI code from |
In the current prototype of the
naca
app, the airfoil is described using sampled edges. I'd like to try to describe the airfoil using Bezier curves, so that generating meshes for the airfoil shapes ca use arbitrarily high resolution.Progress
Open for discussions
Add GUI control for changing the airfoil drawing and fitting parameters.
The text was updated successfully, but these errors were encountered: