Skip to content
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

Approximate linear lift curve slope with polar corrections #200

Open
wants to merge 30 commits into
base: develop
Choose a base branch
from

Conversation

ngoiz
Copy link
Contributor

@ngoiz ngoiz commented Jun 15, 2022

Supports corrections from polar airfoil data on the linearised aeroelastic system.

Modifications are only made to the lift force at the moment. The forces from the aeroelastic system are projected onto the local stability axis (drag, lift, etc) and a coefficient is applied based on the derivative of the polar data at the linearisation condition. The forces are then projected back onto the original frame.

Full details found in the docstring:

def generate_linear(self, **params):

@rafapalacios @ACea15 please can you have a look whenever you have a moment? maybe we don't want to merge this just yet or maybe you think its a valuable feature

@ngoiz ngoiz requested review from rafapalacios and ACea15 June 15, 2022 20:28
Copy link
Contributor

@ACea15 ACea15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Norberto, just a couple of comments and it is good to go into develop. It is still a work in progress but it is self-contained and does not conflict with any part of the code, I believe, so let's merge to develop and keep working from there.
I reckon it could be a very useful feature in production environments and it is not easy to navigate from the nonlinear to the linear part, to then apply sectional corrections on the state-space systems based on the derivatives... so nice work!!

sharpy/aero/utils/airfoilpolars.py Show resolved Hide resolved
sharpy/linear/assembler/linearaeroelastic.py Outdated Show resolved Hide resolved
### detect bc at node (and no. of dofs)
bc_here = structure.boundary_conditions[inode]

if bc_here == 1: # clamp (only rigid-body)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a trim analysis, this very first node with bc=1 would still have DoF, therefore is this routine only valid for A-frame node clamped conditions? It is fine if that's the case but we should remark it at the function docstring.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue with the bc=1 node is that it doesn't have flexible DOF and hence the airforces at that node are not mapped to it but rather to the A frame (i.e. with the sum of all the forces). Therefore, to correct the aero force at the bc=1 node, I subtract all the other forces from the A frame, correct them, and sum them all up again:

# obtain the nodal force at the A frame

ngoiz added 2 commits June 30, 2022 14:30
Apply revisions from code review
@ngoiz
Copy link
Contributor Author

ngoiz commented Jun 30, 2022

Thanks, Alvaro, for the review. I'm seeing if can fix an issue with the tests (running fine from the individual directory but failing from the top-level) and I'll merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants