shamrock.external.coala.interface_coala_shamrock.coala_precalc_tabflux_frag#
- shamrock.external.coala.interface_coala_shamrock.coala_precalc_tabflux_frag(K0, nbins, Q, massgrid, frac_mass_fragments, beta)#
Function to iterate coagulation solver to reach the time ndthydro x dthydro
Function for ballistic kernel with differential velocities dv
DG scheme k=0, piecewise constant approximation
Parameters#
- K0scalar, type -> float
constant value of the kernel function (used to adapt to code unit)
- nbinsscalar, type -> integer
number of dust bins
- Qscalar, type -> integer
number of points for Gauss-Legendre quadrature
- massgrid1D array (dim = nbins+1), type -> float
grid of masses given borders value of mass bins
- 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]
Returns#
- gij_init1D array (dim = nbins) or 2D array (dim = (nbins.kpol+1)), type -> float
initial components of g on the polynomial basis
- gij1D array (dim = nbins) or 2D array (dim = (nbins.kpol+1)), type -> float
evolved components of g on the polynomial basis
- time_coagscalar, type -> float
final time ndthydro x dthydro