fastga.models.performances.unitary_tests.dummy_engines module
Test module for geometry functions of cg components.
- class fastga.models.performances.unitary_tests.dummy_engines.DummyEngineBE76(max_power: float, design_altitude_propeller: float, fuel_type: float, strokes_nb: float, prop_layout: float)[source]
Bases:
fastga.models.propulsion.fuel_propulsion.base.AbstractFuelPropulsionDummy engine model returning nacelle aerodynamic drag force.
- compute_flight_points(flight_points: Union[fastoad.model_base.flight_point.FlightPoint, pandas.core.frame.DataFrame])[source]
Computes Specific Fuel Consumption according to provided conditions.
See
FlightPointfor available fields that may be used for computation. If a DataFrame instance is provided, it is expected that its columns match field names of FlightPoint (actually, the DataFrame instance should be generated from a list of FlightPoint instances).Note
About thrust_is_regulated, thrust_rate and thrust
thrust_is_regulatedtells if a flight point should be computed usingthrust_rate(when False) orthrust(when True) as input. This way, the method can be used in a vectorized mode, where each point can be set to respect a thrust order or a thrust rate order.if
thrust_is_regulatedis not defined, the considered input will be the defined one betweenthrust_rateandthrust(if both are provided,thrust_ratewill be used)if
thrust_is_regulatedisTrueorFalse(i.e., not a sequence), the considered input will be taken accordingly, and should of course be defined.if there are several flight points,
thrust_is_regulatedis a sequence or array,thrust_rateandthrustshould be provided and have the same shape asthrust_is_regulated:code:. The method will consider for each element which input will be used according tothrust_is_regulated.
- Parameters
flight_points – FlightPoint or DataFram instance
- Returns
None (inputs are updated in-place)
- compute_weight() float[source]
Computes total propulsion mass.
- Returns
the total uninstalled mass in kg
- compute_dimensions() -> (<class 'float'>, <class 'float'>, <class 'float'>, <class 'float'>, <class 'float'>, <class 'float'>)[source]
Computes propulsion sub-components dimensions.
- class fastga.models.performances.unitary_tests.dummy_engines.DummyEngineWrapperBE76[source]
Bases:
fastoad.model_base.propulsion.IOMPropulsionWrapper- setup(component: openmdao.core.component.Component)[source]
Defines the needed OpenMDAO inputs for propulsion instantiation as done in
get_model()Use add_inputs and declare_partials methods of the provided component
- Parameters
component –
- class fastga.models.performances.unitary_tests.dummy_engines.DummyEngineSR22[source]
Bases:
fastga.models.propulsion.fuel_propulsion.base.AbstractFuelPropulsionDummy engine model returning thrust in particular conditions defined for htp/vtp areas.
- compute_flight_points(flight_points: Union[fastoad.model_base.flight_point.FlightPoint, pandas.core.frame.DataFrame])[source]
Computes Specific Fuel Consumption according to provided conditions.
See
FlightPointfor available fields that may be used for computation. If a DataFrame instance is provided, it is expected that its columns match field names of FlightPoint (actually, the DataFrame instance should be generated from a list of FlightPoint instances).Note
About thrust_is_regulated, thrust_rate and thrust
thrust_is_regulatedtells if a flight point should be computed usingthrust_rate(when False) orthrust(when True) as input. This way, the method can be used in a vectorized mode, where each point can be set to respect a thrust order or a thrust rate order.if
thrust_is_regulatedis not defined, the considered input will be the defined one betweenthrust_rateandthrust(if both are provided,thrust_ratewill be used)if
thrust_is_regulatedisTrueorFalse(i.e., not a sequence), the considered input will be taken accordingly, and should of course be defined.if there are several flight points,
thrust_is_regulatedis a sequence or array,thrust_rateandthrustshould be provided and have the same shape asthrust_is_regulated:code:. The method will consider for each element which input will be used according tothrust_is_regulated.
- Parameters
flight_points – FlightPoint or DataFram instance
- Returns
None (inputs are updated in-place)
- compute_weight() float[source]
Computes total propulsion mass.
- Returns
the total uninstalled mass in kg
- compute_dimensions() -> (<class 'float'>, <class 'float'>, <class 'float'>, <class 'float'>)[source]
Computes propulsion sub-components dimensions.
- class fastga.models.performances.unitary_tests.dummy_engines.DummyEngineWrapperSR22[source]
Bases:
fastoad.model_base.propulsion.IOMPropulsionWrapper- setup(component: openmdao.core.component.Component)[source]
Defines the needed OpenMDAO inputs for propulsion instantiation as done in
get_model()Use add_inputs and declare_partials methods of the provided component
- Parameters
component –
- class fastga.models.performances.unitary_tests.dummy_engines.DummyEngineTBM900[source]
Bases:
fastga.models.propulsion.fuel_propulsion.base.AbstractFuelPropulsionDummy engine model returning thrust in particular conditions defined for htp/vtp areas.
- compute_flight_points(flight_points: Union[fastoad.model_base.flight_point.FlightPoint, pandas.core.frame.DataFrame])[source]
Computes Specific Fuel Consumption according to provided conditions.
See
FlightPointfor available fields that may be used for computation. If a DataFrame instance is provided, it is expected that its columns match field names of FlightPoint (actually, the DataFrame instance should be generated from a list of FlightPoint instances).Note
About thrust_is_regulated, thrust_rate and thrust
thrust_is_regulatedtells if a flight point should be computed usingthrust_rate(when False) orthrust(when True) as input. This way, the method can be used in a vectorized mode, where each point can be set to respect a thrust order or a thrust rate order.if
thrust_is_regulatedis not defined, the considered input will be the defined one betweenthrust_rateandthrust(if both are provided,thrust_ratewill be used)if
thrust_is_regulatedisTrueorFalse(i.e., not a sequence), the considered input will be taken accordingly, and should of course be defined.if there are several flight points,
thrust_is_regulatedis a sequence or array,thrust_rateandthrustshould be provided and have the same shape asthrust_is_regulated:code:. The method will consider for each element which input will be used according tothrust_is_regulated.
- Parameters
flight_points – FlightPoint or DataFram instance
- Returns
None (inputs are updated in-place)
- compute_weight() float[source]
Computes total propulsion mass.
- Returns
the total uninstalled mass in kg
- compute_dimensions() -> (<class 'float'>, <class 'float'>, <class 'float'>, <class 'float'>)[source]
Computes propulsion sub-components dimensions.
- class fastga.models.performances.unitary_tests.dummy_engines.DummyEngineWrapperTBM900[source]
Bases:
fastoad.model_base.propulsion.IOMPropulsionWrapper- setup(component: openmdao.core.component.Component)[source]
Defines the needed OpenMDAO inputs for propulsion instantiation as done in
get_model()Use add_inputs and declare_partials methods of the provided component
- Parameters
component –