Adams-Bashforth and
Adams-Moulton integrators.
| Modifier and Type | Field and Description |
|---|---|
| private final AdamsNordsieckFieldTransformer | transformer
Transformer. |
| Access | Constructor and Description |
|---|---|
| public | AdamsFieldIntegrator(final Field<T>
field to which the time and state vector elements belong field, final String name of the method name, final int number of steps of the method excluding the one being computed nSteps, final int order of the method order, final double minimal step (sign is irrelevant, regardless of
integration direction, forward or backward), the last step can
be smaller than this minStep, final double maximal step (sign is irrelevant, regardless of
integration direction, forward or backward), the last step can
be smaller than this maxStep, final double allowed absolute error scalAbsoluteTolerance, final double allowed relative error scalRelativeTolerance)Build an Adams integrator with the given order and step control parameters. |
| public | AdamsFieldIntegrator(final Field<T>
field to which the time and state vector elements belong field, final String name of the method name, final int number of steps of the method excluding the one being computed nSteps, final int order of the method order, final double minimal step (sign is irrelevant, regardless of
integration direction, forward or backward), the last step can
be smaller than this minStep, final double maximal step (sign is irrelevant, regardless of
integration direction, forward or backward), the last step can
be smaller than this maxStep, final double[] allowed absolute error vecAbsoluteTolerance, final double[] allowed relative error vecRelativeTolerance)Build an Adams integrator with the given order and step control parameters. |
| Modifier and Type | Method and Description |
|---|---|
| protected Array2DRowFieldMatrix | initializeHighOrderDerivatives(final T
step size to use for scaling h, final T[] first steps times t, final T[][] first steps states y, final T[][] first steps derivatives yDot)Implements abstract org. Initialize the high order scaled derivatives at step start. |
| public abstract FieldODEStateAndDerivative | integrate(final FieldExpandableODE<T>
differential equations to integrate equations, final FieldODEState<T> initial state (time, primary and secondary state vectors) initialState, final T target time for the integration
(can be set to a value smaller than finalTime)t0 for backward integration)Redeclares org. Integrate the differential equations up to the given time. |
| public Array2DRowFieldMatrix | Returns: updated high order derivativeshigh order scaled derivatives
(h2/2 y'', ... hk/k! y(k)) highOrder)Update the high order scaled derivatives for Adams integrators (phase 1). |
| public void | updateHighOrderDerivativesPhase2(final T[]
first order scaled derivatives at step start start, final T[] first order scaled derivatives at step end end, final Array2DRowFieldMatrix<T> high order scaled derivatives, will be modified
(h2/2 y'', ... hk/k! y(k)) highOrder)Update the high order scaled derivatives Adams integrators (phase 2). |
| transformer | back to summary |
|---|---|
| private final AdamsNordsieckFieldTransformer<T> transformer Transformer. | |
| AdamsFieldIntegrator | back to summary |
|---|---|
| public AdamsFieldIntegrator(final Field<T> field, final String name, final int nSteps, final int order, final double minStep, final double maxStep, final double scalAbsoluteTolerance, final double scalRelativeTolerance) throws NumberIsTooSmallException Build an Adams integrator with the given order and step control parameters.
| |
| AdamsFieldIntegrator | back to summary |
|---|---|
| public AdamsFieldIntegrator(final Field<T> field, final String name, final int nSteps, final int order, final double minStep, final double maxStep, final double[] vecAbsoluteTolerance, final double[] vecRelativeTolerance) throws IllegalArgumentException Build an Adams integrator with the given order and step control parameters.
| |
| initializeHighOrderDerivatives | back to summary |
|---|---|
| protected Array2DRowFieldMatrix Implements abstract org. Doc from org. Initialize the high order scaled derivatives at step start.
| |
| integrate | back to summary |
|---|---|
| public abstract FieldODEStateAndDerivative Redeclares org. Doc from org. Integrate the differential equations up to the given time. This method solves an Initial Value Problem (IVP). Since this method stores some internal state variables made
available in its public interface during integration (
| |
| updateHighOrderDerivativesPhase1 | back to summary |
|---|---|
| public Array2DRowFieldMatrix Update the high order scaled derivatives for Adams integrators (phase 1). The complete update of high order derivatives has a form similar to: rn+1 = (s1(n) - s1(n+1)) P-1 u + P-1 A P rnthis method computes the P-1 A P rn part.
| |
| updateHighOrderDerivativesPhase2 | back to summary |
|---|---|
| public void updateHighOrderDerivativesPhase2(final T[] start, final T[] end, final Array2DRowFieldMatrix<T> highOrder) Update the high order scaled derivatives Adams integrators (phase 2). The complete update of high order derivatives has a form similar to: rn+1 = (s1(n) - s1(n+1)) P-1 u + P-1 A P rnthis method computes the (s1(n) - s1(n+1)) P-1 u part. Phase 1 of the update must already have been performed.
| |