sarkas.utilities.maths.fast_integral_loop
sarkas.utilities.maths.fast_integral_loop#
- sarkas.utilities.maths.fast_integral_loop(time, integrand)[source]#
Numba’d function to compute the following integral with a varying upper limit
\[I(\tau) = \int_0^{\tau} f(t) dt\]It uses
numpy.trapz(). This function is used in the calculation of the transport coefficients.- Parameters
time (numpy.ndarray) – Domain of integration
integrand (numpy.ndarray) – Integrand.
- Returns
integral (numpy.ndarray) – Integral with increasing upper limit. Shape = (time.len()).