org.apache.commons.math3.ode.nonstiff
Class HighamHall54FieldIntegrator<T extends RealFieldElement<T>>
- java.lang.Object
-
- org.apache.commons.math3.ode.AbstractFieldIntegrator<T>
-
- org.apache.commons.math3.ode.nonstiff.AdaptiveStepsizeFieldIntegrator<T>
-
- org.apache.commons.math3.ode.nonstiff.EmbeddedRungeKuttaFieldIntegrator<T>
-
- org.apache.commons.math3.ode.nonstiff.HighamHall54FieldIntegrator<T>
-
- Type Parameters:
T- the type of the field elements
- All Implemented Interfaces:
- FirstOrderFieldIntegrator<T>, FieldButcherArrayProvider<T>
public class HighamHall54FieldIntegrator<T extends RealFieldElement<T>> extends EmbeddedRungeKuttaFieldIntegrator<T>
This class implements the 5(4) Higham and Hall integrator for Ordinary Differential Equations.This integrator is an embedded Runge-Kutta integrator of order 5(4) used in local extrapolation mode (i.e. the solution is computed using the high order formula) with stepsize control (and automatic step initialization) and continuous output. This method uses 7 functions evaluations per step.
- Since:
- 3.6
-
-
Constructor Summary
Constructors Constructor and Description HighamHall54FieldIntegrator(Field<T> field, double minStep, double maxStep, double[] vecAbsoluteTolerance, double[] vecRelativeTolerance)Simple constructor.HighamHall54FieldIntegrator(Field<T> field, double minStep, double maxStep, double scalAbsoluteTolerance, double scalRelativeTolerance)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description T[][]getA()Get the internal weights from Butcher array (without the first empty row).T[]getB()Get the external weights for the high order method from Butcher array.T[]getC()Get the time steps from Butcher array (without the first zero).intgetOrder()Get the order of the method.-
Methods inherited from class org.apache.commons.math3.ode.nonstiff.EmbeddedRungeKuttaFieldIntegrator
getMaxGrowth, getMinReduction, getSafety, integrate, setMaxGrowth, setMinReduction, setSafety
-
Methods inherited from class org.apache.commons.math3.ode.nonstiff.AdaptiveStepsizeFieldIntegrator
getMaxStep, getMinStep, initializeStep, setInitialStepSize, setStepSizeControl, setStepSizeControl
-
Methods inherited from class org.apache.commons.math3.ode.AbstractFieldIntegrator
addEventHandler, addEventHandler, addStepHandler, clearEventHandlers, clearStepHandlers, computeDerivatives, getCurrentSignedStepsize, getCurrentStepStart, getEvaluations, getEventHandlers, getField, getMaxEvaluations, getName, getStepHandlers, setMaxEvaluations
-
-
-
-
Constructor Detail
-
HighamHall54FieldIntegrator
public HighamHall54FieldIntegrator(Field<T> field, double minStep, double maxStep, double scalAbsoluteTolerance, double scalRelativeTolerance)
Simple constructor. Build a fifth order Higham and Hall integrator with the given step bounds- Parameters:
field- field to which the time and state vector elements belongminStep- minimal step (sign is irrelevant, regardless of integration direction, forward or backward), the last step can be smaller than thismaxStep- maximal step (sign is irrelevant, regardless of integration direction, forward or backward), the last step can be smaller than thisscalAbsoluteTolerance- allowed absolute errorscalRelativeTolerance- allowed relative error
-
HighamHall54FieldIntegrator
public HighamHall54FieldIntegrator(Field<T> field, double minStep, double maxStep, double[] vecAbsoluteTolerance, double[] vecRelativeTolerance)
Simple constructor. Build a fifth order Higham and Hall integrator with the given step bounds- Parameters:
field- field to which the time and state vector elements belongminStep- minimal step (sign is irrelevant, regardless of integration direction, forward or backward), the last step can be smaller than thismaxStep- maximal step (sign is irrelevant, regardless of integration direction, forward or backward), the last step can be smaller than thisvecAbsoluteTolerance- allowed absolute errorvecRelativeTolerance- allowed relative error
-
-
Method Detail
-
getC
public T[] getC()
Get the time steps from Butcher array (without the first zero).- Returns:
- time steps from Butcher array (without the first zero
-
getA
public T[][] getA()
Get the internal weights from Butcher array (without the first empty row).- Returns:
- internal weights from Butcher array (without the first empty row)
-
getB
public T[] getB()
Get the external weights for the high order method from Butcher array.- Returns:
- external weights for the high order method from Butcher array
-
getOrder
public int getOrder()
Get the order of the method.- Specified by:
getOrderin classEmbeddedRungeKuttaFieldIntegrator<T extends RealFieldElement<T>>- Returns:
- order of the method
-
-
DMelt 3.0 © DataMelt by jWork.ORG