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

fix auto-diff for cosminus1 in gust loading #158

Merged
merged 2 commits into from
Apr 3, 2018
Merged

fix auto-diff for cosminus1 in gust loading #158

merged 2 commits into from
Apr 3, 2018

Conversation

bqpd
Copy link
Contributor

@bqpd bqpd commented Mar 30, 2018

@@ -49,7 +51,7 @@ class GustL(SparLoading):
new_SbarFun = None

return_cosm1 = lambda self, c: hstack(
[1e-10, 1-cos(c[self.wing.planform.eta][1:]*pi/2)])
[adnumber(1e-10), 1-array(cos(c[self.wing.planform.eta][1:]*pi/2))])
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 array is necessary because admath.cos returns a list, unfortunately.

Note that if you wrapped the whole thing in adnumber you'd wipe out all derivative information!

@mjburton11
Copy link

test this please

@mjburton11
Copy link

test models please

@mjburton11
Copy link

@bqpd @galbramc I think that some of the csv are not getting installed with the package and is causing this error. Any idea why that might be happening? They should be included in the setup file

@galbramc
Copy link

galbramc commented Apr 2, 2018

this is a question for @bqpd...

@mjburton11
Copy link

Seems to only fail on reynolds and windows...

@mjburton11
Copy link

test models please

@mjburton11
Copy link

looks like the mysterious csv errors disappeared

@mjburton11 mjburton11 merged commit 3824690 into master Apr 3, 2018
@mjburton11 mjburton11 deleted the cosminus1 branch April 3, 2018 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants