Class AbstractCartesianAdjointNewtonianTerm

All Implemented Interfaces:
CartesianAdjointEquationTerm
Direct Known Subclasses:
AbstractCartesianAdjointNonCentralBodyTerm, CartesianAdjointKeplerianTerm

public abstract class AbstractCartesianAdjointNewtonianTerm extends AbstractCartesianAdjointGravitationalTerm
Abstract class for common computations regarding adjoint dynamics and Newtonian gravity for Cartesian coordinates.
Since:
12.2
Author:
Romain Serra
See Also:
  • Constructor Details

    • AbstractCartesianAdjointNewtonianTerm

      protected AbstractCartesianAdjointNewtonianTerm(double mu)
      Constructor.
      Parameters:
      mu - body gravitational parameter
  • Method Details

    • getNewtonianVelocityAdjointContribution

      protected double[] getNewtonianVelocityAdjointContribution(double[] relativePosition, double[] adjointVariables)
      Computes the generic term of a Newtonian attraction (central or not).
      Parameters:
      relativePosition - relative position w.r.t. the body
      adjointVariables - adjoint variables
      Returns:
      contribution to velocity adjoint derivatives
    • getFieldNewtonianVelocityAdjointContribution

      protected <T extends CalculusFieldElement<T>> T[] getFieldNewtonianVelocityAdjointContribution(T[] relativePosition, T[] adjointVariables)
      Computes the generic term of a Newtonian attraction (central or not).
      Type Parameters:
      T - field type
      Parameters:
      relativePosition - relative position w.r.t. the body
      adjointVariables - adjoint variables
      Returns:
      contribution to velocity adjoint derivatives
    • getNewtonianAcceleration

      protected Vector3D getNewtonianAcceleration(double[] position)
      Compute the Newtonian acceleration.
      Parameters:
      position - position vector as array
      Returns:
      Newtonian acceleration vector
    • getFieldNewtonianAcceleration

      protected <T extends CalculusFieldElement<T>> FieldVector3D<T> getFieldNewtonianAcceleration(T[] position)
      Compute the Newtonian acceleration.
      Type Parameters:
      T - field type
      Parameters:
      position - position vector as array
      Returns:
      Newtonian acceleration vector