FieldTimeInterpolable<FieldOrbit<T>,T>
, FieldTimeShiftable<FieldOrbit<T>,T>
, FieldTimeStamped<T>
, FieldPVCoordinatesProvider<T>
public class FieldCircularOrbit<T extends org.hipparchus.RealFieldElement<T>> extends FieldOrbit<T>
The parameters used internally are the circular elements which can be related to Keplerian elements as follows:
The conversion equations from and to Keplerian elements given above hold only
when both sides are unambiguously defined, i.e. when orbit is neither equatorial
nor circular. When orbit is circular (but not equatorial), the circular
parameters are still unambiguously defined whereas some Keplerian elements
(more precisely ω and Ω) become ambiguous. When orbit is equatorial,
neither the Keplerian nor the circular parameters can be defined unambiguously.
equinoctial orbits
is the recommended way to represent
orbits.
The instance CircularOrbit
is guaranteed to be immutable.
Orbit
,
KeplerianOrbit
,
CartesianOrbit
,
EquinoctialOrbit
Constructor | Description |
---|---|
FieldCircularOrbit(FieldOrbit<T> op) |
Constructor from any kind of orbital parameters.
|
FieldCircularOrbit(FieldPVCoordinates<T> PVCoordinates,
Frame frame,
FieldAbsoluteDate<T> date,
double mu) |
Constructor from Cartesian parameters.
|
FieldCircularOrbit(TimeStampedFieldPVCoordinates<T> pvCoordinates,
Frame frame,
double mu) |
Constructor from Cartesian parameters.
|
FieldCircularOrbit(T a,
T ex,
T ey,
T i,
T raan,
T alpha,
PositionAngle type,
Frame frame,
FieldAbsoluteDate<T> date,
double mu) |
Creates a new instance.
|
FieldCircularOrbit(T a,
T ex,
T ey,
T i,
T raan,
T alpha,
T aDot,
T exDot,
T eyDot,
T iDot,
T raanDot,
T alphaDot,
PositionAngle type,
Frame frame,
FieldAbsoluteDate<T> date,
double mu) |
Creates a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addKeplerContribution(PositionAngle type,
double gm,
T[] pDot) |
Add the contribution of the Keplerian motion to parameters derivatives
|
static <T extends org.hipparchus.RealFieldElement<T>> |
circularToPosition(T a,
T ex,
T ey,
T i,
T raan,
T alphaV,
double mu) |
|
protected T[][] |
computeJacobianEccentricWrtCartesian() |
Compute the Jacobian of the orbital parameters with eccentric angle with respect to the Cartesian parameters.
|
protected T[][] |
computeJacobianMeanWrtCartesian() |
Compute the Jacobian of the orbital parameters with mean angle with respect to the Cartesian parameters.
|
protected T[][] |
computeJacobianTrueWrtCartesian() |
Compute the Jacobian of the orbital parameters with true angle with respect to the Cartesian parameters.
|
static <T extends org.hipparchus.RealFieldElement<T>> |
eccentricToMean(T alphaE,
T ex,
T ey) |
Computes the mean latitude argument from the eccentric latitude argument.
|
static <T extends org.hipparchus.RealFieldElement<T>> |
eccentricToTrue(T alphaE,
T ex,
T ey) |
Computes the true latitude argument from the eccentric latitude argument.
|
T |
getA() |
Get the semi-major axis.
|
T |
getADot() |
Get the semi-major axis derivative.
|
T |
getAlpha(PositionAngle type) |
Get the latitude argument.
|
T |
getAlphaDot(PositionAngle type) |
Get the latitude argument derivative.
|
T |
getAlphaE() |
Get the eccentric latitude argument.
|
T |
getAlphaEDot() |
Get the eccentric latitude argument derivative.
|
T |
getAlphaM() |
Get the mean latitude argument.
|
T |
getAlphaMDot() |
Get the mean latitude argument derivative.
|
T |
getAlphaV() |
Get the true latitude argument.
|
T |
getAlphaVDot() |
Get the true latitude argument derivative.
|
T |
getCircularEx() |
Get the first component of the circular eccentricity vector.
|
T |
getCircularExDot() |
Get the first component of the circular eccentricity vector derivative.
|
T |
getCircularEy() |
Get the second component of the circular eccentricity vector.
|
T |
getCircularEyDot() |
Get the second component of the circular eccentricity vector derivative.
|
T |
getE() |
Get the eccentricity.
|
T |
getEDot() |
Get the eccentricity derivative.
|
T |
getEquinoctialEx() |
Get the first component of the equinoctial eccentricity vector.
|
T |
getEquinoctialExDot() |
Get the first component of the equinoctial eccentricity vector.
|
T |
getEquinoctialEy() |
Get the second component of the equinoctial eccentricity vector.
|
T |
getEquinoctialEyDot() |
Get the second component of the equinoctial eccentricity vector.
|
T |
getHx() |
Get the first component of the inclination vector.
|
T |
getHxDot() |
Get the first component of the inclination vector derivative.
|
T |
getHy() |
Get the second component of the inclination vector.
|
T |
getHyDot() |
Get the second component of the inclination vector derivative.
|
T |
getI() |
Get the inclination.
|
T |
getIDot() |
Get the inclination derivative.
|
T |
getLE() |
Get the eccentric longitude argument.
|
T |
getLEDot() |
Get the eccentric longitude argument derivative.
|
T |
getLM() |
Get the mean longitude argument.
|
T |
getLMDot() |
Get the mean longitude argument derivative.
|
T |
getLv() |
Get the true longitude argument.
|
T |
getLvDot() |
Get the true longitude argument derivative.
|
T |
getRightAscensionOfAscendingNode() |
Get the right ascension of the ascending node.
|
T |
getRightAscensionOfAscendingNodeDot() |
Get the right ascension of the ascending node derivative.
|
OrbitType |
getType() |
Get the orbit type.
|
boolean |
hasDerivatives() |
Check if orbit includes derivatives.
|
protected TimeStampedFieldPVCoordinates<T> |
initPVCoordinates() |
Compute the position/velocity coordinates from the canonical parameters.
|
FieldCircularOrbit<T> |
interpolate(FieldAbsoluteDate<T> date,
Stream<FieldOrbit<T>> sample) |
Get an interpolated instance.
|
static <T extends org.hipparchus.RealFieldElement<T>> |
meanToEccentric(T alphaM,
T ex,
T ey) |
Computes the eccentric latitude argument from the mean latitude argument.
|
static <T extends org.hipparchus.RealFieldElement<T>> |
normalizeAngle(T a,
T center) |
Normalize an angle in a 2π wide interval around a center value.
|
FieldCircularOrbit<T> |
shiftedBy(double dt) |
Get a time-shifted instance.
|
FieldCircularOrbit<T> |
shiftedBy(T dt) |
Get a time-shifted orbit.
|
CircularOrbit |
toOrbit() |
Transforms the FieldOrbit instance into an Orbit instance.
|
String |
toString() |
Returns a string representation of this Orbit object.
|
static <T extends org.hipparchus.RealFieldElement<T>> |
trueToEccentric(T alphaV,
T ex,
T ey) |
Computes the eccentric latitude argument from the true latitude argument.
|
fillHalfRow, fillHalfRow, fillHalfRow, fillHalfRow, fillHalfRow, fillHalfRow, getDate, getFrame, getJacobianWrtCartesian, getJacobianWrtParameters, getKeplerianMeanMotion, getKeplerianPeriod, getMu, getPVCoordinates, getPVCoordinates, getPVCoordinates, hasNonKeplerianAcceleration
interpolate
public FieldCircularOrbit(T a, T ex, T ey, T i, T raan, T alpha, PositionAngle type, Frame frame, FieldAbsoluteDate<T> date, double mu) throws IllegalArgumentException
a
- semi-major axis (m)ex
- e cos(ω), first component of circular eccentricity vectorey
- e sin(ω), second component of circular eccentricity vectori
- inclination (rad)raan
- right ascension of ascending node (Ω, rad)alpha
- an + ω, mean, eccentric or true latitude argument (rad)type
- type of latitude argumentframe
- the frame in which are defined the parameters
(must be a pseudo-inertial frame
)date
- date of the orbital parametersmu
- central attraction coefficient (m³/s²)IllegalArgumentException
- if eccentricity is equal to 1 or larger or
if frame is not a pseudo-inertial frame
public FieldCircularOrbit(T a, T ex, T ey, T i, T raan, T alpha, T aDot, T exDot, T eyDot, T iDot, T raanDot, T alphaDot, PositionAngle type, Frame frame, FieldAbsoluteDate<T> date, double mu) throws IllegalArgumentException
a
- semi-major axis (m)ex
- e cos(ω), first component of circular eccentricity vectorey
- e sin(ω), second component of circular eccentricity vectori
- inclination (rad)raan
- right ascension of ascending node (Ω, rad)alpha
- an + ω, mean, eccentric or true latitude argument (rad)aDot
- semi-major axis derivative (m/s)exDot
- d(e cos(ω))/dt, first component of circular eccentricity vector derivativeeyDot
- d(e sin(ω))/dt, second component of circular eccentricity vector derivativeiDot
- inclination derivative(rad/s)raanDot
- right ascension of ascending node derivative (rad/s)alphaDot
- d(an + ω), mean, eccentric or true latitude argument derivative (rad/s)type
- type of latitude argumentframe
- the frame in which are defined the parameters
(must be a pseudo-inertial frame
)date
- date of the orbital parametersmu
- central attraction coefficient (m³/s²)IllegalArgumentException
- if eccentricity is equal to 1 or larger or
if frame is not a pseudo-inertial frame
public FieldCircularOrbit(TimeStampedFieldPVCoordinates<T> pvCoordinates, Frame frame, double mu) throws IllegalArgumentException
The acceleration provided in FieldPVCoordinates
is accessible using
FieldOrbit.getPVCoordinates()
and FieldOrbit.getPVCoordinates(Frame)
. All other methods
use mu
and the position to compute the acceleration, including
shiftedBy(RealFieldElement)
and FieldOrbit.getPVCoordinates(FieldAbsoluteDate, Frame)
.
pvCoordinates
- the FieldPVCoordinates
in inertial frameframe
- the frame in which are defined the FieldPVCoordinates
(must be a pseudo-inertial frame
)mu
- central attraction coefficient (m³/s²)IllegalArgumentException
- if frame is not a pseudo-inertial frame
public FieldCircularOrbit(FieldPVCoordinates<T> PVCoordinates, Frame frame, FieldAbsoluteDate<T> date, double mu) throws IllegalArgumentException
The acceleration provided in FieldPVCoordinates
is accessible using
FieldOrbit.getPVCoordinates()
and FieldOrbit.getPVCoordinates(Frame)
. All other methods
use mu
and the position to compute the acceleration, including
shiftedBy(RealFieldElement)
and FieldOrbit.getPVCoordinates(FieldAbsoluteDate, Frame)
.
PVCoordinates
- the FieldPVCoordinates
in inertial frameframe
- the frame in which are defined the FieldPVCoordinates
(must be a pseudo-inertial frame
)date
- date of the orbital parametersmu
- central attraction coefficient (m³/s²)IllegalArgumentException
- if frame is not a pseudo-inertial frame
public FieldCircularOrbit(FieldOrbit<T> op)
op
- orbital parameters to copypublic OrbitType getType()
getType
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getA()
Note that the semi-major axis is considered negative for hyperbolic orbits.
getA
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getADot()
Note that the semi-major axis is considered negative for hyperbolic orbits.
If the orbit was created without derivatives, the value returned is null.
getADot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getEquinoctialEx()
getEquinoctialEx
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getEquinoctialExDot()
If the orbit was created without derivatives, the value returned is null.
getEquinoctialExDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getEquinoctialEy()
getEquinoctialEy
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getEquinoctialEyDot()
If the orbit was created without derivatives, the value returned is null.
getEquinoctialEyDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getCircularEx()
public T getCircularExDot()
public T getCircularEy()
public T getCircularEyDot()
public T getHx()
getHx
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getHxDot()
If the orbit was created without derivatives, the value returned is null.
getHxDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getHy()
getHy
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getHyDot()
getHyDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getAlphaV()
public T getAlphaVDot()
public T getAlphaE()
public T getAlphaEDot()
public T getAlphaM()
public T getAlphaMDot()
public T getAlpha(PositionAngle type)
type
- type of the anglepublic T getAlphaDot(PositionAngle type)
type
- type of the anglepublic static <T extends org.hipparchus.RealFieldElement<T>> T eccentricToTrue(T alphaE, T ex, T ey)
T
- Type of the field elementsalphaE
- = E + ω eccentric latitude argument (rad)ex
- e cos(ω), first component of circular eccentricity vectorey
- e sin(ω), second component of circular eccentricity vectorpublic static <T extends org.hipparchus.RealFieldElement<T>> T trueToEccentric(T alphaV, T ex, T ey)
T
- Type of the field elementsalphaV
- = v + ω true latitude argument (rad)ex
- e cos(ω), first component of circular eccentricity vectorey
- e sin(ω), second component of circular eccentricity vectorpublic static <T extends org.hipparchus.RealFieldElement<T>> T meanToEccentric(T alphaM, T ex, T ey)
T
- Type of the field elementsalphaM
- = M + ω mean latitude argument (rad)ex
- e cos(ω), first component of circular eccentricity vectorey
- e sin(ω), second component of circular eccentricity vectorpublic static <T extends org.hipparchus.RealFieldElement<T>> T eccentricToMean(T alphaE, T ex, T ey)
T
- Type of the field elementsalphaE
- = E + ω eccentric latitude argument (rad)ex
- e cos(ω), first component of circular eccentricity vectorey
- e sin(ω), second component of circular eccentricity vector@Deprecated public static <T extends org.hipparchus.RealFieldElement<T>> org.hipparchus.geometry.euclidean.threed.FieldVector3D<T> circularToPosition(T a, T ex, T ey, T i, T raan, T alphaV, double mu)
FieldCircularOrbit(RealFieldElement, RealFieldElement,
RealFieldElement, RealFieldElement, RealFieldElement, RealFieldElement, PositionAngle, Frame,
FieldAbsoluteDate, double)
and FieldOrbit.getPVCoordinates()
T
- type of the fiels elementsa
- semi-major axis (m)ex
- e cos(ω), first component of circular eccentricity vectorey
- e sin(ω), second component of circular eccentricity vectori
- inclination (rad)raan
- right ascension of ascending node (Ω, rad)alphaV
- v + ω true latitude argument (rad)mu
- central attraction coefficient (m³/s²)public T getE()
getE
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getEDot()
If the orbit was created without derivatives, the value returned is null.
getEDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getI()
If the orbit was created without derivatives, the value returned is null.
getI
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getIDot()
getIDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getRightAscensionOfAscendingNode()
public T getRightAscensionOfAscendingNodeDot()
public T getLv()
getLv
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getLvDot()
If the orbit was created without derivatives, the value returned is null.
getLvDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getLE()
getLE
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getLEDot()
If the orbit was created without derivatives, the value returned is null.
getLEDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getLM()
getLM
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public T getLMDot()
If the orbit was created without derivatives, the value returned is null.
getLMDot
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public boolean hasDerivatives()
hasDerivatives
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
FieldOrbit.getADot()
,
FieldOrbit.getEquinoctialExDot()
,
FieldOrbit.getEquinoctialEyDot()
,
FieldOrbit.getHxDot()
,
FieldOrbit.getHyDot()
,
FieldOrbit.getLEDot()
,
FieldOrbit.getLvDot()
,
FieldOrbit.getLMDot()
,
FieldOrbit.getEDot()
,
FieldOrbit.getIDot()
protected TimeStampedFieldPVCoordinates<T> initPVCoordinates()
initPVCoordinates
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
public FieldCircularOrbit<T> shiftedBy(double dt)
dt
- time shift in secondspublic FieldCircularOrbit<T> shiftedBy(T dt)
The orbit can be slightly shifted to close dates. This shift is based on a simple Keplerian model. It is not intended as a replacement for proper orbit and attitude propagation but should be sufficient for small time shifts or coarse accuracy.
shiftedBy
in interface FieldTimeShiftable<FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>,T extends org.hipparchus.RealFieldElement<T>>
shiftedBy
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
dt
- time shift in secondspublic FieldCircularOrbit<T> interpolate(FieldAbsoluteDate<T> date, Stream<FieldOrbit<T>> sample)
Note that the state of the current instance may not be used in the interpolation process, only its type and non interpolable fields are used (for example central attraction coefficient or frame when interpolating orbits). The interpolable fields taken into account are taken only from the states of the sample points. So if the state of the instance must be used, the instance should be included in the sample points.
Note that this method is designed for small samples only (say up to about 10-20 points) so it can be implemented using polynomial interpolation (typically Hermite interpolation). Using too much points may induce Runge's phenomenon and numerical problems (including NaN appearing).
The interpolated instance is created by polynomial Hermite interpolation on circular elements, without derivatives (which means the interpolation falls back to Lagrange interpolation only).
As this implementation of interpolation is polynomial, it should be used only with small samples (about 10-20 points) in order to avoid Runge's phenomenon and numerical problems (including NaN appearing).
If orbit interpolation on large samples is needed, using the Ephemeris
class is a better way than using this
low-level interpolation. The Ephemeris class automatically handles selection of
a neighboring sub-sample with a predefined number of point from a large global sample
in a thread-safe way.
date
- interpolation datesample
- sample points on which interpolation should be doneprotected T[][] computeJacobianMeanWrtCartesian()
Element jacobian[i][j]
is the derivative of parameter i of the orbit with
respect to Cartesian coordinate j. This means each row correspond to one orbital parameter
whereas columns 0 to 5 correspond to the Cartesian coordinates x, y, z, xDot, yDot and zDot.
computeJacobianMeanWrtCartesian
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
FieldOrbit.computeJacobianEccentricWrtCartesian()
,
FieldOrbit.computeJacobianTrueWrtCartesian()
protected T[][] computeJacobianEccentricWrtCartesian()
Element jacobian[i][j]
is the derivative of parameter i of the orbit with
respect to Cartesian coordinate j. This means each row correspond to one orbital parameter
whereas columns 0 to 5 correspond to the Cartesian coordinates x, y, z, xDot, yDot and zDot.
computeJacobianEccentricWrtCartesian
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
FieldOrbit.computeJacobianMeanWrtCartesian()
,
FieldOrbit.computeJacobianTrueWrtCartesian()
protected T[][] computeJacobianTrueWrtCartesian()
Element jacobian[i][j]
is the derivative of parameter i of the orbit with
respect to Cartesian coordinate j. This means each row correspond to one orbital parameter
whereas columns 0 to 5 correspond to the Cartesian coordinates x, y, z, xDot, yDot and zDot.
computeJacobianTrueWrtCartesian
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
FieldOrbit.computeJacobianMeanWrtCartesian()
,
FieldOrbit.computeJacobianEccentricWrtCartesian()
public void addKeplerContribution(PositionAngle type, double gm, T[] pDot)
This method is used by integration-based propagators to evaluate the part of Keplerian motion to evolution of the orbital state.
addKeplerContribution
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
type
- type of the position angle in the stategm
- attraction coefficient to usepDot
- array containing orbital state derivatives to update (the Keplerian
part must be added to the array components, as the array may already
contain some non-zero elements corresponding to non-Keplerian parts)public String toString()
public static <T extends org.hipparchus.RealFieldElement<T>> T normalizeAngle(T a, T center)
This method has three main uses:
a = MathUtils.normalizeAngle(a, FastMath.PI);
a = MathUtils.normalizeAngle(a, 0.0);
angle = MathUtils.normalizeAngle(end, start) - start;
Note that due to numerical accuracy and since π cannot be represented exactly, the result interval is closed, it cannot be half-closed as would be more satisfactory in a purely mathematical view.
T
- the type of the field elementsa
- angle to normalizecenter
- center of the desired 2π interval for the resultpublic CircularOrbit toOrbit()
FieldOrbit
toOrbit
in class FieldOrbit<T extends org.hipparchus.RealFieldElement<T>>
Copyright © 2002-2019 CS Systèmes d'information. All rights reserved.