FGPropulsion¶
- class jsbsim.FGPropulsion¶
Propulsion management class.
The Propulsion class is the container for the entire propulsion system, which is comprised of engines, and tanks. Once the Propulsion class gets the config file, it reads in the <propulsion> section. Then:
The appropriate engine type instance is created
At least one tank object is created, and is linked to an engine.
At Run time each engine’s Calculate() method is called.
Configuration File Format:
<propulsion> <engine file="{string}"> ... see FGEngine, FGThruster, and class for engine type ... </engine> ... more engines ... <tank type="{FUEL | OXIDIZER}"> ... see FGTank ... </tank> ... more tanks ... <dump-rate unit="{LBS/MIN | KG/MIN}"> {number} </dump-rate> <refuel-rate unit="{LBS/MIN | KG/MIN}"> {number} </refuel-rate> </propulsion>
- get_engine(idx: int) FGEngine ¶
Retrieves an engine object pointer from the list of engines.
- Parameters:
index – the engine index within the vector container
- Returns:
the address of the specific engine, or zero if no such engine is available
- get_num_engines() int ¶
Retrieves the number of engines defined for the aircraft.
- get_steady_state() bool ¶
Loops the engines until thrust output steady (used for trimming)
- init_running(n: int) None ¶
Sets up the engines as running.