34 #ifndef FGACCELERATIONS_H 35 #define FGACCELERATIONS_H 43 #include "models/FGModel.h" 44 #include "math/FGColumnVector3.h" 45 #include "math/LagrangeMultiplier.h" 46 #include "math/FGMatrix33.h" 52 #define ID_ACCELERATIONS "$Id: FGAccelerations.h,v 1.20 2016/05/22 10:28:23 bcoconni Exp $" 135 bool Run(
bool Holding);
208 double GetUVWdot(
int idx)
const {
return vUVWdot(idx); }
226 double GetGravAccelMagnitude(
void)
const {
return vGravAccel.
Magnitude(); }
254 double GetPQRdot(
int axis)
const {
return vPQRdot(axis);}
398 void CalculatePQRdot(
void);
399 void CalculateUVWdot(
void);
401 void ResolveFrictionForces(
double dt);
404 void Debug(
int from);
const FGColumnVector3 & GetBodyAccel(void) const
Retrieves the acceleration resulting from the applied forces.
bool Run(bool Holding)
Runs the state propagation model; called by the Executive Can pass in a value indicating if the execu...
double GetGroundMoments(int idx) const
Retrieves the ground moments applied on the body.
Evaluate gravity using WGS84 formulas that take the Earth oblateness into account.
const FGColumnVector3 & GetPQRidot(void) const
Retrieves the axis angular acceleration vector in the ECI frame.
const FGColumnVector3 & GetUVWdot(void) const
Retrieves the body axis acceleration.
double GetForces(int idx) const
Retrieves the total forces applied on the body.
FGAccelerations(FGFDMExec *Executive)
Constructor.
void InitializeDerivatives(void)
Initializes the FGAccelerations class prior to a new execution.
const FGColumnVector3 & GetUVWidot(void) const
Retrieves the body axis acceleration in the ECI frame.
Base class for all scheduled JSBSim models.
double GetMoments(int idx) const
Retrieves a component of the total moments applied on the body.
double GetUVWdot(int idx) const
Retrieves a body frame acceleration component.
This class implements a 3 element column vector.
bool InitModel(void)
Initializes the FGAccelerations class after instantiation and prior to first execution.
double GetWeight(int idx) const
Retrieves the weight applied on the body.
Evaluate gravity using Newton's classical formula assuming the Earth is spherical.
eGravType
These define the indices use to select the gravitation models.
Handles the calculation of accelerations.
double GetBodyAccel(int idx) const
Retrieves a component of the acceleration resulting from the applied forces.
Handles matrix math operations.
double GetGroundForces(int idx) const
Retrieves the ground forces applied on the body.
double Magnitude(void) const
Length of the vector.
const FGColumnVector3 & GetPQRdot(void) const
Retrieves the body axis angular acceleration vector.
~FGAccelerations()
Destructor.
void SetHoldDown(bool hd)
Sets the property forces/hold-down.
double GetPQRdot(int axis) const
Retrieves a body frame angular acceleration component.
Encapsulates the JSBSim simulation executive.