public class Jacobianizer extends Object
force models
implementations.
For better performances, force models
implementations should compute their
partial derivatives analytically. However, in some cases, it may be difficult. This class
allows to compute the derivatives by finite differences relying only on the basic acceleration.
Constructor and Description |
---|
Jacobianizer(ForceModel forceModel,
double mu,
Collection<ParameterConfiguration> paramsAndSteps,
double hPos)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
FieldVector3D<DerivativeStructure> |
accelerationDerivatives(AbsoluteDate date,
Frame frame,
FieldVector3D<DerivativeStructure> position,
FieldVector3D<DerivativeStructure> velocity,
FieldRotation<DerivativeStructure> rotation,
DerivativeStructure mass)
Compute acceleration and derivatives with respect to state.
|
FieldVector3D<DerivativeStructure> |
accelerationDerivatives(SpacecraftState s,
String paramName)
Compute acceleration and derivatives with respect to parameter.
|
public Jacobianizer(ForceModel forceModel, double mu, Collection<ParameterConfiguration> paramsAndSteps, double hPos)
forceModel
- force model instance to wrapmu
- central attraction coefficient (m³/s²)paramsAndSteps
- collection of parameters and their associated stepshPos
- step used for finite difference computation with respect to spacecraft position (m)public FieldVector3D<DerivativeStructure> accelerationDerivatives(AbsoluteDate date, Frame frame, FieldVector3D<DerivativeStructure> position, FieldVector3D<DerivativeStructure> velocity, FieldRotation<DerivativeStructure> rotation, DerivativeStructure mass) throws OrekitException
date
- current dateframe
- inertial reference frame for state (both orbit and attitude)position
- position of spacecraft in reference framevelocity
- velocity of spacecraft in reference framerotation
- orientation (attitude) of the spacecraft with respect to reference framemass
- spacecraft massOrekitException
- if the underlying force models cannot compute the accelerationpublic FieldVector3D<DerivativeStructure> accelerationDerivatives(SpacecraftState s, String paramName) throws OrekitException
s
- current stateparamName
- parameter with respect to which derivation is desiredOrekitException
- if the underlying force models cannot compute the acceleration
or the parameter is not supportedCopyright © 2002-2015 CS Systèmes d'information. All rights reserved.