 |
JSBSim Flight Dynamics Model
1.1.11 (13 Feb 2022)
An Open Source Flight Dynamics and Control Software Library in C++
|
34 #ifndef FGEXTERNALREACTIONS_H
35 #define FGEXTERNALREACTIONS_H
43 #include "math/FGColumnVector3.h"
52 class FGExternalForce;
135 bool InitModel(
void)
override;
144 bool Run(
bool Holding)
override;
158 double GetForces(
int idx)
const {
return vTotalForces(idx);}
164 double GetMoments(
int idx)
const {
return vTotalMoments(idx);}
168 std::vector <FGExternalForce*> Forces;
170 FGColumnVector3 vTotalForces;
171 FGColumnVector3 vTotalMoments;
174 void Debug(
int from)
override;
Encapsulates the JSBSim simulation executive.
bool Load(Element *el) override
Loads the external forces from the XML configuration file.
This class implements a 3 element column vector.
Manages the external and/or arbitrary forces and moments.
Base class for all scheduled JSBSim models.
const FGColumnVector3 & GetMoments(void) const
Retrieves the total moment resulting from the forces defined in the external reactions.
FGExternalReactions(FGFDMExec *fdmex)
Constructor.
const FGColumnVector3 & GetForces(void) const
Retrieves the total forces defined in the external reactions.
bool Run(bool Holding) override
Sum all the constituent forces for this cycle.
~FGExternalReactions(void) override
Destructor.