shamrock.external.coala.compute_coag_frag.compute_coag_frag_k0_kdv#

shamrock.external.coala.compute_coag_frag.compute_coag_frag_k0_kdv(eps, coeff_CFL, nbins, massgrid, gij, tensor_tabflux_coag, tensor_tabflux_frag_T1, tensor_tabflux_frag_T2, dv, proba_coag, proba_frag, dthydro)#

Function to compute coagulation solver for 1 hydro time-step

DG scheme k=0, piecewise constant approximation

Function for ballistic kernel with differential velocities dv

Parameters#

epsscalar, type -> float

minimum value for mass distribution approximation gij

coeff_CFLscalar, type -> float

timestep coefficient for stability of the SSPRK order 3 scheme

nbinsscalar, type -> integer

number of dust bins

massgrid1D array (dim = nbins+1), type -> float

grid of masses given borders value of mass bins

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 flux

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

array of the differential velocity between grains

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

probability to have coagulation (depending on v_frag and dv)

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

probability to have fragmentation (depending on v_frag and dv)

dthydroscalar, type -> float

hydro timestep, used as timestep to reach for coagulation process

Returns#

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

evolved components of g on the polynomial basis after 1 hydro timestep

nsubscalar, type -> integer

number of subcycling coagulation timestep to reach dthydro

ndtscalar, type -> integer

number of hydro timestep, when coagulation CFL > dthydro