Apply Aircraft.Design.PERCENT_EXCRESCENCE_DRAG to FLOPS based aerodynamics#1185
Apply Aircraft.Design.PERCENT_EXCRESCENCE_DRAG to FLOPS based aerodynamics#1185xjjiang wants to merge 16 commits into
Conversation
…. Moved a TODO comment to issue 1184.
jkirk5
left a comment
There was a problem hiding this comment.
Putting a quick block on merging - we can't loose the 0.06 FLOPS default because that will cause all future models using the method to produce incorrect answers
Do we currently have any other vars or options that have different defaults between the 2 code-origins? |
I think we have some, but they are easily handled - typically the Aviary default is zero, and the different FLOPS/GASP defaults are added to the input file during file conversion. This is stuff where using the same default as the legacy code is important for matching results with that code, but aren't fundamental to the method itself. This is a weird case, because in FLOPS the excrescence drag factor isn't actually an input, so that 0.06 seems like it may have been hardcoded into the method. So it's not just a matter of setting the variable during file conversion - it's something that needs to be happening for all Aviary models using EDET, whether they were converted from FLOPS or written from scratch so the results match what that method is expected to produce. There is a unrelated potential issue that currently the excrescence drag factor has a default of 0, and none of our GASP models set that. So that drag component ends up always being zero in GASP aero which seems unintended. |
|
TLDR: This default is important because without it, the same set of inputs given to EDET vs. our Aviary implementation will produce different outputs unless the user knows to specifically add a certain variable with a specific value (which isn't normally an input to the method), which isn't helpful. This is different than most FLOPS/GASP disagreements because those are about which value an input has, and that is fine because we just care about having the correct outputs for a given set of inputs |
Summary
When
Aircraft.Design.PERCENT_EXCRESCENCE_DRAGwas added to GASP based aerodynamics, it was not applied to FLOPS based aerodynamics where it was namedexcrescences_dragas an option (value:0.06).This PR replaced
excrescences_dragbyAircraft.Design.PERCENT_EXCRESCENCE_DRAG. It is changed to an aviary variable. The default value is kept as0.0. Users must set its value in their dataset (value:0.06).FLOPS goes to detailed table for different components. See issue #1184 for details.
Related Issues
Backwards incompatibilities
None
New Dependencies
None