34#ifndef FGEXTERNALREACTIONS_H
35#define FGEXTERNALREACTIONS_H
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;
174 void Debug(
int from)
override;
This class implements a 3 element column vector.
Encapsulates code that models an individual arbitrary force, moment or a combination thereof.
~FGExternalReactions(void) override
Destructor.
FGExternalReactions(FGFDMExec *fdmex)
Constructor.
bool InitModel(void) override
bool Run(bool Holding) override
Sum all the constituent forces for this cycle.
const FGColumnVector3 & GetForces(void) const
Retrieves the total forces defined in the external reactions.
double GetForces(int idx) const
const FGColumnVector3 & GetMoments(void) const
Retrieves the total moment resulting from the forces defined in the external reactions.
bool Load(Element *el) override
Loads the external forces from the XML configuration file.
double GetMoments(int idx) const
FGModel(FGFDMExec *)
Constructor.