Package cnuphys.adaptiveSwim
Interface IAdaptiveAdvance
- All Known Implementing Classes:
ButcherAdvance
,RK4HalfStepAdvance
public interface IAdaptiveAdvance
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(double s, double[] u, double[] du, double h, IDerivative deriv, double[] uf, double eps, AdaptiveStepResult result) Advance the solution by one step of the independent variable.
-
Method Details
-
advance
void advance(double s, double[] u, double[] du, double h, IDerivative deriv, double[] uf, double eps, AdaptiveStepResult result) Advance the solution by one step of the independent variable.- Parameters:
s
- the current value of the independent variableu
- the current values of the state vectordu
- the current values of the derivative (before advance)h
- the current step sizederiv
- the function (interface) that can compute the derivatives. That is where the problem specificity resides .uf
- where the state vector at the next step will be stored (output)eps
- the overall tolerance (e.g., 1.0e-5) param result container for the new value of the independent variable and the new step size
-