IExternal ODESolverSolve Method
Computes the solution of the ordinary differential equations.
Definition
Namespace: DWSIM.Interfaces
Assembly: DWSIM.Interfaces (in DWSIM.Interfaces.dll) Version: 10.0.0.0
Assembly: DWSIM.Interfaces (in DWSIM.Interfaces.dll) Version: 10.0.0.0
C#
void Solve(
double[] y0,
double x0,
double deltax,
double xf,
Action<double, double[]> odesolution,
double tolerance
)VB
Sub Solve (
y0 As Double(),
x0 As Double,
deltax As Double,
xf As Double,
odesolution As Action(Of Double, Double()),
tolerance As Double
)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.