shamrock.external.coala.interface_coala_shamrock.coala_coag_frag_source_term_k0#
- shamrock.external.coala.interface_coala_shamrock.coala_coag_frag_source_term_k0(nbins, massgrid, rhodust, rhodust_eps, tensor_tabflux_coag, tensor_tabflux_frag_T1, tensor_tabflux_frag_T2, v_dust, threshold_vfrag)#
Function to compute the source for coagulation and fragmentation in continuity equation for piecewise constant approximation (see Lombart et al., 2021) Function for ballistic kernel with differential velocities dv Used to evaluate the source term, then hydro code applies time solver
/!You can relaxed, coagulation and fragmentation are ready to use
Parameters#
- nbinsscalar, type -> integer
number of dust bins
- massgrid1D array (dim = nbins+1), type -> float
grid of masses given borders value of mass bins
- rhodust1D array (dim = nbins), type -> float
dust density for each grain size
- rhodust_epsscalar, type -> float
threshold value for rhodust
- tensor_tabflux_coag3D array (dim = (nbins,nbins,nbins)), type -> float
array to evaluate coagulation term in 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
- v_dust1D array (dim = (nbins)), type -> float
array of the dust velocities (could also be delta_v in monofluid since it is a delta)
- threshold_vfragscalar, type -> float
threshold velocity value for fragmentation
Returns#
- S_coag_frag1D array (dim = nbins), type -> float
Source term for dust coagulation + fragmentation in continuity equation DG operator for piecewise constant approximation in each bins