Function Karana::Integrators::createIntegrator(const IntegratorType&, size_t, size_t, ResidualsFunction, const Integrator::IntegratorOptions *)#
Defined in File Integrator.h
Function Documentation#
-
kc::ks_ptr<Integrator> Karana::Integrators::createIntegrator(const IntegratorType &integrator_type, size_t nstates, size_t nalgebraic, ResidualsFunction residuals_fn, const Integrator::IntegratorOptions *options = nullptr)#
Factory method for creating DAE Integrator instances.
- Parameters:
integrator_type – the type of integrator to create
nstates – the length of the states vector (continuous+algebraic)
nalgebraic – the number of algebraic values
residuals_fn – the residuals function
options – options for the integrator
- Returns:
a new DAE Integrator instance