public class NewtonianGravityModel extends AbstractHarmonicGravityModel
The implementation of this class enables the computation of partial derivatives with respect to the central attraction coefficient.
bodyFrame, centralTermContribution, MU, paramMu
Constructor and Description |
---|
NewtonianGravityModel(double mu)
Simple constructor for Earth-centered computations: uses GCRF.
|
NewtonianGravityModel(Frame centralBodyFrame,
double mu)
Simple constructor.
Note that the body frame is used for translation only. |
NewtonianGravityModel(Frame centralBodyFrame,
double mu,
boolean computePD)
Simple constructor.
Note that the body frame is used for translation only. |
NewtonianGravityModel(Frame centralBodyFrame,
Parameter mu)
Simple constructor using
Parameter .Note that the body frame is used for translation only. |
NewtonianGravityModel(Frame centralBodyFrame,
Parameter mu,
boolean computePD)
Simple constructor using
Parameter .Note that the body frame is used for translation only. |
Modifier and Type | Method and Description |
---|---|
void |
checkData(AbsoluteDate start,
AbsoluteDate end)
This methods throws an exception if the user did not provide all the required data to perform model call on
provided range [start; end].
|
Vector3D |
computeNonCentralTermsAcceleration(Vector3D pos,
AbsoluteDate date,
Transform bodyFrameToPositionFrame)
Compute the acceleration due to the non-central terms of the gravitational attraction.
|
double[][] |
computeNonCentralTermsDAccDPos(Vector3D pos,
Frame frame,
AbsoluteDate date)
Compute acceleration derivatives with respect to the state parameters for the non-central terms.
|
Parameter |
getMuParameter()
Returns the gravitational coefficient as a parameter.
|
computeAcceleration, computeCentralTermAcceleration, computeCentralTermDAccDPos, computeDAccDPos, isCentralTermContributionApplied, setCentralTermContribution
getBodyFrame, getMu, setMu
public NewtonianGravityModel(double mu)
mu
- central attraction coefficient (m^3/s^2)public NewtonianGravityModel(Frame centralBodyFrame, double mu)
centralBodyFrame
- body frame of the central bodymu
- central attraction coefficient (m^3/s^2)public NewtonianGravityModel(Frame centralBodyFrame, double mu, boolean computePD)
centralBodyFrame
- body frame of the central bodymu
- central attraction coefficient (m^3/s^2)computePD
- true if partial derivatives wrt position have to be computedpublic NewtonianGravityModel(Frame centralBodyFrame, Parameter mu)
Parameter
.centralBodyFrame
- body frame of the central bodymu
- parameter representing central attraction coefficient (m^3/s^2)public NewtonianGravityModel(Frame centralBodyFrame, Parameter mu, boolean computePD)
Parameter
.centralBodyFrame
- body frame of the central bodymu
- parameter representing central attraction coefficient (m^3/s^2)computePD
- true if partial derivatives wrt position have to be computedpublic Vector3D computeNonCentralTermsAcceleration(Vector3D pos, AbsoluteDate date, Transform bodyFrameToPositionFrame) throws PatriusException
computeNonCentralTermsAcceleration
in class AbstractHarmonicGravityModel
pos
- position of the spacecraftdate
- datebodyFrameToPositionFrame
- body frame to frame in which position is provided transformation (used for
computation times speed-up)PatriusException
- if some specific error occurspublic final double[][] computeNonCentralTermsDAccDPos(Vector3D pos, Frame frame, AbsoluteDate date) throws PatriusException
computeNonCentralTermsDAccDPos
in class AbstractHarmonicGravityModel
pos
- position of the spacecraftframe
- frame in which the acceleration derivatives are computeddate
- datePatriusException
- if derivatives cannot be computedpublic void checkData(AbsoluteDate start, AbsoluteDate end) throws PatriusException
start
- range start dateend
- range end datePatriusException
- thrown if some data is missingpublic Parameter getMuParameter()
Copyright © 2023 CNES. All rights reserved.