IExternalODESolverSolve Method |
Computes the solution of the ordinary differential equations.
Namespace: DWSIM.InterfacesAssembly: DWSIM.Interfaces (in DWSIM.Interfaces.dll) Version: 8.8.1.0
Syntax void Solve(
double[] y0,
double x0,
double deltax,
double xf,
Action<double, double[]> odesolution,
double tolerance
)
Sub Solve (
y0 As Double(),
x0 As Double,
deltax As Double,
xf As Double,
odesolution As Action(Of Double, Double()),
tolerance As Double
)
Request Example
Parameters
- y0 Double
- A vector of size N containing the initial conditions. N is the number of differential equations.
- x0 Double
- The initial independent variable value.
- deltax Double
- The step for the interval of integration (x0, x0+deltax, x0+2*deltax,...,xf).
- xf Double
- The final independent variable value.
- odesolution ActionDouble, Double
- A delegate where to return the solution.
- tolerance Double
- Tolerance for solution.
See Also