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

flight state to parsing #139

Merged
merged 2 commits into from Nov 27, 2017
Merged

flight state to parsing #139

merged 2 commits into from Nov 27, 2017

Conversation

mjburton11
Copy link

No description provided.

@mjburton11 mjburton11 requested a review from bqpd November 16, 2017 03:21

return [Re == (state["V"]*state["\\rho"]*l/state["\\mu"]),
return [Re == (V*rho*l/mu),
Copy link
Contributor

Choose a reason for hiding this comment

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

remove parens


if fd["d"] == 2:
independentvars = [self.CL, self.Re]
elif fd["d"] == 3:
independentvars = [self.CL, self.Re, static.planform.tau]

return [Cd >= cdp + CL**2/np.pi/AR/e,
Re == (state["\\rho"]*state["V"]*cmac/state["\\mu"]),
Re == (rho*V*cmac/mu),
Copy link
Contributor

Choose a reason for hiding this comment

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

remove parens

@@ -1,21 +1,22 @@
" wing test "
from gpkitmodels.GP.aircraft.wing.wing import Wing
from gpkitmodels.GP.aircraft.wing.boxspar import BoxSpar
from gpkit import Variable, Model
from gpkit import Variable, Model, parse_variables
Copy link
Contributor

Choose a reason for hiding this comment

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

does Variable still need to be imported?

path = os.path.dirname(__file__)
fd = pd.read_csv(path + os.sep + "tail_dragfit.csv").to_dict(
orient="records")[0]

constraints = [
Re == (state["V"]*state["\\rho"]*S/b
/ state["\\mu"]),
Re == (V*rho*S/b/mu),
Copy link
Contributor

Choose a reason for hiding this comment

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

remove parens

@bqpd
Copy link
Contributor

bqpd commented Nov 16, 2017

test this please

@bqpd
Copy link
Contributor

bqpd commented Nov 16, 2017

test models please

@bqpd
Copy link
Contributor

bqpd commented Nov 20, 2017

test models please

@bqpd
Copy link
Contributor

bqpd commented Nov 20, 2017

@mjburton11 ready to merge this if it passes model tests

@mjburton11
Copy link
Author

@bqpd they won't pass unfortunately until I get convexengineering/solar#13 to pass

@mjburton11
Copy link
Author

merging now, will fix solar, gassolar and jho after.

@mjburton11 mjburton11 merged commit da0ec49 into master Nov 27, 2017
@mjburton11 mjburton11 deleted the fsparsing branch November 27, 2017 19:16
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

2 participants