FGPiston Class Reference

#include <FGPiston.h>

Inherits FGEngine.

List of all members.


Detailed Description

Configuration File Format:

<piston_engine name="{string}">
  <minmp unit="{INHG | PA | ATM}"> {number} </minmp> <!-- Depricated -->
  <maxmp unit="{INHG | PA | ATM}"> {number} </maxmp>
  <displacement unit="{IN3 | LTR | CC}"> {number} </displacement>
  <bore unit="{IN | M}"> {number} </bore>
  <stroke unit="{IN | M}"> {number} </stroke>
  <cylinders> {number} </cylinders>
  <compression-ratio> {number} </compression-ratio>
  <sparkfaildrop> {number} </sparkfaildrop>
  <maxhp unit="{HP | WATTS}"> {number} </maxhp>
  <cycles> {number} </cycles>
  <idlerpm> {number} </idlerpm>
  <maxrpm> {number} </maxrpm>
  <maxthrottle> {number} </maxthrottle>
  <minthrottle> {number} </minthrottle>
  <bsfc unit="{LBS/HP*HR | "KG/KW*HR"}"> {number} </bsfc>
  <volumetric_efficiency> {number} </volumetric_efficiency>
  <numboostspeeds> {number} </numboostspeeds>
  <boostoverride> {0 | 1} </boostoverride>
  <ratedboost1 unit="{INHG | PA | ATM}"> {number} </ratedboost1>
  <ratedpower1 unit="{HP | WATTS}"> {number} </ratedpower1>
  <ratedrpm1> {number} </ratedrpm1>
  <ratedaltitude1 unit="{FT | M}"> {number} </ratedaltitude1>
  <ratedboost2 unit="{INHG | PA | ATM}"> {number} </ratedboost2>
  <ratedpower2 unit="{HP | WATTS}"> {number} </ratedpower2>
  <ratedrpm2> {number} </ratedrpm2>
  <ratedaltitude2 unit="{FT | M}"> {number} </ratedaltitude2>
  <ratedboost3 unit="{INHG | PA | ATM}"> {number} </ratedboost3>
  <ratedpower3 unit="{HP | WATTS}"> {number} </ratedpower3>
  <ratedrpm3> {number} </ratedrpm3>
  <ratedaltitude3 unit="{FT | M}"> {number} </ratedaltitude3>
  <takeoffboost unit="{INHG | PA | ATM}"> {number} </takeoffboost>
</piston_engine>

    Additional elements are required for a supercharged engine.  These can be
    left off a non-supercharged engine, ie. the changes are all backward
    compatible at present.










    A typical takeoff boost for an earlyish Merlin was about 12psi, compared
    with a rated boost of 9psi.

    It is quite possible that other boost control settings could have been used
    on some aircraft, or that takeoff/extra boost could have activated by other
    means than pushing the throttle full forward through a gate, but this will
    suffice for now.

    Note that MAXMP is still the non-boosted max manifold pressure even for
    boosted engines - effectively this is simply a measure of the pressure drop
    through the fully open throttle.

Author:
Jon S. Berndt (Engine framework code and framework-related mods)

Dave Luff (engine operational code)

David Megginson (initial porting and additional code)

Ron Jensen (additional engine code)

Version:
Id
FGPiston.h,v 1.15 2009/04/16 06:41:18 ehofman Exp

Definition at line 183 of file FGPiston.h.


Public Member Functions

double CalcFuelNeed (void)
 The fuel need is calculated based on power levels and flow rate for that power level.
double Calculate (void)
 Calculates the thrust of the engine, and other engine functions.
 FGPiston (FGFDMExec *exec, Element *el, int engine_number)
 Constructor.
double getCylinderHeadTemp_degF (void)
double GetEGT (void)
string GetEngineLabels (string delimeter)
string GetEngineValues (string delimeter)
double getExhaustGasTemp_degF (void)
int GetMagnetos (void)
double getManifoldPressure_inHg (void) const
double getOilPressure_psi (void) const
double getOilTemp_degF (void)
double GetPowerAvailable (void)
double getRPM (void)
void ResetToIC (void)
 Resets the Engine parameters to the initial conditions.
void SetMagnetos (int magnetos)
 ~FGPiston ()
 Destructor.

Protected Attributes

double ThrottleAngle

Member Function Documentation

double CalcFuelNeed ( void   )  [virtual]

It is also turned from a rate into an actual amount (pounds) by multiplying it by the delta T and the rate.

Returns:
Total fuel requirement for this engine in pounds.

Reimplemented from FGEngine.

Definition at line 392 of file FGPiston.cpp.

double Calculate ( void   )  [virtual]

Returns:
Thrust in pounds

Reimplemented from FGEngine.

Definition at line 338 of file FGPiston.cpp.


The documentation for this class was generated from the following files:

Generated on Tue May 26 00:55:11 2009 for JSBSim Flight Dynamics Model by  doxygen 1.5.5