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, gravityModel, 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 |
---|---|
Vector3D |
computeAcceleration(Vector3D pos,
Frame frame,
AbsoluteDate date)
Compute the acceleration due to the force.
|
addContribution, addDAccDParam, addDAccDParam, addDAccDState, addDAccDState, checkData, 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 considerpublic DirectBodyAttraction(GravityModel gravityModelIn, boolean computePD)
Simple constructor.
gravityModelIn
- the gravitational attraction model to considercomputePD
- true if partial derivatives have to be computedpublic 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 parameterpublic Vector3D computeAcceleration(Vector3D pos, Frame frame, AbsoluteDate date) throws PatriusException
computeAcceleration
in class AbstractBodyAttraction
pos
- position of the spacecraftframe
- frame in which the acceleration derivatives are computeddate
- datePatriusException
- if some specific error occursCopyright © 2023 CNES. All rights reserved.