RungeKuttaIntegrator, EmbeddedRungeKuttaIntegrator
| Modifier and Type | Field and Description |
|---|---|
| protected AbstractIntegrator | integrator
Reference to the integrator. |
| protected double[] | previousState
Previous state. |
| protected double[][] | yDotK
Slopes at the intermediate points |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv | RungeKuttaStepInterpolator(final RungeKuttaStepInterpolator
interpolator to copy from. interpolator)Copy constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | readExternal(final ObjectInput
the stream to read data from in order to restore the object in)Implements abstract org. Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | reinitialize(final AbstractIntegrator
integrator being used rkIntegrator, final double[] reference to the integrator array holding the state at
the end of the step y, final double[][] reference to the integrator array holding all the
intermediate slopes yDotArray, final boolean integration direction indicator forward, final EquationsMapper equations mapper for the primary equations set primaryMapper, final EquationsMapper[] equations mappers for the secondary equations sets secondaryMappers)Reinitialize the instance Some Runge-Kutta integrators need fewer functions evaluations than their counterpart step interpolators. |
| public void | shift()
Overrides org. Shift one step forward. |
| public void | writeExternal(final ObjectOutput
the stream to write the object to out)Implements abstract org. Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| integrator | back to summary |
|---|---|
| protected AbstractIntegrator integrator Reference to the integrator. | |
| previousState | back to summary |
|---|---|
| protected double[] previousState Previous state. | |
| yDotK | back to summary |
|---|---|
| protected double[][] yDotK Slopes at the intermediate points | |
| RungeKuttaStepInterpolator | back to summary |
|---|---|
| protected RungeKuttaStepInterpolator() Simple constructor.
This constructor builds an instance that is not usable yet, the
| |
| RungeKuttaStepInterpolator | back to summary |
|---|---|
| pack-priv RungeKuttaStepInterpolator(final RungeKuttaStepInterpolator interpolator) Copy constructor. The copied interpolator should have been finalized before the
copy, otherwise the copy will not be able to perform correctly any
interpolation and will throw a The copy is a deep copy: its arrays are separated from the original arrays of the instance.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException Implements abstract org. Implements java. Doc from org. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| reinitialize | back to summary |
|---|---|
| public void reinitialize(final AbstractIntegrator rkIntegrator, final double[] y, final double[][] yDotArray, final boolean forward, final EquationsMapper primaryMapper, final EquationsMapper[] secondaryMappers) Reinitialize the instance Some Runge-Kutta integrators need fewer functions evaluations
than their counterpart step interpolators. So the interpolator
should perform the last evaluations they need by themselves. The
| |
| shift | back to summary |
|---|---|
| public void shift() Overrides org. Doc from org. Shift one step forward.
Copy the current time into the previous time, hence preparing the
interpolator for future calls to
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(final ObjectOutput out) throws IOException Implements abstract org. Implements java. Doc from org. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |