Class FieldApsideDetector<T extends CalculusFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.events.FieldAbstractDetector<FieldApsideDetector<T>,T>
-
- org.orekit.propagation.events.FieldApsideDetector<T>
-
- Type Parameters:
T
- type of the field elements
- All Implemented Interfaces:
FieldEventDetector<T>
public class FieldApsideDetector<T extends CalculusFieldElement<T>> extends FieldAbstractDetector<FieldApsideDetector<T>,T>
Finder for apside crossing events.This class finds apside crossing events (i.e. apogee or perigee crossing).
The default implementation behavior is to
continue
propagation at apogee crossing and tostop
propagation at perigee crossing. This can be changed by callingFieldAbstractDetector.withHandler(FieldEventHandler)
after construction.Beware that apside detection will fail for almost circular orbits. If for example an apside detector is used to trigger an
ImpulseManeuver
and the maneuver change the orbit shape to circular, then the detector may completely fail just after the maneuver has been performed!- Author:
- Luc Maisonobe
- See Also:
FieldPropagator.addEventDetector(FieldEventDetector)
-
-
Field Summary
-
Fields inherited from class org.orekit.propagation.events.FieldAbstractDetector
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
-
-
Constructor Summary
Constructors Modifier Constructor Description FieldApsideDetector(FieldOrbit<T> orbit)
Build a new instance.protected
FieldApsideDetector(FieldAdaptableInterval<T> maxCheck, T threshold, int maxIter, FieldEventHandler<T> handler)
Protected constructor with full parameters.FieldApsideDetector(T threshold, FieldOrbit<T> orbit)
Build a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FieldApsideDetector<T>
create(FieldAdaptableInterval<T> newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<T> newHandler)
Build a new instance.T
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.-
Methods inherited from class org.orekit.propagation.events.FieldAbstractDetector
getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThreshold
-
-
-
-
Constructor Detail
-
FieldApsideDetector
public FieldApsideDetector(FieldOrbit<T> orbit)
Build a new instance.The orbit is used only to set an upper bound for the max check interval to period/3 and to set the convergence threshold according to orbit size
- Parameters:
orbit
- initial orbit
-
FieldApsideDetector
public FieldApsideDetector(T threshold, FieldOrbit<T> orbit)
Build a new instance.The orbit is used only to set an upper bound for the max check interval to period/3
- Parameters:
threshold
- convergence threshold (s)orbit
- initial orbit
-
FieldApsideDetector
protected FieldApsideDetector(FieldAdaptableInterval<T> maxCheck, T threshold, int maxIter, FieldEventHandler<T> handler)
Protected constructor with full parameters.This constructor is not public as users are expected to use the builder API with the various
withXxx()
methods to set up the instance in a readable manner without using a huge amount of parameters.- Parameters:
maxCheck
- maximum checking intervalthreshold
- convergence threshold (s)maxIter
- maximum number of iterations in the event time searchhandler
- event handler to call at event occurrences
-
-
Method Detail
-
create
protected FieldApsideDetector<T> create(FieldAdaptableInterval<T> newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<T> newHandler)
Build a new instance.- Specified by:
create
in classFieldAbstractDetector<FieldApsideDetector<T extends CalculusFieldElement<T>>,T extends CalculusFieldElement<T>>
- Parameters:
newMaxCheck
- maximum checking intervalnewThreshold
- convergence threshold (s)newMaxIter
- maximum number of iterations in the event time searchnewHandler
- event handler to call at event occurrences- Returns:
- a new instance of the appropriate sub-type
-
g
public T g(FieldSpacecraftState<T> s)
Compute the value of the switching function. This function computes the dot product of the 2 vectors : position.velocity.- Specified by:
g
in interfaceFieldEventDetector<T extends CalculusFieldElement<T>>
- Specified by:
g
in classFieldAbstractDetector<FieldApsideDetector<T extends CalculusFieldElement<T>>,T extends CalculusFieldElement<T>>
- Parameters:
s
- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
-