public interface ExtendedFirstOrderDifferentialEquations extends FirstOrderDifferentialEquations
This interface is a simple extension on the FirstOrderDifferentialEquations
that allows to identify which part
of a complete set of differential equations correspond to the main
set and which part correspond to the extension set.
One typical use case is the computation of Jacobians. The main
set of equations correspond to the raw ode, and we add to this set
another bunch of equations which represent the jacobians of the
main set. In that case, we want the integrator to use only
the main set to estimate the errors and hence the step sizes. It should
not use the additional equations in this computation. If the
complete ode implements this interface, the integrator
will be able to know where the main set ends and where the
extended set begins.
We consider that the main set always corresponds to the first equations and the extended set to the last equations.
FirstOrderDifferentialEquations
Modifier and Type | Method and Description |
---|---|
int |
getMainSetDimension()
Return the dimension of the main set of equations.
|
computeDerivatives, getDimension
int getMainSetDimension()
The main set of equations represent the first part of an ODE state. The error estimations and adaptive step size computation should be done on this first part only, not on the final part of the state which represent an extension set of equations which are considered secondary.
total dimension
Copyright © 2010 - 2020 Adobe. All Rights Reserved