public abstract class AbstractIntegratedPropagator extends AbstractPropagator
Propagator
methods for both numerical and semi-analytical propagators.Modifier and Type | Class and Description |
---|---|
static interface |
AbstractIntegratedPropagator.MainStateEquations
Differential equations for the main state (orbit, attitude and mass).
|
DEFAULT_MASS
Modifier | Constructor and Description |
---|---|
protected |
AbstractIntegratedPropagator(ODEIntegrator integrator,
PropagationType propagationType)
Build a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalDerivativesProvider(AdditionalDerivativesProvider provider)
Add a provider for user-specified state derivatives to be integrated along with the orbit propagation.
|
void |
addAdditionalEquations(AdditionalEquations additional)
Deprecated.
as of 11.1, replaced by
addAdditionalDerivativesProvider(AdditionalDerivativesProvider) |
void |
addEventDetector(EventDetector detector)
Add an event detector.
|
protected void |
afterIntegration()
Method called just after integration.
|
protected void |
beforeIntegration(SpacecraftState initialState,
AbsoluteDate tEnd)
Method called just before integration.
|
void |
clearEventsDetectors()
Remove all events detectors.
|
protected abstract StateMapper |
createMapper(AbsoluteDate referenceDate,
double mu,
OrbitType orbitType,
PositionAngle positionAngleType,
AttitudeProvider attitudeProvider,
Frame frame)
Create a mapper between raw double components and spacecraft state.
|
List<AdditionalDerivativesProvider> |
getAdditionalDerivativesProviders()
Get an unmodifiable list of providers for additional derivatives.
|
int |
getBasicDimension()
Get state vector dimension without additional parameters.
|
int |
getCalls()
Get the number of calls to the differential equations computation method.
|
EphemerisGenerator |
getEphemerisGenerator()
Set up an ephemeris generator that will monitor the propagation for building
an ephemeris from it once completed.
|
Collection<EventDetector> |
getEventsDetectors()
Get all the events detectors that have been added.
|
protected SpacecraftState |
getInitialIntegrationState()
Get the initial state for integration.
|
protected ODEIntegrator |
getIntegrator()
Get the integrator used by the propagator.
|
protected abstract AbstractIntegratedPropagator.MainStateEquations |
getMainStateEquations(ODEIntegrator integ)
Get the differential equations to integrate (for main state only).
|
String[] |
getManagedAdditionalStates()
Get all the names of all managed states.
|
double |
getMu()
Get the central attraction coefficient μ.
|
protected OrbitType |
getOrbitType()
Get propagation parameter type.
|
protected PositionAngle |
getPositionAngleType()
Get propagation parameter type.
|
PropagationType |
getPropagationType()
Get the propagation type.
|
protected void |
initMapper()
Initialize the mapper.
|
boolean |
isAdditionalStateManaged(String name)
Check if an additional state is managed.
|
protected PropagationType |
isMeanOrbit()
Deprecated.
as of 11.1, replaced by
getPropagationType() |
SpacecraftState |
propagate(AbsoluteDate target)
Propagate towards a target date.
|
SpacecraftState |
propagate(AbsoluteDate tStart,
AbsoluteDate tEnd)
Propagate from a start date towards a target date.
|
void |
setAttitudeProvider(AttitudeProvider attitudeProvider)
Set attitude provider.
|
void |
setMu(double mu)
Set the central attraction coefficient μ.
|
protected void |
setOrbitType(OrbitType orbitType)
Set propagation orbit type.
|
protected void |
setPositionAngleType(PositionAngle positionAngleType)
Set position angle type.
|
void |
setResetAtEnd(boolean resetAtEnd)
Allow/disallow resetting the initial state at end of propagation.
|
protected void |
setUpEventDetector(ODEIntegrator integ,
EventDetector detector)
Wrap an Orekit event detector and register it to the integrator.
|
protected void |
setUpStmAndJacobianGenerators()
Set up State Transition Matrix and Jacobian matrix handling.
|
protected void |
setUpUserEventDetectors()
Set up all user defined event detectors.
|
addAdditionalStateProvider, createHarvester, getAdditionalStateProviders, getAttitudeProvider, getFrame, getHarvester, getInitialState, getMultiplexer, getPVCoordinates, getStartDate, initializePropagation, resetInitialState, setStartDate, setupMatricesComputation, stateChanged, updateAdditionalStates, updateUnmanagedStates
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearStepHandlers, getDefaultLaw, setStepHandler, setStepHandler
protected AbstractIntegratedPropagator(ODEIntegrator integrator, PropagationType propagationType)
integrator
- numerical integrator to use for propagation.propagationType
- type of orbit to output (mean or osculating).public void setResetAtEnd(boolean resetAtEnd)
By default, at the end of the propagation, the propagator resets the initial state
to the final state, thus allowing a new propagation to be started from there without
recomputing the part already performed. Calling this method with resetAtEnd
set
to false changes prevents such reset.
resetAtEnd
- if true, at end of each propagation, the initial state
will be reset to the final state of
the propagation, otherwise the initial state will be preservedprotected void initMapper()
public void setAttitudeProvider(AttitudeProvider attitudeProvider)
setAttitudeProvider
in interface Propagator
setAttitudeProvider
in class AbstractPropagator
attitudeProvider
- attitude providerprotected void setOrbitType(OrbitType orbitType)
orbitType
- orbit type to use for propagation, null for
propagating using AbsolutePVCoordinates
rather than Orbit
protected OrbitType getOrbitType()
AbsolutePVCoordinates
rather than Orbit
@Deprecated protected PropagationType isMeanOrbit()
getPropagationType()
MEAN
if only mean elements have to be used or
OSCULATING
if osculating elements have to be also used.public PropagationType getPropagationType()
protected void setPositionAngleType(PositionAngle positionAngleType)
The position parameter type is meaningful only if propagation orbit type
support it. As an example, it is not meaningful for propagation
in Cartesian
parameters.
positionAngleType
- angle type to use for propagationprotected PositionAngle getPositionAngleType()
public void setMu(double mu)
mu
- central attraction coefficient (m³/s²)public double getMu()
setMu(double)
public int getCalls()
The number of calls is reset each time the propagate(AbsoluteDate)
method is called.
public boolean isAdditionalStateManaged(String name)
Managed states are states for which the propagators know how to compute
its evolution. They correspond to additional states for which a
provider
has been registered by calling the
addAdditionalStateProvider
method.
Additional states that are present in the initial state
but have no evolution method registered are not considered as managed states.
These unmanaged additional states are not lost during propagation, though. Their
value are piecewise constant between state resets that may change them if some
event handler resetState
method is called at an event occurrence and happens
to change the unmanaged additional state.
isAdditionalStateManaged
in interface Propagator
isAdditionalStateManaged
in class AbstractPropagator
name
- name of the additional statepublic String[] getManagedAdditionalStates()
getManagedAdditionalStates
in interface Propagator
getManagedAdditionalStates
in class AbstractPropagator
@Deprecated public void addAdditionalEquations(AdditionalEquations additional)
addAdditionalDerivativesProvider(AdditionalDerivativesProvider)
additional
- additional equationspublic void addAdditionalDerivativesProvider(AdditionalDerivativesProvider provider)
provider
- provider for additional derivativesAbstractPropagator.addAdditionalStateProvider(org.orekit.propagation.AdditionalStateProvider)
public List<AdditionalDerivativesProvider> getAdditionalDerivativesProviders()
public void addEventDetector(EventDetector detector)
detector
- event detector to addPropagator.clearEventsDetectors()
,
Propagator.getEventsDetectors()
public Collection<EventDetector> getEventsDetectors()
Propagator.addEventDetector(EventDetector)
,
Propagator.clearEventsDetectors()
public void clearEventsDetectors()
protected void setUpUserEventDetectors()
protected void setUpEventDetector(ODEIntegrator integ, EventDetector detector)
integ
- integrator into which event detector should be registereddetector
- event detector to wrappublic EphemerisGenerator getEphemerisGenerator()
This generator can be used when the user needs fast random access to the orbit state at any time between the initial and target times. A typical example is the implementation of search and iterative algorithms that may navigate forward and backward inside the propagation range before finding their result even if the propagator used is integration-based and only goes from one initial time to one target time.
Beware that when used with integration-based propagators, the generator will store all intermediate results. It is therefore memory intensive for long integration-based ranges and high precision/short time steps. When used with analytical propagators, the generator only stores start/stop time and a reference to the analytical propagator itself to call it back as needed, so it is less memory intensive.
The returned ephemeris generator will be initially empty, it will be filled
with propagation data when a subsequent call to either propagate(target)
or propagate(start, target)
is called. The proper way to use this method is
therefore to do:
EphemerisGenerator generator = propagator.getEphemerisGenerator(); propagator.propagate(target); BoundedPropagator ephemeris = generator.getGeneratedEphemeris();
protected abstract StateMapper createMapper(AbsoluteDate referenceDate, double mu, OrbitType orbitType, PositionAngle positionAngleType, AttitudeProvider attitudeProvider, Frame frame)
The position parameter type is meaningful only if propagation orbit type
support it. As an example, it is not meaningful for propagation
in Cartesian
parameters.
referenceDate
- reference datemu
- central attraction coefficient (m³/s²)orbitType
- orbit type to use for mappingpositionAngleType
- angle type to use for propagationattitudeProvider
- attitude providerframe
- inertial frameprotected abstract AbstractIntegratedPropagator.MainStateEquations getMainStateEquations(ODEIntegrator integ)
integ
- numerical integrator to use for propagation.public SpacecraftState propagate(AbsoluteDate target)
Simple propagators use only the target date as the specification for computing the propagated state. More feature rich propagators can consider other information and provide different operating modes or G-stop facilities to stop at pinpointed events occurrences. In these cases, the target date is only a hint, not a mandatory objective.
propagate
in interface Propagator
propagate
in class AbstractPropagator
target
- target date towards which orbit state should be propagatedpublic SpacecraftState propagate(AbsoluteDate tStart, AbsoluteDate tEnd)
Those propagators use a start date and a target date to compute the propagated state. For propagators using event detection mechanism, if the provided start date is different from the initial state date, a first, simple propagation is performed, without processing any event computation. Then complete propagation is performed from start date to target date.
tStart
- start date from which orbit state should be propagatedtEnd
- target date to which orbit state should be propagatedprotected void setUpStmAndJacobianGenerators()
protected SpacecraftState getInitialIntegrationState()
protected void beforeIntegration(SpacecraftState initialState, AbsoluteDate tEnd)
The default implementation does nothing, it may be specialized in subclasses.
initialState
- initial statetEnd
- target date at which state should be propagatedprotected void afterIntegration()
The default implementation does nothing, it may be specialized in subclasses.
public int getBasicDimension()
protected ODEIntegrator getIntegrator()
Copyright © 2002-2022 CS GROUP. All rights reserved.