Class DormandPrince54FieldStepInterpolator<T extends RealFieldElement<T>>
java.lang.Object
org.apache.commons.math3.ode.sampling.AbstractFieldStepInterpolator<T>
org.apache.commons.math3.ode.nonstiff.RungeKuttaFieldStepInterpolator<T>
org.apache.commons.math3.ode.nonstiff.DormandPrince54FieldStepInterpolator<T>
- Type Parameters:
T- the type of the field elements
- All Implemented Interfaces:
FieldStepInterpolator<T>
class DormandPrince54FieldStepInterpolator<T extends RealFieldElement<T>>
extends RungeKuttaFieldStepInterpolator<T>
This class represents an interpolator over the last step during an
ODE integration for the 5(4) Dormand-Prince integrator.
- Since:
- 3.6
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TLast row of the Butcher-array internal weights, element 0.private final TLast row of the Butcher-array internal weights, element 2.private final TLast row of the Butcher-array internal weights, element 3.private final TLast row of the Butcher-array internal weights, element 4.private final TLast row of the Butcher-array internal weights, element 5.private final TShampine (1986) Dense output, element 0.private final TShampine (1986) Dense output, element 2.private final TShampine (1986) Dense output, element 3.private final TShampine (1986) Dense output, element 4.private final TShampine (1986) Dense output, element 5.private final TShampine (1986) Dense output, element 6. -
Constructor Summary
ConstructorsConstructorDescriptionDormandPrince54FieldStepInterpolator(Field<T> field, boolean forward, T[][] yDotK, FieldODEStateAndDerivative<T> globalPreviousState, FieldODEStateAndDerivative<T> globalCurrentState, FieldODEStateAndDerivative<T> softPreviousState, FieldODEStateAndDerivative<T> softCurrentState, FieldEquationsMapper<T> mapper) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldODEStateAndDerivative<T> computeInterpolatedStateAndDerivatives(FieldEquationsMapper<T> mapper, T time, T theta, T thetaH, T oneMinusThetaH) Compute the state and derivatives at the interpolated time.protected DormandPrince54FieldStepInterpolator<T> create(Field<T> newField, boolean newForward, T[][] newYDotK, FieldODEStateAndDerivative<T> newGlobalPreviousState, FieldODEStateAndDerivative<T> newGlobalCurrentState, FieldODEStateAndDerivative<T> newSoftPreviousState, FieldODEStateAndDerivative<T> newSoftCurrentState, FieldEquationsMapper<T> newMapper) Create a new instance.Methods inherited from class RungeKuttaFieldStepInterpolator
create, currentStateLinearCombination, derivativeLinearCombination, previousStateLinearCombinationMethods inherited from class AbstractFieldStepInterpolator
getCurrentState, getGlobalCurrentState, getGlobalPreviousState, getInterpolatedState, getPreviousState, isForward, restrictStep
-
Field Details
-
a70
Last row of the Butcher-array internal weights, element 0. -
a72
Last row of the Butcher-array internal weights, element 2. -
a73
Last row of the Butcher-array internal weights, element 3. -
a74
Last row of the Butcher-array internal weights, element 4. -
a75
Last row of the Butcher-array internal weights, element 5. -
d0
Shampine (1986) Dense output, element 0. -
d2
Shampine (1986) Dense output, element 2. -
d3
Shampine (1986) Dense output, element 3. -
d4
Shampine (1986) Dense output, element 4. -
d5
Shampine (1986) Dense output, element 5. -
d6
Shampine (1986) Dense output, element 6.
-
-
Constructor Details
-
DormandPrince54FieldStepInterpolator
DormandPrince54FieldStepInterpolator(Field<T> field, boolean forward, T[][] yDotK, FieldODEStateAndDerivative<T> globalPreviousState, FieldODEStateAndDerivative<T> globalCurrentState, FieldODEStateAndDerivative<T> softPreviousState, FieldODEStateAndDerivative<T> softCurrentState, FieldEquationsMapper<T> mapper) Simple constructor.- Parameters:
field- field to which the time and state vector elements belongforward- 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 Details
-
create
protected DormandPrince54FieldStepInterpolator<T> create(Field<T> newField, boolean newForward, T[][] newYDotK, FieldODEStateAndDerivative<T> newGlobalPreviousState, FieldODEStateAndDerivative<T> newGlobalCurrentState, FieldODEStateAndDerivative<T> newSoftPreviousState, FieldODEStateAndDerivative<T> newSoftCurrentState, FieldEquationsMapper<T> newMapper) Create a new instance.- Specified by:
createin classRungeKuttaFieldStepInterpolator<T extends RealFieldElement<T>>- Parameters:
newField- field to which the time and state vector elements belongnewForward- 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 FieldODEStateAndDerivative<T> computeInterpolatedStateAndDerivatives(FieldEquationsMapper<T> mapper, T time, T theta, T thetaH, T 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:
computeInterpolatedStateAndDerivativesin classAbstractFieldStepInterpolator<T extends RealFieldElement<T>>- 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
-