shamrock.external.coala.generate_tabflux_tabintflux.compute_fragtabflux_k0_numba#

shamrock.external.coala.generate_tabflux_tabintflux.compute_fragtabflux_k0_numba(kernel, K0, Q, vecnodes, vecweights, nbins, massgrid, mat_coeffs_leg, frac_mass_fragments, beta, tensor_tabflux_frag_T1, tensor_tabflux_frag_T2)#

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

frac_mass_fragmentsscalar, type -> float

mass fraction of total mass (u+v) represented by fragments, m_frag = frac_mass_fragments*(u+v)

betascalar, type -> float

coefficient for power law fragment distribution in mass range [xmin,mfrag]

tensor_tabflux_frag_T13D array (dim = (nbins,nbins,nbins)), type -> float

array to evaluate the term 1 for fragmentation flux

tensor_tabflux_frag_T23D array (dim = (nbins,nbins,nbins)), type -> float

array to evaluate the term 2 for fragmentation flux

Returns#

filled arrays tensor_tabflux_frag_T1 and tensor_tabflux_frag_T2