Adams-Bashforth and
Adams-Moulton integrators.
| Modifier and Type | Field and Description |
|---|---|
| private final AdamsNordsieckTransformer | transformer
Transformer. |
| Access | Constructor and Description |
|---|---|
| public | AdamsIntegrator(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 | AdamsIntegrator(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 Array2DRowRealMatrix | initializeHighOrderDerivatives(final double
step size to use for scaling h, final double[] first steps times t, final double[][] first steps states y, final double[][] first steps derivatives yDot)Implements abstract org. Initialize the high order scaled derivatives at step start. |
| public abstract void | integrate(final ExpandableStatefulODE
complete set of differential equations to integrate equations, final double target time for the integration
(can be set to a value smaller than t)t0 for backward integration)Implements abstract org. Integrate a set of differential equations up to the given time. |
| public Array2DRowRealMatrix | 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 double[]
first order scaled derivatives at step start start, final double[] first order scaled derivatives at step end end, final Array2DRowRealMatrix 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 AdamsNordsieckTransformer transformer Transformer. | |
| AdamsIntegrator | back to summary |
|---|---|
| public AdamsIntegrator(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.
| |
| AdamsIntegrator | back to summary |
|---|---|
| public AdamsIntegrator(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 Array2DRowRealMatrix initializeHighOrderDerivatives(final double h, final double[] t, final double[][] y, final double[][] yDot) Implements abstract org. Doc from org. Initialize the high order scaled derivatives at step start.
| |
| integrate | back to summary |
|---|---|
| public abstract void integrate(final ExpandableStatefulODE equations, final double t) throws NumberIsTooSmallException, DimensionMismatchException, MaxCountExceededException, NoBracketingException Implements abstract org. Doc from org. Integrate a set of differential equations up to the given time. This method solves an Initial Value Problem (IVP). The set of differential equations is composed of a main set, which can be extended by some sets of secondary equations. The set of equations must be already set up with initial time and partial states. At integration completion, the final time and partial states will be available in the same object. Since this method stores some internal state variables made
available in its public interface during integration (
| |
| updateHighOrderDerivativesPhase1 | back to summary |
|---|---|
| public Array2DRowRealMatrix updateHighOrderDerivativesPhase1(final Array2DRowRealMatrix highOrder) 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 double[] start, final double[] end, final Array2DRowRealMatrix 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.
| |