IExternalODESolverInitializeODEs Method |
Method that initializes the ODE to solve.
Namespace: DWSIM.InterfacesAssembly: DWSIM.Interfaces (in DWSIM.Interfaces.dll) Version: 8.8.1.0
Syntax void InitializeODEs(
Func<double, double[], double[]> odefunc,
int n,
double x0,
double[] y0
)
Sub InitializeODEs (
odefunc As Func(Of Double, Double(), Double()),
n As Integer,
x0 As Double,
y0 As Double()
)
Request Example
Parameters
- odefunc FuncDouble, Double, Double
- A function that evaluates the right side of the differential equations.
- n Int32
- The number of differential equations.
- x0 Double
- The initial value for the independent variable.
- y0 Double
- A vector of size N containing the initial conditions. N is the number of differential equations.
See Also