shamrock.external.coala.generate_tabflux_tabintflux.compute_coagtabintflux_numba#
- shamrock.external.coala.generate_tabflux_tabintflux.compute_coagtabintflux_numba(kernel, K0, Q, vecnodes, vecweights, nbins, kpol, massgrid, mat_coeffs_leg, tensor_tabintflux_coag)#
Function to precompute array depending only on massgrid to evaluate the term including the integral of coagulation flux DG scheme with piecewise polynomial approximation Numba formalism
Parameters#
- kernelscalar, type -> integer
select the collisional kernel function
- K0scalar, type -> float
constant value of the kernel function (used to adapt to code unit)
- Qscalar, type -> integer
number of points for Gauss-Legendre quadrature
- vecnodes1D array (dim = Q), type -> float
nodes of the Legendre polynomials
- vecweights1D array (dim = Q), type -> float
weights coefficients for the Gauss-Legendre polynomials
- nbinsscalar, type -> integer
number of dust bins
- kpolscalar, type -> integer
degree of polynomials for approximation
- massgrid1D array (dim = nbins+1), type -> float
grid of masses given borders value of mass bins
- mat_coeffs_leg2D array (dmin = (kpol+1,kpol+1)), type -> float
array containing on each line Legendre polynomial coefficients from degree 0 to kpol inclusive on each line coefficients are ordered from low to high orders
- tensor_tabintflux_coag6D array (dim = (nbins,kpol+1,nbins,nbins,kpol+1,kpol+1)), type -> float
array to evaluate the term including the integral of the coagulation flux
progress : used for numba progress bar
Returns#
filled array tensor_tabintflux_coag