engine_deck_conversion.py#
- class aviary.utils.engine_deck_conversion.AtmosCalc(**kwargs)[source]
Bases:
ExplicitComponent
Calculates T2 and P2 given static temperature and pressure
- compute(inputs, outputs)[source]
Compute outputs given inputs. The model is assumed to be in an unscaled state.
- Parameters:
inputs (Vector) – Unscaled, dimensional input variables read via inputs[key].
outputs (Vector) – Unscaled, dimensional output variables read via outputs[key].
discrete_inputs (dict or None) – If not None, dict containing discrete input values.
discrete_outputs (dict or None) – If not None, dict containing discrete output values.
- initialize()[source]
Perform any one-time initialization run at instantiation.
- setup()[source]
Declare inputs and outputs.
- Available attributes:
name pathname comm options
- class aviary.utils.engine_deck_conversion.CalculateIdle(**kwargs)[source]
Bases:
ExplicitComponent
Calculates idle conditions of a GASP engine at a specified flight condition Vectorized to calculate values for entire flight regime
- compute(inputs, outputs)[source]
Compute outputs given inputs. The model is assumed to be in an unscaled state.
- Parameters:
inputs (Vector) – Unscaled, dimensional input variables read via inputs[key].
outputs (Vector) – Unscaled, dimensional output variables read via outputs[key].
discrete_inputs (dict or None) – If not None, dict containing discrete input values.
discrete_outputs (dict or None) – If not None, dict containing discrete output values.
- initialize()[source]
Perform any one-time initialization run at instantiation.
- setup()[source]
Declare inputs and outputs.
- Available attributes:
name pathname comm options
- aviary.utils.engine_deck_conversion.EngineDeckConverter(input_file, output_file, data_format: EngineDeckType)[source]
Converts FLOPS- or GASP-formatted engine decks into Aviary csv format. FLOPS decks are changed from column-delimited to csv format with added headers. GASP decks are reorganized into csv. T4 is recovered using assumptions used in GASPy. Data points whose T4 exceeds T4max are removed.
- Parameters:
input_file ((str, Path)) – path to engine deck file to be converted
output_file ((str, Path)) – path to file where new converted data will be written
data_format ((EngineDeckType)) – data format used by input_file (FLOPS or GASP)
- class aviary.utils.engine_deck_conversion.EngineDeckType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Enum
- FLOPS = 'FLOPS'
- GASP = 'GASP'
- GASP_TS = 'GASP_TS'