OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
OdeSolver.cpp File Reference

RK45 Cash-Karp ODE integrator — numerically identical to legacy. More...

#include "OdeSolver.hpp"
#include <cmath>
#include <algorithm>
#include <vector>
Include dependency graph for OdeSolver.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::ode
 

Functions

int openswmm::ode::integrate (double *y, int n, double x1, double x2, double eps, double h1, const DerivFunc &derivs)
 Integrate an ODE system from x1 to x2 using RK45 Cash-Karp.
 
int openswmm::ode::integrate_batch_2eq (double *y0, double *y1, int n_sys, double x1, double x2, double eps, double h1, const BatchDerivFunc &derivs)
 

Detailed Description

RK45 Cash-Karp ODE integrator — numerically identical to legacy.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License