Class FixedPointConverter
java.lang.Object
org.orekit.propagation.conversion.osc2mean.FixedPointConverter
- All Implemented Interfaces:
OsculatingToMeanConverter
Class enabling conversion from osculating to mean orbit
for a given theory using a fixed-point algorithm.
- Since:
- 13.0
- Author:
- Pascal Parraud
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault damping ratio.static final intDefault maximum number of iterations.static final doubleDefault convergence threshold. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.FixedPointConverter(double threshold, int maxIterations, double damping) Constructor.FixedPointConverter(MeanTheory theory) Constructor.FixedPointConverter(MeanTheory theory, double threshold, int maxIterations, double damping) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T extends CalculusFieldElement<T>>
FieldOrbit<T> convertToMean(FieldOrbit<T> osculating) Converts an osculating orbit into a mean orbit.convertToMean(Orbit osculating) Converts an osculating orbit into a mean orbit.doubleGets damping ratio.intGets the number of iterations performed by the last conversion.intGets maximum number of iterations.Gets the theory defining the mean orbit.doubleGets the non-dimensional convergence threshold.voidsetDamping(double damping) Sets damping ratio.voidsetMaxIterations(int maxIterations) Sets maximum number of iterations.voidsetMeanTheory(MeanTheory meanTheory) Sets the theory defining the mean orbit.voidsetThreshold(double threshold) Sets convergence threshold.
-
Field Details
-
DEFAULT_THRESHOLD
public static final double DEFAULT_THRESHOLDDefault convergence threshold.- See Also:
-
DEFAULT_MAX_ITERATIONS
public static final int DEFAULT_MAX_ITERATIONSDefault maximum number of iterations.- See Also:
-
DEFAULT_DAMPING
public static final double DEFAULT_DAMPINGDefault damping ratio.- See Also:
-
-
Constructor Details
-
FixedPointConverter
public FixedPointConverter()Default constructor.The mean theory must be set before converting.
-
FixedPointConverter
Constructor.- Parameters:
theory- mean theory to be used
-
FixedPointConverter
public FixedPointConverter(double threshold, int maxIterations, double damping) Constructor.The mean theory must be set before converting.
- Parameters:
threshold- tolerance for convergencemaxIterations- maximum number of iterationsdamping- damping ratio
-
FixedPointConverter
Constructor.- Parameters:
theory- mean theory to be usedthreshold- tolerance for convergencemaxIterations- maximum number of iterationsdamping- damping ratio
-
-
Method Details
-
getMeanTheory
Gets the theory defining the mean orbit.- Specified by:
getMeanTheoryin interfaceOsculatingToMeanConverter- Returns:
- the mean theory
-
setMeanTheory
Sets the theory defining the mean orbit.- Specified by:
setMeanTheoryin interfaceOsculatingToMeanConverter- Parameters:
meanTheory- the mean theory
-
getThreshold
public double getThreshold()Gets the non-dimensional convergence threshold.- Specified by:
getThresholdin interfaceOsculatingToMeanConverter- Returns:
- non-dimensional convergence threshold
-
setThreshold
public void setThreshold(double threshold) Sets convergence threshold.- Parameters:
threshold- convergence threshold
-
getMaxIterations
public int getMaxIterations()Gets maximum number of iterations.- Returns:
- maximum number of iterations
-
setMaxIterations
public void setMaxIterations(int maxIterations) Sets maximum number of iterations.- Parameters:
maxIterations- maximum number of iterations
-
getDamping
public double getDamping()Gets damping ratio.- Returns:
- damping ratio
-
setDamping
public void setDamping(double damping) Sets damping ratio.- Parameters:
damping- damping ratio
-
getIterationsNb
public int getIterationsNb()Gets the number of iterations performed by the last conversion.- Returns:
- number of iterations
-
convertToMean
Converts an osculating orbit into a mean orbit. Uses a fixed-point algorithm.- Specified by:
convertToMeanin interfaceOsculatingToMeanConverter- Parameters:
osculating- osculating orbit- Returns:
- mean orbit
-
convertToMean
Converts an osculating orbit into a mean orbit. Uses a fixed-point algorithm.- Specified by:
convertToMeanin interfaceOsculatingToMeanConverter- Type Parameters:
T- type of the filed elements- Parameters:
osculating- osculating orbit- Returns:
- mean orbit
-