-
Notifications
You must be signed in to change notification settings - Fork 55
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
CST airfoil parameterization #141
Conversation
…a3/envs/foil/bin/python
…ed (except derivative stuff)
… with DVCon...still needs testing and some other TODOs
…a isComplex in __init__
… DVs to the airfoil fit in the pyOpt initialization and fix the bug when there are no DVGeoCST DVs (only alpha) in an opt problem
Not sure what's going on with flake8, but it must be due to a new version since it's from code I didn't touch. What's the best approach to handle that? |
Yeah this is from |
Got it. I'm happy to fix it in this PR, I'm just not exactly sure what it needs. I tried adding a |
…ing edges and sharp and closed cases
Yeah at first glance I'm not really sure either. If we can't figure it out we can always tell flake8 to skip the warning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking a lot better. few issues left
It looks like the flake check is complaining that the twist function defined in the dvgeomulti test can vary with different axes. Especially, the nrefaxis variable there might be getting updated, or there's a risk of it. we can just add it as an optional parameter to the function and set the value when we define the function. maybe that way it wont complain. sth like:
I don't know if this will fix it though. |
Nice! Looks like this did the trick |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for working on the changes
Purpose
This PR adds a CST parameterization for airfoil optimization. It allows for design variables of the CST parameters, class shape, and chord length. All derivatives analytically defined.
Expected time until merged
2 furlongs
Type of change
Testing
Tests for the new
DVGeometryCST
can be found intests/reg_tests/test_DVGeometryCST.py
.Checklist
flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted