34#ifndef FGEXTERNALREACTIONS_H
35#define FGEXTERNALREACTIONS_H
44#include "math/FGColumnVector3.h"
139 bool InitModel(
void)
override;
148 bool Run(
bool Holding)
override;
156 bool Load(
Element* el)
override;
167 void Add(std::unique_ptr<FGExternalForce> force);
173 double GetForces(
int idx)
const {
return vTotalForces(idx);}
179 double GetMoments(
int idx)
const {
return vTotalMoments(idx);}
183 std::vector<std::unique_ptr<FGExternalForce>> Forces;
185 FGColumnVector3 vTotalForces;
186 FGColumnVector3 vTotalMoments;
189 void Debug(
int from)
override;
This class implements a 3 element column vector.
Manages the external and/or arbitrary forces and moments.
const FGColumnVector3 & GetMoments(void) const
Retrieves the total moment resulting from the forces defined in the external reactions.
FGExternalReactions(const FGExternalReactions &)=delete
The model owns its forces, so it cannot be copied.
const FGColumnVector3 & GetForces(void) const
Retrieves the total forces defined in the external reactions.
Encapsulates the JSBSim simulation executive.
Base class for all scheduled JSBSim models.
Main namespace for the JSBSim Flight Dynamics Model.