shamrock.external.coala.generate_flux_intflux.compute_flux_frag_k0#

shamrock.external.coala.generate_flux_intflux.compute_flux_frag_k0(gij, tensor_tabflux_coag, tensor_tabflux_frag_T1, tensor_tabflux_frag_T2)#

Function to compute the approximation of the fragmentation flux with DG scheme k=0, for simple collision kernels

Frag flux is calculated from the expression (similar to coag) dg/dt + dF/dm = 0 -> frag flux is defined from small to large masses -> frag flux is defined on the right boundary of bin j, i.e. flux(j) ~ F(m_{j+1/2})

Parameters#

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

components of g on the polynomial basis

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

array to evaluate coagulation term in the fragmentation flux

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#

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

approximation of the fragmentation flux at each bin