public class LiuMeanOsculatingConverter extends Object implements MeanOsculatingElementsProvider
Constructor and Description |
---|
LiuMeanOsculatingConverter(double referenceRadius,
double mu,
double j2,
Frame frame)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Orbit |
convertFrame(Orbit orbit,
Frame outputFrame)
Convert provided orbit in output frame.
|
Orbit |
mean2osc(Orbit orbit)
Convert provided mean orbit into osculating elements.
|
Orbit |
osc2mean(Orbit orbit)
Convert provided osculating orbit into mean elements.
|
Orbit |
propagateMeanOrbit(AbsoluteDate date)
Propagate mean orbit until provided date.
|
void |
setThreshold(double newThreshold)
Setter for relative convergence threshold for osculating to mean algorithm.
|
public LiuMeanOsculatingConverter(double referenceRadius, double mu, double j2, Frame frame) throws PatriusException
referenceRadius
- reference radius of the central body attraction model (m)mu
- central attraction coefficient (m3/s2)j2
- Second harmonic of the oblateness of the Earth (.)frame
- Inertial or quasi-inertial frame in which the model is supposed valid, the Z axis of the frame being the
polar axis of the bodyPatriusException
- thrown if failed to build initial state or coefficients frame is not inertialpublic Orbit osc2mean(Orbit orbit) throws PatriusException
Warning: Used algorithm often consists in an iterative algorithm with a convergence criterion. As a result convergence is not always ensured, depending on the underlying theory.
osc2mean
in interface MeanOsculatingElementsProvider
orbit
- an orbit (osculating elements)PatriusException
- if conversion failspublic Orbit mean2osc(Orbit orbit) throws PatriusException
mean2osc
in interface MeanOsculatingElementsProvider
orbit
- an orbit (mean elements)PatriusException
- if conversion failsprotected Orbit convertFrame(Orbit orbit, Frame outputFrame) throws PatriusException
orbit
- orbitoutputFrame
- output framePatriusException
- thrown if conversion failedpublic void setThreshold(double newThreshold)
newThreshold
- new relative thresholdpublic Orbit propagateMeanOrbit(AbsoluteDate date) throws PatriusException
propagateMeanOrbit
in interface MeanOsculatingElementsProvider
date
- a datePatriusException
- thrown if computation failedCopyright © 2020 CNES. All rights reserved.