WSF
WsfEarthMonopoleTerm.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2020 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFEARTHMONOPOLETERM_HPP
13#define WSFEARTHMONOPOLETERM_HPP
14
15#include "UtEarth.hpp"
17class UtInput;
18
20{
21public:
24 ~WsfEarthMonopoleTerm() override = default;
25
26 bool ProcessInput(UtInput& aInput) override;
27
28 WsfEarthMonopoleTerm* Clone() const override { return new WsfEarthMonopoleTerm{*this}; }
29
30 const char* GetScriptClassName() const override { return "WsfEarthMonopoleTerm"; }
31
32 UtVec3d ComputeAcceleration(double aMass,
33 const UtCalendar& aTime,
34 const UtVec3d& aPosition,
35 const UtVec3d& aVelocity) const override;
36
37 std::string GetTermType() const override { return cTYPE; }
38
39 double GetGravitationalParameter() const { return mGravitationalParameter; }
40 void SetGravitationalParameter(double aMu) { mGravitationalParameter = aMu; }
41
42 constexpr static const char* cTYPE{"earth_monopole"};
43
44private:
45 double mGravitationalParameter{UtEarth::cGRAVITATIONAL_PARAMETER};
46};
47
48#endif // WSFEARTHMONOPOLETERM_HPP
void SetGravitationalParameter(double aMu)
Definition WsfEarthMonopoleTerm.hpp:40
~WsfEarthMonopoleTerm() override=default
const char * GetScriptClassName() const override
Definition WsfEarthMonopoleTerm.hpp:30
WsfEarthMonopoleTerm * Clone() const override
Definition WsfEarthMonopoleTerm.hpp:28
double GetGravitationalParameter() const
Definition WsfEarthMonopoleTerm.hpp:39
bool ProcessInput(UtInput &aInput) override
Definition WsfEarthMonopoleTerm.cpp:19
std::string GetTermType() const override
Return a string indicating the type of term.
Definition WsfEarthMonopoleTerm.hpp:37
static constexpr const char * cTYPE
Definition WsfEarthMonopoleTerm.hpp:42
WsfEarthMonopoleTerm()=default
UtVec3d ComputeAcceleration(double aMass, const UtCalendar &aTime, const UtVec3d &aPosition, const UtVec3d &aVelocity) const override
Definition WsfEarthMonopoleTerm.cpp:43
WsfEarthMonopoleTerm(const WsfEarthMonopoleTerm &aOther)=default
WsfOrbitalDynamicsTerm()
Definition WsfOrbitalDynamicsTerm.hpp:34
Copyrights Multiple, All Rights Reserved