| Modifier and Type | Field and Description |
|---|---|
| private static final double | DEFAULT_FUNCTION_VALUE_ACCURACY
Default function value accuracy. |
| private static final double | DEFAULT_RELATIVE_ACCURACY
Default relative accuracy. |
| private transient FieldExpandableODE | equations
Differential equations to integrate. |
| private IntegerSequence. | evaluations
Counter for number of evaluations. |
| private Collection | eventsStates
Events states. |
| private final Field | field
Field to which the time and state vector elements belong. |
| private boolean | isLastStep
Indicator for last step. |
| private final String | name
Name of the method. |
| private boolean | resetOccurred
Indicator that a state or derivative reset was triggered by some event. |
| private boolean | statesInitialized
Initialization indicator of events states. |
| private Collection | stepHandlers
Step handler. |
| private T | stepSize
Current stepsize. |
| private FieldODEStateAndDerivative | stepStart
Current step start. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractFieldIntegrator(final Field<T>
field to which the time and state vector elements belong field, final String name of the method name)Build an instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected FieldODEStateAndDerivative | Returns: state at end of stepstep interpolator interpolator, final T final integration time tEnd)Accept a step, triggering events and step handlers. |
| public void | addEventHandler(final FieldEventHandler<T>
event handler handler, final double maximal time interval between switching
function checks (this interval prevents missing sign changes in
case the integration steps becomes very large) maxCheckInterval, final double convergence threshold in the event time search convergence, final int upper limit of the iteration count in
the event time search events. maxIterationCount)Implements org. Add an event handler to the integrator. |
| public void | addEventHandler(final FieldEventHandler<T>
event handler handler, final double maximal time interval between switching
function checks (this interval prevents missing sign changes in
case the integration steps becomes very large) maxCheckInterval, final double convergence threshold in the event time search convergence, final int upper limit of the iteration count in
the event time search events. maxIterationCount, final BracketedRealFieldUnivariateSolver<T> solver to use to locate the event solver)Implements org. Add an event handler to the integrator. |
| public void | addStepHandler(final FieldStepHandler<T>
handler for the accepted steps handler)Implements org. Add a step handler to this integrator. |
| public void | clearEventHandlers()
Implements org. Remove all the event handlers that have been added to the integrator. |
| public void | clearStepHandlers()
Implements org. Remove all the step handlers that have been added to the integrator. |
| public T[] | Returns: state completed with derivativescurrent value of the independent time variable t, final T[] array containing the current value of the state vector y)Compute the derivatives and check the number of evaluations. |
| public T | getCurrentSignedStepsize()
Implements org. Get the current signed value of the integration stepsize. |
| public FieldODEStateAndDerivative | getCurrentStepStart()
Implements org. Get the current value of the step start time ti. |
| protected FieldExpandableODE | Returns: differential equations to integrateGet the differential equations to integrate. |
| public int | getEvaluations()
Implements org. Get the number of evaluations of the differential equations function. |
| protected IntegerSequence. | |
| public Collection | getEventHandlers()
Implements org. Get all the event handlers that have been added to the integrator. |
| public Field | Returns: field to which state vector elements belongGet the field to which state vector elements belong. |
| public int | getMaxEvaluations()
Implements org. Get the maximal number of functions evaluations. |
| public String | getName()
Implements org. Get the name of the method. |
| public Collection | getStepHandlers()
Implements org. Get all the step handlers that have been added to the integrator. |
| protected T | |
| protected FieldODEStateAndDerivative | |
| protected FieldODEStateAndDerivative | Returns: initial state with derivatives addedequations to integrate eqn, final T start value of the independent time variable t0, final T[] array containing the start value of the state vector y0, final T target time for the integration t)Prepare the start of an integration. |
| protected boolean | |
| protected boolean | Returns: true if a reset occurred while last step was acceptedCheck if a reset occurred while last step was accepted. |
| protected void | sanityChecks(final FieldODEState<T>
set of differential equations eqn, final T target time for the integration t)Check the integration span. |
| protected void | |
| public void | setMaxEvaluations(int
maximal number of function evaluations (negative
values are silently converted to maximal integer value, thus representing
almost unlimited evaluations) maxEvaluations)Implements org. Set the maximal number of differential equations function evaluations. |
| protected void | setStateInitialized(final boolean
new value for the flag stateInitialized)Set the stateInitialized flag. |
| protected void | |
| protected void |
| DEFAULT_FUNCTION_VALUE_ACCURACY | back to summary |
|---|---|
| private static final double DEFAULT_FUNCTION_VALUE_ACCURACY Default function value accuracy. | |
| DEFAULT_RELATIVE_ACCURACY | back to summary |
|---|---|
| private static final double DEFAULT_RELATIVE_ACCURACY Default relative accuracy. | |
| equations | back to summary |
|---|---|
| private transient FieldExpandableODE<T> equations Differential equations to integrate. | |
| evaluations | back to summary |
|---|---|
| private IntegerSequence. Counter for number of evaluations. | |
| eventsStates | back to summary |
|---|---|
| private Collection<FieldEventState<T>> eventsStates Events states. | |
| field | back to summary |
|---|---|
| private final Field<T> field Field to which the time and state vector elements belong. | |
| isLastStep | back to summary |
|---|---|
| private boolean isLastStep Indicator for last step. | |
| name | back to summary |
|---|---|
| private final String name Name of the method. | |
| resetOccurred | back to summary |
|---|---|
| private boolean resetOccurred Indicator that a state or derivative reset was triggered by some event. | |
| statesInitialized | back to summary |
|---|---|
| private boolean statesInitialized Initialization indicator of events states. | |
| stepHandlers | back to summary |
|---|---|
| private Collection<FieldStepHandler<T>> stepHandlers Step handler. | |
| stepSize | back to summary |
|---|---|
| private T stepSize Current stepsize. | |
| stepStart | back to summary |
|---|---|
| private FieldODEStateAndDerivative<T> stepStart Current step start. | |
| AbstractFieldIntegrator | back to summary |
|---|---|
| protected AbstractFieldIntegrator(final Field<T> field, final String name) Build an instance. | |
| acceptStep | back to summary |
|---|---|
| protected FieldODEStateAndDerivative Accept a step, triggering events and step handlers.
| |
| addEventHandler | back to summary |
|---|---|
| public void addEventHandler(final FieldEventHandler<T> handler, final double maxCheckInterval, final double convergence, final int maxIterationCount) Implements org. Doc from org. Add an event handler to the integrator.
The default solver is a 5th order
| |
| addEventHandler | back to summary |
|---|---|
| public void addEventHandler(final FieldEventHandler<T> handler, final double maxCheckInterval, final double convergence, final int maxIterationCount, final BracketedRealFieldUnivariateSolver<T> solver) Implements org. Doc from org. Add an event handler to the integrator.
| |
| addStepHandler | back to summary |
|---|---|
| public void addStepHandler(final FieldStepHandler<T> handler) Implements org. Doc from org. Add a step handler to this integrator. The handler will be called by the integrator for each accepted step.
| |
| clearEventHandlers | back to summary |
|---|---|
| public void clearEventHandlers() Implements org. Doc from org. Remove all the event handlers that have been added to the integrator. | |
| clearStepHandlers | back to summary |
|---|---|
| public void clearStepHandlers() Implements org. Doc from org. Remove all the step handlers that have been added to the integrator. | |
| computeDerivatives | back to summary |
|---|---|
| public T[] computeDerivatives(final T t, final T[] y) throws DimensionMismatchException, MaxCountExceededException, NullPointerException Compute the derivatives and check the number of evaluations.
| |
| getCurrentSignedStepsize | back to summary |
|---|---|
| public T getCurrentSignedStepsize() Implements org. Doc from org. Get the current signed value of the integration stepsize. This method can be called during integration (typically by
the object implementing the The result is undefined if the method is called outside of
calls to
| |
| getCurrentStepStart | back to summary |
|---|---|
| public FieldODEStateAndDerivative Implements org. Doc from org. Get the current value of the step start time ti. This method can be called during integration (typically by
the object implementing the The result is undefined if the method is called outside of
calls to
| |
| getEquations | back to summary |
|---|---|
| protected FieldExpandableODE Get the differential equations to integrate.
| |
| getEvaluations | back to summary |
|---|---|
| public int getEvaluations() Implements org. Doc from org. Get the number of evaluations of the differential equations function.
The number of evaluations corresponds to the last call to the
| |
| getEvaluationsCounter | back to summary |
|---|---|
| protected IntegerSequence. Get the evaluations counter.
| |
| getEventHandlers | back to summary |
|---|---|
| public Collection Implements org. Doc from org. Get all the event handlers that have been added to the integrator.
| |
| getField | back to summary |
|---|---|
| public Field Get the field to which state vector elements belong.
| |
| getMaxEvaluations | back to summary |
|---|---|
| public int getMaxEvaluations() Implements org. Doc from org. Get the maximal number of functions evaluations.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name of the method.
| |
| getStepHandlers | back to summary |
|---|---|
| public Collection Implements org. Doc from org. Get all the step handlers that have been added to the integrator.
| |
| getStepSize | back to summary |
|---|---|
| protected T getStepSize() Get the current step size.
| |
| getStepStart | back to summary |
|---|---|
| protected FieldODEStateAndDerivative Getcurrent step start.
| |
| initIntegration | back to summary |
|---|---|
| protected FieldODEStateAndDerivative Prepare the start of an integration.
| |
| isLastStep | back to summary |
|---|---|
| protected boolean isLastStep() Check if this step is the last one.
| |
| resetOccurred | back to summary |
|---|---|
| protected boolean resetOccurred() Check if a reset occurred while last step was accepted.
| |
| sanityChecks | back to summary |
|---|---|
| protected void sanityChecks(final FieldODEState<T> eqn, final T t) throws NumberIsTooSmallException, DimensionMismatchException Check the integration span.
| |
| setIsLastStep | back to summary |
|---|---|
| protected void setIsLastStep(final boolean isLastStep) Set the last state flag.
| |
| setMaxEvaluations | back to summary |
|---|---|
| public void setMaxEvaluations(int maxEvaluations) Implements org. Doc from org. Set the maximal number of differential equations function evaluations. The purpose of this method is to avoid infinite loops which can occur for example when stringent error constraints are set or when lots of discrete events are triggered, thus leading to many rejected steps.
| |
| setStateInitialized | back to summary |
|---|---|
| protected void setStateInitialized(final boolean stateInitialized) Set the stateInitialized flag. This method must be called by integrators with the value
| |
| setStepSize | back to summary |
|---|---|
| protected void setStepSize(final T stepSize) Set the current step size.
| |
| setStepStart | back to summary |
|---|---|
| protected void setStepStart(final FieldODEStateAndDerivative<T> stepStart) Set current step start.
| |