The various ODE integrators provide objects extending this class to the step handlers. The handlers can use these objects to retrieve the state vector at intermediate times between the previous and the current grid points (dense output).
org.apache.commons.math3.ode.FirstOrderFieldIntegrator , StepHandler
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | forward
integration direction. |
| private final FieldODEStateAndDerivative | globalCurrentState
Global current state. |
| private final FieldODEStateAndDerivative | globalPreviousState
Global previous state. |
| private FieldEquationsMapper | mapper
Mapper for ODE equations primary and secondary components. |
| private final FieldODEStateAndDerivative | softCurrentState
Soft current state. |
| private final FieldODEStateAndDerivative | softPreviousState
Soft previous state. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractFieldStepInterpolator(final boolean
integration direction indicator isForward, final FieldODEStateAndDerivative<T> start of the global step globalPreviousState, final FieldODEStateAndDerivative<T> end of the global step globalCurrentState, final FieldODEStateAndDerivative<T> start of the restricted step softPreviousState, final FieldODEStateAndDerivative<T> end of the restricted step softCurrentState, final FieldEquationsMapper<T> mapper for ODE equations primary and secondary components equationsMapper)Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract FieldODEStateAndDerivative | Returns: interpolated state and derivativesmapper for ODE equations primary and secondary components equationsMapper, T interpolation time time, T normalized interpolation abscissa within the step
(theta is zero at the previous time step and one at the current time step) theta, T time gap between the previous time and the interpolated time thetaH, T time gap between the interpolated time and
the current time oneMinusThetaH)Compute the state and derivatives at the interpolated time. |
| protected abstract AbstractFieldStepInterpolator | Returns: a new instanceintegration direction indicator newForward, FieldODEStateAndDerivative<T> start of the global step newGlobalPreviousState, FieldODEStateAndDerivative<T> end of the global step newGlobalCurrentState, FieldODEStateAndDerivative<T> start of the restricted step newSoftPreviousState, FieldODEStateAndDerivative<T> end of the restricted step newSoftCurrentState, FieldEquationsMapper<T> equations mapper for the all equations newMapper)Create a new instance. |
| public FieldODEStateAndDerivative | getCurrentState()
Implements org. Get the state at current grid point time. |
| public FieldODEStateAndDerivative | Returns: current global grid point stateGet the current global grid point state. |
| public FieldODEStateAndDerivative | Returns: previous global grid point stateGet the previous global grid point state. |
| public FieldODEStateAndDerivative | getInterpolatedState(final T
time of the interpolated point time)Implements org. Get the state at interpolated time. |
| public FieldODEStateAndDerivative | getPreviousState()
Implements org. Get the state at previous grid point time. |
| public boolean | isForward()
Implements org. Check if the natural integration direction is forward. |
| public AbstractFieldStepInterpolator | Returns: restricted version of the instancestart of the restricted step previousState, final FieldODEStateAndDerivative<T> end of the restricted step currentState)Create a new restricted version of the instance. |
| forward | back to summary |
|---|---|
| private final boolean forward integration direction. | |
| globalCurrentState | back to summary |
|---|---|
| private final FieldODEStateAndDerivative<T> globalCurrentState Global current state. | |
| globalPreviousState | back to summary |
|---|---|
| private final FieldODEStateAndDerivative<T> globalPreviousState Global previous state. | |
| mapper | back to summary |
|---|---|
| private FieldEquationsMapper<T> mapper Mapper for ODE equations primary and secondary components. | |
| softCurrentState | back to summary |
|---|---|
| private final FieldODEStateAndDerivative<T> softCurrentState Soft current state. | |
| softPreviousState | back to summary |
|---|---|
| private final FieldODEStateAndDerivative<T> softPreviousState Soft previous state. | |
| AbstractFieldStepInterpolator | back to summary |
|---|---|
| protected AbstractFieldStepInterpolator(final boolean isForward, final FieldODEStateAndDerivative<T> globalPreviousState, final FieldODEStateAndDerivative<T> globalCurrentState, final FieldODEStateAndDerivative<T> softPreviousState, final FieldODEStateAndDerivative<T> softCurrentState, final FieldEquationsMapper<T> equationsMapper) Simple constructor.
| |
| computeInterpolatedStateAndDerivatives | back to summary |
|---|---|
| protected abstract FieldODEStateAndDerivative Compute the state and derivatives at the interpolated time. This is the main processing method that should be implemented by the derived classes to perform the interpolation.
| |
| create | back to summary |
|---|---|
| protected abstract AbstractFieldStepInterpolator Create a new instance.
| |
| getCurrentState | back to summary |
|---|---|
| public FieldODEStateAndDerivative Implements org. Doc from org. Get the state at current grid point time.
| |
| getGlobalCurrentState | back to summary |
|---|---|
| public FieldODEStateAndDerivative Get the current global grid point state.
| |
| getGlobalPreviousState | back to summary |
|---|---|
| public FieldODEStateAndDerivative Get the previous global grid point state.
| |
| getInterpolatedState | back to summary |
|---|---|
| public FieldODEStateAndDerivative Implements org. Doc from org. Get the state at interpolated time. Setting the time outside of the current step is allowed, but should be used with care since the accuracy of the interpolator will probably be very poor far from this step. This allowance has been added to simplify implementation of search algorithms near the step endpoints.
| |
| getPreviousState | back to summary |
|---|---|
| public FieldODEStateAndDerivative Implements org. Doc from org. Get the state at previous grid point time.
| |
| isForward | back to summary |
|---|---|
| public boolean isForward() Implements org. Doc from org. Check if the natural integration direction is forward. This method provides the integration direction as specified by the integrator itself, it avoid some nasty problems in degenerated cases like null steps due to cancellation at step initialization, step control or discrete events triggering.
| |
| restrictStep | back to summary |
|---|---|
| public AbstractFieldStepInterpolator Create a new restricted version of the instance. The instance is not changed at all.
| |