IExternal ODESolverInitialize ODEs Method
Method that initializes the ODE to solve.
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 InitializeODEs(
Func<double, double[], double[]> odefunc,
int n,
double x0,
double[] y0
)VB
Sub InitializeODEs (
odefunc As Func(Of Double, Double(), Double()),
n As Integer,
x0 As Double,
y0 As Double()
)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.