The classes which are devoted to solve first order differential
equations should implement this interface. The problems which can
be handled should implement the FirstOrderDifferentialEquations interface.
FirstOrderFieldDifferentialEquations
| Modifier and Type | Method and Description |
|---|---|
| public void | addEventHandler(FieldEventHandler<T>
event handler handler, double maximal time interval between switching
function checks (this interval prevents missing sign changes in
case the integration steps becomes very large) maxCheckInterval, double convergence threshold in the event time search convergence, int upper limit of the iteration count in
the event time search events. maxIterationCount)Add an event handler to the integrator. |
| public void | addEventHandler(FieldEventHandler<T>
event handler handler, double maximal time interval between switching
function checks (this interval prevents missing sign changes in
case the integration steps becomes very large) maxCheckInterval, double convergence threshold in the event time search convergence, int upper limit of the iteration count in
the event time search events. maxIterationCount, BracketedRealFieldUnivariateSolver<T> solver to use to locate the event solver)Add an event handler to the integrator. |
| public void | addStepHandler(FieldStepHandler<T>
handler for the accepted steps handler)Add a step handler to this integrator. |
| public void | |
| public void | |
| public T | Returns: current signed value of the stepsizeGet the current signed value of the integration stepsize. |
| public FieldODEStateAndDerivative | Returns: current value of the state at step start time tiGet the current value of the step start time ti. |
| public int | Returns: number of evaluations of the differential equations functionGet the number of evaluations of the differential equations function. |
| public Collection | Returns: an unmodifiable collection of the added events handlersGet all the event handlers that have been added to the integrator. |
| public int | Returns: maximal number of functions evaluationsGet the maximal number of functions evaluations. |
| public String | |
| public Collection | Returns: an unmodifiable collection of the added events handlersGet all the step handlers that have been added to the integrator. |
| public FieldODEStateAndDerivative | Returns: final state, its time will be the same asfinalTime if
integration reached its target, but may be different if some org. stops it at some point.differential equations to integrate equations, FieldODEState<T> initial state (time, primary and secondary state vectors) initialState, T target time for the integration
(can be set to a value smaller than finalTime)t0 for backward integration)Integrate the differential equations up to the given time. |
| public void | setMaxEvaluations(int
maximal number of function evaluations (negative
values are silently converted to maximal integer value, thus representing
almost unlimited evaluations) maxEvaluations)Set the maximal number of differential equations function evaluations. |
| addEventHandler | back to summary |
|---|---|
| public void addEventHandler(FieldEventHandler<T> handler, double maxCheckInterval, double convergence, int maxIterationCount) Add an event handler to the integrator.
The default solver is a 5th order
| |
| addEventHandler | back to summary |
|---|---|
| public void addEventHandler(FieldEventHandler<T> handler, double maxCheckInterval, double convergence, int maxIterationCount, BracketedRealFieldUnivariateSolver<T> solver) Add an event handler to the integrator.
| |
| addStepHandler | back to summary |
|---|---|
| public void addStepHandler(FieldStepHandler<T> handler) 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() Remove all the event handlers that have been added to the integrator. | |
| clearStepHandlers | back to summary |
|---|---|
| public void clearStepHandlers() Remove all the step handlers that have been added to the integrator. | |
| getCurrentSignedStepsize | back to summary |
|---|---|
| public T getCurrentSignedStepsize() 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 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
| |
| getEvaluations | back to summary |
|---|---|
| public int getEvaluations() Get the number of evaluations of the differential equations function.
The number of evaluations corresponds to the last call to the
| |
| getEventHandlers | back to summary |
|---|---|
| public Collection Get all the event handlers that have been added to the integrator.
| |
| getMaxEvaluations | back to summary |
|---|---|
| public int getMaxEvaluations() Get the maximal number of functions evaluations.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name of the method.
| |
| getStepHandlers | back to summary |
|---|---|
| public Collection Get all the step handlers that have been added to the integrator.
| |
| integrate | back to summary |
|---|---|
| public FieldODEStateAndDerivative 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 (
| |
| setMaxEvaluations | back to summary |
|---|---|
| public void setMaxEvaluations(int maxEvaluations) 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.
| |