Click or drag to resize

IExternalODESolverInitializeODEs Method

Method that initializes the ODE to solve.

Namespace: DWSIM.Interfaces
Assembly: 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
)
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