|
WSF
|
An orbital dynamics term that represents the drag experienced by the spacecraft. More...
#include <WsfAtmosphericDragTerm.hpp>


Public Member Functions | |
| WsfAtmosphericDragTerm ()=default | |
| WsfAtmosphericDragTerm (const WsfAtmosphericDragTerm &aOther)=default | |
| ~WsfAtmosphericDragTerm () override=default | |
| bool | ProcessInput (UtInput &aInput) override |
| WsfAtmosphericDragTerm * | Clone () const override |
| const char * | GetScriptClassName () const override |
| UtVec3d | ComputeAcceleration (double aMass, const UtCalendar &aTime, const UtVec3d &aPosition, const UtVec3d &aVelocity) const override |
| bool | Initialize (const WsfOrbitalDynamics &aDynamics) override |
| double | GetDragCoefficient () const |
| Return the drag coefficient used by this term. | |
| void | SetDragCoefficient (double aDragCoefficient) |
| Set the drag coefficient used by this term. | |
| double | GetCrossSectionalArea () const |
| Return the cross sectional area in m^2 used by this term. | |
| void | SetCrossSectionalArea (double aCrossSectionalArea) |
| const std::string & | GetAtmosphereModelName () const |
| Get the name of the atmosphere model used by this term to compute the density. | |
| void | SetAtmosphereModelName (const std::string &aModelName) |
| Set the name of the atmosphere model used by this term to compute the density. | |
| std::string | GetTermType () const override |
| Return a string indicating the type of term. | |
| Public Member Functions inherited from WsfOrbitalDynamicsTerm | |
| WsfOrbitalDynamicsTerm () | |
| WsfOrbitalDynamicsTerm (const WsfOrbitalDynamicsTerm &aOther) | |
| WsfOrbitalDynamicsTerm & | operator= (const WsfOrbitalDynamicsTerm &aOther)=delete |
| const char * | GetScriptClassName () const override |
| Public Member Functions inherited from WsfObject | |
| WsfObject () | |
| This is the constructor for the WsfObject class. | |
| ~WsfObject () override | |
| This is the destructor for the WsfObject class. | |
| const char * | GetScriptClassName () const override |
| const std::string & | GetType () const |
| WsfStringId | GetTypeId () const |
| Get the string ID of the 'type' of the object. | |
| void | SetType (WsfStringId aType) |
| const std::string & | GetBaseType () const |
| WsfStringId | GetBaseTypeId () const |
| const TypeList & | GetTypeList () const |
| bool | IsA_TypeOf (WsfStringId aType) const |
| WsfObject & | operator= (const WsfObject &aRhs) |
| Assignment operator. | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
| const std::string & | GetName () const |
| WsfStringId | GetNameId () const |
| void | SetName (WsfStringId aName) |
Static Public Attributes | |
| static constexpr const char * | cTYPE {"atmospheric_drag"} |
Additional Inherited Members | |
| Public Types inherited from WsfObject | |
| typedef std::vector< WsfStringId > | TypeList |
| The list of types returned by GetTypeList. | |
| Protected Member Functions inherited from WsfOrbitalDynamicsTerm | |
| const WsfOrbitalDynamics * | GetDynamics () const |
| WsfObject (const WsfObject &aSrc) | |
| Copy constructor (for Clone()). | |
An orbital dynamics term that represents the drag experienced by the spacecraft.
|
default |
Referenced by Clone(), and WsfAtmosphericDragTerm().
|
default |
References WsfAtmosphericDragTerm().
|
overridedefault |
|
inlineoverridevirtual |
Return a copy of this object. Must be implemented by all derived types. If cloning is impossible, a WsfUncloneableException should be thrown.
Implements WsfOrbitalDynamicsTerm.
References WsfAtmosphericDragTerm().
|
overridevirtual |
Return the acceleration in the ECI frame.
This routine computes the acceleration represented by this term that would be experienced by a body of the given aMass at the given aTime, aPosition and aVelocity. The given aPosition and aVelocity are in the ECI frame, and the returned acceleration is also in the ECI frame.
| aMass | - The mass of the object that would experience this dynamical term. |
| aTime | - The time at which the acceleration is being computed. |
| aPosition | - The position of the body that would experience this acceleration. |
| aVelocity | - The velocity of the body that would experience this acceleration. |
Implements WsfOrbitalDynamicsTerm.
References WsfOrbitalDynamicsTerm::GetDynamics().
|
inline |
Get the name of the atmosphere model used by this term to compute the density.
|
inline |
Return the cross sectional area in m^2 used by this term.
|
inline |
Return the drag coefficient used by this term.
|
inlineoverride |
|
inlineoverridevirtual |
|
overridevirtual |
Initialize the term.
This is called when the owning WsfOrbitalDynamics is initialized. This enables terms that might need to inspect their owning dynamics.
| aDynamics | - the dynamics to which this term belongs. |
Reimplemented from WsfOrbitalDynamicsTerm.
References wsf::space::AtmosphereSimulationExtension::Get(), wsf::space::AtmosphereSimulationExtension::GetAtmosphere(), WsfOrbitalDynamics::GetSimulation(), and WsfOrbitalDynamicsTerm::Initialize().
|
overridevirtual |
Process input from a generic source.
Examine the current input command. If it is NOT one of the commands recognized by this class then it simply returns 'false'. If it is one of the commands recognized by this class then it processes the command and returns 'true'.
| aInput | a reference to a UtInput object. |
| UtInput::ExceptionBase | (or an object derived from it) if the command was recognized but contains some sort of error. |
Reimplemented from WsfObject.
|
inline |
Set the name of the atmosphere model used by this term to compute the density.
|
inline |
|
inline |
Set the drag coefficient used by this term.
|
staticconstexpr |
Referenced by GetTermType(), and WsfOrbitalDynamicsTermTypes::WsfOrbitalDynamicsTermTypes().