Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ aircraft:engine:fuel_flow_scaler_linear_term,1,unitless
aircraft:engine:generate_flight_idle,True,unitless
aircraft:engine:geopotential_alt,False,unitless
aircraft:engine:ignore_negative_thrust,False,unitless
aircraft:engine:interpolation_method,slinear,unitless
Copy link
Contributor

Choose a reason for hiding this comment

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

@Kenneth-T-Moore - Perhaps we could update the variable_meta_data.py with a link to the openMDAO page documentation so that someone can easily work out what methods are available.

Image I think this is the doc link: https://openmdao.org/newdocs/versions/latest/features/building_blocks/components/metamodelstructured_comp.html

Does OpenMDAO have enums that we can import? Might get a bit messy if we make this an Aviary enum (in case OpenMDAO makes updates) so I think best to keep as a string for now - what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've kind of been wanting to modify OpenMDAO to use enums for all of the interpolation methods.

aircraft:engine:mass_scaler,1.15,unitless
aircraft:engine:num_engines,2,unitless
aircraft:engine:num_fuselage_engines,0,unitless
Expand Down
5 changes: 4 additions & 1 deletion aviary/variable_info/variable_meta_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,10 @@
default_value='slinear',
types=str,
desc="method used for interpolation on an engine deck's data file, allowable values are "
'table methods from openmdao.components.interp_util.interp',
'table methods from openmdao.components.interp_util.interp. Engine models only use the '
'methods avilable to the MetaModelSemiStructuredComp component. These are listed here: '
'https://openmdao.org/newdocs/versions/latest/features/building_blocks/components/'
'metamodelsemistructured_comp.html',
multivalue=True,
)

Expand Down
Loading