shamrock.external.coala.generate_tabflux_tabintflux.compute_coagtabflux_k0_numba#

shamrock.external.coala.generate_tabflux_tabintflux.compute_coagtabflux_k0_numba(kernel, K0, Q, vecnodes, vecweights, nbins, massgrid, mat_coeffs_leg, tensor_tabflux_coag)#

Function to precompute array depending only on massgrid to evaluate the coagulation flux DG scheme with piecewise constant 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

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_tabflux_coag3D array (dim = (nbins,nbins,nbins)), type -> float

array to evaluate coagulation flux

progress : used for numba progress bar

Returns#

filled array tensor_tabflux_coag