primary
Primary differential equation.
T
- the type of the field elementsOne typical use case is the computation of the Jacobian matrix for some ODE. In this case, the primary set of equations corresponds to the raw ODE, and we add to this set another bunch of secondary equations which represent the Jacobian matrix of the primary set.
We want the integrator to use only the primary set to estimate the
errors and hence the step sizes. It should not use the secondary
equations in this computation. The integrator
will
be able to know where the primary set ends and so where the secondary sets begin.
private List<FieldSecondaryEquations<T>>
private FieldEquationsMapper<T>
private final FirstOrderFieldDifferentialEquations<T>
int
addSecondaryEquations(FieldSecondaryEquations<T> secondary)
T[]
computeDerivatives(T t,
T[] y)
void
primary
- the primary set of differential equations to be integrated.secondary
- secondary equations setFieldODEState.getSecondaryState(int)
and
FieldODEStateAndDerivative.getSecondaryDerivative(int)
(beware index
0 corresponds to main state, additional states start at 1)t0
- value of the independent time variable at integration starty0
- array containing the value of the state vector at integration startfinalTime
- target time for the integrationMaxCountExceededException
- if the number of functions evaluations is exceededDimensionMismatchException
- if arrays dimensions do not match equations settingst
- current value of the independent time variabley
- array containing the current value of the complete state vectorMaxCountExceededException
- if the number of functions evaluations is exceededDimensionMismatchException
- if arrays dimensions do not match equations settings