-
Notifications
You must be signed in to change notification settings - Fork 11
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
Prop #157
Prop #157
Conversation
Variables | ||
--------- | ||
R 10 [m] prop radius | ||
W 10 [lbf] prop weight |
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.
I don't like the propeller having a fixed weight. Does it add 10 lbs to the solar model too? I would probably leave it without weight variable for now. Maybe it can scale with radius?
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.
Agreed fixed weights are not correct, but I'm not sure the best simple weight model yet. I think we should leave it with a small weight value as a placeholder until we can implement a real weight model. This lets it be added to the aircraft.components list for integration into the overall model without adding an inaccurate weight estimate.
def setup(self): | ||
exec parse_variables(Propeller.__doc__) | ||
|
||
def performance(self,state): |
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.
Instead of declaring it as a model I would declare like:
"""
docstring
"""
performance = Propeller_Performance
def setup(self):
...
Also can we rename it from performance
to flight_model
so it's consistent with wing.py
and the other GP models in this repo?
lam == V/(omega*R), | ||
CT == Tc*lam**2, | ||
CP == Q*omega/(.5*rho*(omega*R)**3*math.pi*R**2), | ||
eta == CT*lam/CP, #Is this the same eta? check |
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.
Is this calculating the same eta
? If not which equation is driving it and which is correct?
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.
This is for the motor weight estimate; it should be left off this pull request.
@@ -0,0 +1,58 @@ | |||
" qprop model " |
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.
Is this model done yet? If not let's leave it off of this PR
from qprop import QProp | ||
from gpkitmodels.GP.aircraft.wing.wing_test import FlightState | ||
|
||
def eta_test(): |
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.
Can this test be a unit test for the Propeller
model?
@@ -0,0 +1,31 @@ | |||
" propelle tests " |
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.
typo
Q [N*m] torque | ||
omega [rpm] propeller rotation rate | ||
|
||
""" |
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.
It'd be great to have bounds as well!
it looks like this is legitimately not passing tests, I'll take a look |
def eta_test(): | ||
|
||
fs = FlightState() | ||
p = Propeller(fs) |
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.
propeller does not accept flight state as an argument
@mjburton11 @courtin see code review above (deleting comments related to #24 to make this PR easier to read) |
It's 19/40/40/a very lucky 60/an unlucky 60/25/36/unlucky 60 on gpkit models testing, so it's nearly the same |
What about the script? |
The script is very similar on that test |
But can it be the same? Are the difference needed? If the differences do not matter we can add it to the templating for the others so we have one less script to maintain. |
One of them needs to install local gpkit and master gplibrary, the other needs to the the other, and they call |
No not those. Are these differences signifincant:
vs
|
Oh! Sorry! I missed that you meant |
Should all research models be installed? I can't tell if the prop failure is due to this PR or due to the lack of the install. |
The prop failure is definitely due to this PR, since this PR is what introduces that test. |
So if you decide you need to install just the gplibrary, you can add an if test to the gpkit_RearchModel template just for gplibrary test. That is preferable rather than having one more script with a tiny perturbation. |
@galbramc I'm afraid I'm not following what you're saying! Are you proposing a further modification? |
I don't understand why it think Do we just need to increase the run time of the research tests? That seems to be the only reason it is failing. |
increased the timeout, though it's too bad it takes so long! |
agreed. still no understanding of why TESTS is failing?? |
test models please |
Woohoo! Passed research tests! 1 to @bqpd do you know what is going on? |
I added more cores to the Windows 7 VM. Hopefully it runs faster now. |
@galbramc do you know why this is still failing TESTS? |
That might be my mistake; I may have been too hasty in assuming the
differences above were not significant!
…On Fri, Mar 30, 2018, 10:42 Michael Burton ***@***.***> wrote:
@galbramc <https://github.com/galbramc> do you know why this is still
failing TESTS?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#157 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABagGPNwS3uzSnJPWsCEb2IWwam_kXQJks5tjkRDgaJpZM4S6JcH>
.
|
So does this library and no other need to be installed? What happens if the others are installed? |
Or this library needs to not be installed...I'll take a look. The fix might well be a little more logic in gpkit |
test this please |
1 similar comment
test this please |
test this please |
@bqpd why aren't tests running? |
test models please |
Adding simple propeller model with fixed weight and radius.