#include <FGAerodynamics.h>
Inherits FGModel, and FGXMLFileRead.
<aerodynamics>
<alphalimits unit="{RAD | DEG}">
<min> {number} </min>
<max> {number} </max>
</alphalimits>
<hysteresis_limits unit="{RAD | DEG}">
<min> {number} </min>
<max> {number} </max>
</hysteresis_limits>
<aero_ref_pt_shift_x>
<function>
{function contents}
</function>
</aero_ref_pt_shift_x>
<function>
{function contents}
</function>
<axis name="{LIFT | DRAG | SIDE | ROLL | PITCH | YAW}">
{force coefficient definitions}
</axis>
{additional axis definitions}
</aerodynamics>
Optionally two other coordinate systems may be used.
1) Body coordinate system:
<axis name="{X | Y | Z}">
<axis name="{AXIAL | NORMAL}">
Definition at line 118 of file FGAerodynamics.h.
Public Member Functions | |
| FGAerodynamics (FGFDMExec *Executive) | |
| Constructor. | |
| double | GetAlphaCLMax (void) const |
| double | GetAlphaCLMin (void) const |
| double | GetAlphaW (void) const |
| double | GetBI2Vel (void) const |
| double | GetCI2Vel (void) const |
| double | GetClSquared (void) const |
| Retrieves the square of the lift coefficient. | |
| vector< FGFunction * > * | GetCoeff (void) const |
| string | GetCoefficientStrings (string delimeter) |
| Gets the strings for the current set of coefficients. | |
| string | GetCoefficientValues (string delimeter) |
| Gets the coefficient values. | |
| double | GetForces (int n) const |
| Gets the aerodynamic force for an axis. | |
| FGColumnVector3 & | GetForces (void) |
| Gets the total aerodynamic force vector. | |
| double | GetHysteresisParm (void) const |
| double | GetLoD (void) const |
| Retrieves the lift over drag ratio. | |
| double | GetMoments (int n) const |
| Gets the aerodynamic moment for an axis. | |
| FGColumnVector3 & | GetMoments (void) |
| Gets the total aerodynamic moment vector. | |
| double | GetStallWarn (void) const |
| FGMatrix33 & | GetTb2w (void) |
| Calculates and returns the body-to-wind axis transformation matrix. | |
| FGMatrix33 & | GetTw2b (void) |
| Calculates and returns the wind-to-body axis transformation matrix. | |
| double | GetvFw (int axis) const |
| Retrieves the aerodynamic forces in the wind axes, given an axis. | |
| FGColumnVector3 & | GetvFw (void) |
| Retrieves the aerodynamic forces in the wind axes. | |
| bool | InitModel (void) |
| bool | Load (Element *element) |
| Loads the Aerodynamics model. | |
| bool | Run (void) |
| Runs the Aerodynamics model; called by the Executive. | |
| void | SetAlphaCLMax (double tt) |
| void | SetAlphaCLMin (double tt) |
| ~FGAerodynamics () | |
| Destructor. | |
| FGAerodynamics | ( | FGFDMExec * | Executive | ) |
| Executive | a pointer to the parent executive object |
Definition at line 57 of file FGAerodynamics.cpp.
| double GetClSquared | ( | void | ) | const [inline] |
Definition at line 174 of file FGAerodynamics.h.
| string GetCoefficientStrings | ( | string | delimeter | ) |
| delimeter | either a tab or comma string depending on output type |
Definition at line 416 of file FGAerodynamics.cpp.
| string GetCoefficientValues | ( | string | delimeter | ) |
| delimeter | either a tab or comma string depending on output type |
Definition at line 446 of file FGAerodynamics.cpp.
| double GetForces | ( | int | n | ) | const [inline] |
| n | Axis index. This could be 0, 1, or 2, or one of the axis enums: eX, eY, eZ. |
Definition at line 149 of file FGAerodynamics.h.
| FGColumnVector3& GetForces | ( | void | ) | [inline] |
| double GetMoments | ( | int | n | ) | const [inline] |
Definition at line 158 of file FGAerodynamics.h.
| FGColumnVector3& GetMoments | ( | void | ) | [inline] |
| FGMatrix33 & GetTb2w | ( | void | ) |
Definition at line 276 of file FGAerodynamics.cpp.
| FGMatrix33 & GetTw2b | ( | void | ) |
Definition at line 249 of file FGAerodynamics.cpp.
| double GetvFw | ( | int | axis | ) | const [inline] |
| axis | the axis to return the force for (eX, eY, eZ). |
Definition at line 168 of file FGAerodynamics.h.
| FGColumnVector3& GetvFw | ( | void | ) | [inline] |
Definition at line 162 of file FGAerodynamics.h.
| bool Load | ( | Element * | element | ) | [virtual] |
The Load function for this class expects the XML parser to have found the aerodynamics keyword in the configuration file.
| element | pointer to the current XML element for aerodynamics parameters. |
Reimplemented from FGModel.
Definition at line 304 of file FGAerodynamics.cpp.
| bool Run | ( | void | ) | [virtual] |
Reimplemented from FGModel.
Definition at line 132 of file FGAerodynamics.cpp.
1.5.5