-
Notifications
You must be signed in to change notification settings - Fork 110
BWB components in mass/flops_based subsysterms #889
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
base: main
Are you sure you want to change the base?
Conversation
…alculated_wing_area'.
…s_weight in Aviary.
…ASS, set 'WTIN.NPT' for FLOPS for Aircraft.CrewPayload.Design.NUM_TOURIST_CLASS. In this way, fortran_to_aviary can read in NPF and NPT.
… length computation so that they allow zero aeras and have smooth partials
…cal tail and canard. This work will affect to SPANHT, CRTHTB, SPANVT, and CROTVT. When area and/or aspect_ratio are zero, we will get infinity partials.
jkirk5
left a comment
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.
A few more minor change requests
| 'Suggest use detailed laylout algorithm.' | ||
| raise UserWarning( | ||
| 'Passenger compartment length is longer than recommended maximum' | ||
| ' length. Suggest using detailed laylout algorithm.' |
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.
| ' length. Suggest using detailed laylout algorithm.' | |
| ' length. Suggest using detailed layout algorithm.' |
| 'Passenger compartment lenght is longer than recommended maximum' | ||
| ' length. Suggest using detailed laylout algorithm.' |
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.
| 'Passenger compartment lenght is longer than recommended maximum' | |
| ' length. Suggest using detailed laylout algorithm.' | |
| 'Passenger compartment length is longer than recommended maximum' | |
| ' length. Suggest using detailed layout algorithm.' |
| if rear_spar_percent_chord <= 0.0: | ||
| if verbosity > Verbosity.BRIEF: | ||
| print('Rear_spar_percent_chord must be positive.') | ||
| raise ValueError( |
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.
Remove the verbosity check before raising the error
| wingspan = inputs[Aircraft.Wing.SPAN][0] | ||
| if wingspan <= 0.0: | ||
| if verbosity > Verbosity.BRIEF: | ||
| raise ValueError( |
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.
Another error behind a verbosity check, remove the check
| if rear_spar_percent_chord <= 0.0: | ||
| if verbosity > Verbosity.BRIEF: | ||
| print('Rear_spar_percent_chord must be positive.') | ||
| raise ValueError( |
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.
Don't raise error behind verbosity check!
Summary
This PR implements the mass subsystem for BWB aircraft. The BWB components are:
BWBFurnishingsGroupMass(vs.TransportFurnishingsGroupMass)BWBFuselageMass(vs.TransportFuselageMass)BWBAftBodyMass(new for BWB)BWBWingMiscMass(vs.WingMiscMass)BWBDetailedWingBendingFact(vs.DetailedWingBendingFact)Unit testings against these new components are added. All the results are compared to FLOPS Fortran code runs.
There are two features to know:
So, theoretically, we should have four test cases: simple layout + simple wing, simple layout + detailed wing, detailed layout + simple wing, and detailed layout + detailed wing. In this PR, however, we only have two test cases: simple layout + simple wing (see
models/aircraft/blended_wing_body/bwb_simple_FLOPS_data.py), and detailed layout + detailed wing (seemodels/aircraft/blended_wing_body/bwb_detailed_FLOPS_data.py).In
anti_icing.pyandstarter.py, nacelle average diameter (Aircraft.Nacelle.AVG_DIAMETER) is scaled by thrust ratio defined by:Aircraft.Engine.SCALED_SLS_THRUST / Aircraft.Engine.REFERENCE_SLS_THRUSTin order to match with FLOPS runs. In the current test cases, this ratio has been always 1.
Related Issues
Backwards incompatibilities
None
New Dependencies
None