Class DormandPrince853StateInterpolator
- java.lang.Object
-
- org.hipparchus.ode.sampling.AbstractODEStateInterpolator
-
- org.hipparchus.ode.nonstiff.interpolators.RungeKuttaStateInterpolator
-
- org.hipparchus.ode.nonstiff.interpolators.DormandPrince853StateInterpolator
-
- All Implemented Interfaces:
Serializable
,ODEStateInterpolator
public class DormandPrince853StateInterpolator extends RungeKuttaStateInterpolator
This class represents an interpolator over the last step during an ODE integration for the 8(5,3) Dormand-Prince integrator.- See Also:
DormandPrince853Integrator
, Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hipparchus.ode.nonstiff.interpolators.RungeKuttaStateInterpolator
yDotK
-
-
Constructor Summary
Constructors Constructor Description DormandPrince853StateInterpolator(boolean forward, double[][] yDotK, ODEStateAndDerivative globalPreviousState, ODEStateAndDerivative globalCurrentState, ODEStateAndDerivative softPreviousState, ODEStateAndDerivative softCurrentState, EquationsMapper mapper)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ODEStateAndDerivative
computeInterpolatedStateAndDerivatives(EquationsMapper mapper, double time, double theta, double thetaH, double oneMinusThetaH)
Compute the state and derivatives at the interpolated time.protected DormandPrince853StateInterpolator
create(boolean newForward, double[][] newYDotK, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper)
Create a new instance.-
Methods inherited from class org.hipparchus.ode.nonstiff.interpolators.RungeKuttaStateInterpolator
create, currentStateLinearCombination, derivativeLinearCombination, previousStateLinearCombination
-
Methods inherited from class org.hipparchus.ode.sampling.AbstractODEStateInterpolator
getCurrentState, getGlobalCurrentState, getGlobalPreviousState, getInterpolatedState, getMapper, getPreviousState, isCurrentStateInterpolated, isForward, isPreviousStateInterpolated, restrictStep
-
-
-
-
Constructor Detail
-
DormandPrince853StateInterpolator
public DormandPrince853StateInterpolator(boolean forward, double[][] yDotK, ODEStateAndDerivative globalPreviousState, ODEStateAndDerivative globalCurrentState, ODEStateAndDerivative softPreviousState, ODEStateAndDerivative softCurrentState, EquationsMapper mapper)
Simple constructor.- Parameters:
forward
- integration direction indicatoryDotK
- slopes at the intermediate pointsglobalPreviousState
- start of the global stepglobalCurrentState
- end of the global stepsoftPreviousState
- start of the restricted stepsoftCurrentState
- end of the restricted stepmapper
- equations mapper for the all equations
-
-
Method Detail
-
create
protected DormandPrince853StateInterpolator create(boolean newForward, double[][] newYDotK, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper)
Create a new instance.- Specified by:
create
in classRungeKuttaStateInterpolator
- Parameters:
newForward
- integration direction indicatornewYDotK
- slopes at the intermediate pointsnewGlobalPreviousState
- start of the global stepnewGlobalCurrentState
- end of the global stepnewSoftPreviousState
- start of the restricted stepnewSoftCurrentState
- end of the restricted stepnewMapper
- equations mapper for the all equations- Returns:
- a new instance
-
computeInterpolatedStateAndDerivatives
protected ODEStateAndDerivative computeInterpolatedStateAndDerivatives(EquationsMapper mapper, double time, double theta, double thetaH, double oneMinusThetaH)
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.- Specified by:
computeInterpolatedStateAndDerivatives
in classAbstractODEStateInterpolator
- Parameters:
mapper
- mapper for ODE equations primary and secondary componentstime
- interpolation timetheta
- normalized interpolation abscissa within the step (theta is zero at the previous time step and one at the current time step)thetaH
- time gap between the previous time and the interpolated timeoneMinusThetaH
- time gap between the interpolated time and the current time- Returns:
- interpolated state and derivatives
-
-