public class DirectBodyAttraction extends AbstractBodyAttraction
The implementation of this class enables the computation of partial derivatives by finite differences with respect to the central attraction coefficient.
computePartialDerivativesWrtPosition, K_FACTOR
Constructor and Description |
---|
DirectBodyAttraction(GravityModel gravityModelIn)
Simple constructor.
|
DirectBodyAttraction(GravityModel gravityModelIn,
boolean computePD)
Simple constructor.
|
DirectBodyAttraction(GravityModel gravityModelIn,
boolean computePD,
Parameter k)
Simple constructor.
|
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].
|
protected Vector3D |
computeAcceleration(Vector3D positionInBodyFrame,
AbsoluteDate date,
Transform scFrameToBodyFrame)
Abstract method to compute the acceleration of the implementation
|
addContribution, addDAccDParam, addDAccDParam, addDAccDState, addDAccDState, computeAcceleration, computeGradientPosition, computeGradientVelocity, getEventsDetectors, getGravityModel, getMultiplicativeFactor, getMultiplicativeFactorParameter, setMultiplicativeFactor
addJacobiansParameter, addJacobiansParameter, addJacobiansParameter, supportsJacobianParameter
addAllParameters, addAllParameters, addParameter, getParameters, supportsParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameters, supportsParameter
public DirectBodyAttraction(GravityModel gravityModelIn)
gravityModelIn
- the gravitational attraction model to considerNullArgumentException
- if gravityModelIn
is null
public DirectBodyAttraction(GravityModel gravityModelIn, boolean computePD)
Simple constructor.
gravityModelIn
- the gravitational attraction model to considercomputePD
- true if partial derivatives have to be computedNullArgumentException
- if gravityModelIn
is null
public DirectBodyAttraction(GravityModel gravityModelIn, boolean computePD, Parameter k)
Simple constructor.
gravityModelIn
- the gravitational attraction model to considercomputePD
- true if partial derivatives have to be computedk
- The multiplicative coefficient parameterNullArgumentException
- if gravityModelIn
is null
protected Vector3D computeAcceleration(Vector3D positionInBodyFrame, AbsoluteDate date, Transform scFrameToBodyFrame) throws PatriusException
computeAcceleration
in class AbstractBodyAttraction
positionInBodyFrame
- position in body framedate
- datescFrameToBodyFrame
- transform from spacecraft frame to body framePatriusException
- thrown if computation failedpublic void checkData(AbsoluteDate start, AbsoluteDate end) throws PatriusException
start
- range start dateend
- range end datePatriusException
- thrown if some data is missingCopyright © 2023 CNES. All rights reserved.