T - the type of the field elementsabstract class RungeKuttaFieldStepInterpolator<T extends RealFieldElement<T>> extends AbstractFieldStepInterpolator<T>
RungeKuttaFieldIntegrator,
EmbeddedRungeKuttaFieldIntegrator| Modifier and Type | Field and Description |
|---|---|
private Field<T> |
field
Field to which the time and state vector elements belong.
|
private T[][] |
yDotK
Slopes at the intermediate points.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RungeKuttaFieldStepInterpolator(Field<T> field,
boolean forward,
T[][] yDotK,
FieldODEStateAndDerivative<T> globalPreviousState,
FieldODEStateAndDerivative<T> globalCurrentState,
FieldODEStateAndDerivative<T> softPreviousState,
FieldODEStateAndDerivative<T> softCurrentState,
FieldEquationsMapper<T> mapper)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private T[] |
combine(T[] a,
T... coefficients)
Linearly combine arrays.
|
protected RungeKuttaFieldStepInterpolator<T> |
create(boolean newForward,
FieldODEStateAndDerivative<T> newGlobalPreviousState,
FieldODEStateAndDerivative<T> newGlobalCurrentState,
FieldODEStateAndDerivative<T> newSoftPreviousState,
FieldODEStateAndDerivative<T> newSoftCurrentState,
FieldEquationsMapper<T> newMapper)
Create a new instance.
|
protected abstract RungeKuttaFieldStepInterpolator<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.
|
protected T[] |
currentStateLinearCombination(T... coefficients)
Compute a state by linear combination added to current state.
|
protected T[] |
derivativeLinearCombination(T... coefficients)
Compute a state derivative by linear combination.
|
protected T[] |
previousStateLinearCombination(T... coefficients)
Compute a state by linear combination added to previous state.
|
computeInterpolatedStateAndDerivatives, getCurrentState, getGlobalCurrentState, getGlobalPreviousState, getInterpolatedState, getPreviousState, isForward, restrictStepprivate final Field<T extends RealFieldElement<T>> field
private final T extends RealFieldElement<T>[][] yDotK
protected RungeKuttaFieldStepInterpolator(Field<T> field, boolean forward, T[][] yDotK, FieldODEStateAndDerivative<T> globalPreviousState, FieldODEStateAndDerivative<T> globalCurrentState, FieldODEStateAndDerivative<T> softPreviousState, FieldODEStateAndDerivative<T> softCurrentState, FieldEquationsMapper<T> mapper)
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 equationsprotected RungeKuttaFieldStepInterpolator<T> create(boolean newForward, FieldODEStateAndDerivative<T> newGlobalPreviousState, FieldODEStateAndDerivative<T> newGlobalCurrentState, FieldODEStateAndDerivative<T> newSoftPreviousState, FieldODEStateAndDerivative<T> newSoftCurrentState, FieldEquationsMapper<T> newMapper)
create in class AbstractFieldStepInterpolator<T extends RealFieldElement<T>>newForward - integration direction indicatornewGlobalPreviousState - 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 equationsprotected abstract RungeKuttaFieldStepInterpolator<T> create(Field<T> newField, boolean newForward, T[][] newYDotK, FieldODEStateAndDerivative<T> newGlobalPreviousState, FieldODEStateAndDerivative<T> newGlobalCurrentState, FieldODEStateAndDerivative<T> newSoftPreviousState, FieldODEStateAndDerivative<T> newSoftCurrentState, FieldEquationsMapper<T> newMapper)
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 equationsprotected final T[] previousStateLinearCombination(T... coefficients)
coefficients - coefficients to apply to the method staged derivativesprotected T[] currentStateLinearCombination(T... coefficients)
coefficients - coefficients to apply to the method staged derivativesprotected T[] derivativeLinearCombination(T... coefficients)
coefficients - coefficients to apply to the method staged derivativesCopyright (c) 2003-2017 Apache Software Foundation