Class CartesianAdjointJ2Term
- java.lang.Object
-
- org.orekit.control.indirect.adjoint.AbstractCartesianAdjointEquationTerm
-
- org.orekit.control.indirect.adjoint.AbstractCartesianAdjointGravitationalTerm
-
- org.orekit.control.indirect.adjoint.CartesianAdjointJ2Term
-
- All Implemented Interfaces:
CartesianAdjointEquationTerm
public class CartesianAdjointJ2Term extends AbstractCartesianAdjointGravitationalTerm
Class defining a (constant) J2 contributions in the adjoint equations for Cartesian coordinates. If present, then the propagator should also include a constant J2 term (oblateness) of the central body.- Since:
- 12.2
- Author:
- Romain Serra
- See Also:
CartesianAdjointEquationTerm
,J2OnlyPerturbation
-
-
Constructor Summary
Constructors Constructor Description CartesianAdjointJ2Term(double mu, double rEq, double j2, Frame j2Frame)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3D
getAcceleration(AbsoluteDate date, double[] stateVariables, Frame frame)
Compute the acceleration vector.<T extends CalculusFieldElement<T>>
FieldVector3D<T>getFieldAcceleration(FieldAbsoluteDate<T> date, T[] stateVariables, Frame frame)
Compute the acceleration vector.double
getJ2()
Getter for J2.double[]
getPositionAdjointContribution(AbsoluteDate date, double[] stateVariables, double[] adjointVariables, Frame frame)
Computes the contribution to position adjoint derivatives.<T extends CalculusFieldElement<T>>
T[]getPositionAdjointFieldContribution(FieldAbsoluteDate<T> date, T[] stateVariables, T[] adjointVariables, Frame frame)
Computes the contribution to position adjoint derivatives.double
getrEq()
Getter for central body equatorial radius.-
Methods inherited from class org.orekit.control.indirect.adjoint.AbstractCartesianAdjointGravitationalTerm
getFieldRatesContribution, getMu, getRatesContribution
-
Methods inherited from class org.orekit.control.indirect.adjoint.AbstractCartesianAdjointEquationTerm
buildFieldGradientCartesianVector, buildGradientCartesianVector, getFieldHamiltonianContribution, getHamiltonianContribution
-
-
-
-
Constructor Detail
-
CartesianAdjointJ2Term
public CartesianAdjointJ2Term(double mu, double rEq, double j2, Frame j2Frame)
Constructor.- Parameters:
mu
- central body gravitational parameter.rEq
- equatorial radiusj2
- J2 coefficientj2Frame
- J2 frame
-
-
Method Detail
-
getrEq
public double getrEq()
Getter for central body equatorial radius.- Returns:
- equatorial radius
-
getJ2
public double getJ2()
Getter for J2.- Returns:
- J2 coefficient
-
getPositionAdjointContribution
public double[] getPositionAdjointContribution(AbsoluteDate date, double[] stateVariables, double[] adjointVariables, Frame frame)
Computes the contribution to position adjoint derivatives.- Specified by:
getPositionAdjointContribution
in classAbstractCartesianAdjointGravitationalTerm
- Parameters:
date
- datestateVariables
- state variablesadjointVariables
- adjoint variablesframe
- propagation frame- Returns:
- contribution to position adjoint derivatives
-
getPositionAdjointFieldContribution
public <T extends CalculusFieldElement<T>> T[] getPositionAdjointFieldContribution(FieldAbsoluteDate<T> date, T[] stateVariables, T[] adjointVariables, Frame frame)
Computes the contribution to position adjoint derivatives.- Specified by:
getPositionAdjointFieldContribution
in classAbstractCartesianAdjointGravitationalTerm
- Type Parameters:
T
- field type- Parameters:
date
- datestateVariables
- state variablesadjointVariables
- adjoint variablesframe
- propagation frame- Returns:
- contribution to position adjoint derivatives
-
getAcceleration
public Vector3D getAcceleration(AbsoluteDate date, double[] stateVariables, Frame frame)
Compute the acceleration vector.- Specified by:
getAcceleration
in classAbstractCartesianAdjointEquationTerm
- Parameters:
date
- datestateVariables
- state variablesframe
- propagation frame- Returns:
- acceleration vector
-
getFieldAcceleration
public <T extends CalculusFieldElement<T>> FieldVector3D<T> getFieldAcceleration(FieldAbsoluteDate<T> date, T[] stateVariables, Frame frame)
Compute the acceleration vector.- Specified by:
getFieldAcceleration
in classAbstractCartesianAdjointEquationTerm
- Type Parameters:
T
- field type- Parameters:
date
- datestateVariables
- state variablesframe
- propagation frame- Returns:
- acceleration vector
-
-