#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 129 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 | 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 56 of file FGAerodynamics.cpp.
References FGColumnVector3::InitMatrix(), and FGModel::Name.
| string GetCoefficientStrings | ( | string | delimeter | ) |
| delimeter | either a tab or comma string depending on output type |
Definition at line 403 of file FGAerodynamics.cpp.
Referenced by FGOutput::DelimitedOutput(), and FGOutput::SocketOutput().
| string GetCoefficientValues | ( | string | delimeter | ) |
| delimeter | either a tab or comma string depending on output type |
Definition at line 433 of file FGAerodynamics.cpp.
Referenced by FGOutput::DelimitedOutput(), and FGOutput::SocketOutput().
| 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 158 of file FGAerodynamics.h.
| FGColumnVector3& GetForces | ( | void | ) | [inline] |
Definition at line 152 of file FGAerodynamics.h.
Referenced by FGAuxiliary::Run(), and FGAircraft::Run().
| double GetMoments | ( | int | n | ) | const [inline] |
Definition at line 167 of file FGAerodynamics.h.
| FGColumnVector3& GetMoments | ( | void | ) | [inline] |
Definition at line 162 of file FGAerodynamics.h.
Referenced by FGAircraft::Run().
| FGMatrix33 & GetTb2w | ( | void | ) |
Definition at line 260 of file FGAerodynamics.cpp.
References FGModel::Auxiliary, FGAuxiliary::Getalpha(), and FGAuxiliary::Getbeta().
Referenced by FGAircraft::Run(), and FGAerodynamics::Run().
| FGMatrix33 & GetTw2b | ( | void | ) |
Definition at line 233 of file FGAerodynamics.cpp.
References FGModel::Auxiliary, FGAuxiliary::Getalpha(), and FGAuxiliary::Getbeta().
Referenced by FGAerodynamics::Run(), and FGForce::Transform().
| double GetvFw | ( | int | axis | ) | const [inline] |
| axis | the axis to return the force for (eX, eY, eZ). |
Definition at line 177 of file FGAerodynamics.h.
| FGColumnVector3& GetvFw | ( | void | ) | [inline] |
Definition at line 171 of file FGAerodynamics.h.
Referenced by FGOutput::DelimitedOutput(), FGAircraft::GetNlf(), and FGOutput::SocketOutput().
| 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 288 of file FGAerodynamics.cpp.
References FGXMLFileRead::document, FGModel::FDMExec, Element::FindElement(), Element::FindElementValueAsNumberConvertFromTo(), Element::FindNextElement(), Element::GetAttributeValue(), FGFDMExec::GetFullAircraftPath(), FGXMLFileRead::LoadXMLDocument(), and FGModel::PropertyManager.
Referenced by FGFDMExec::LoadModel().
| bool Run | ( | void | ) | [virtual] |
Reimplemented from FGModel.
Definition at line 116 of file FGAerodynamics.cpp.
References FGModel::Aircraft, FGModel::Auxiliary, FGModel::FDMExec, FGAuxiliary::Getalpha(), FGAircraft::Getcbar(), FGAuxiliary::Getqbar(), FGAerodynamics::GetTb2w(), FGAerodynamics::GetTw2b(), FGFunction::GetValue(), FGAuxiliary::GetVt(), FGAircraft::GetWingArea(), FGAircraft::GetWingIncidence(), FGAircraft::GetWingSpan(), FGAircraft::GetXYZrp(), FGFDMExec::Holding(), FGColumnVector3::InitMatrix(), FGModel::MassBalance, FGModel::Run(), and FGMassBalance::StructuralToBody().
1.5.1