shamrock.external.coala.interface_coala_shamrock.coala_frag_source_term_k0#
- shamrock.external.coala.interface_coala_shamrock.coala_frag_source_term_k0(nbins, massgrid, rhodust, rhodust_eps, tensor_tabflux_coag, tensor_tabflux_frag_T1, tensor_tabflux_frag_T2, v_dust)#
Function to compute the source for fragmentation in continuity equation for piecewise constant approximation (see Lombart et al., 2024) Function for ballistic kernel with differential velocities dv Used to evaluate the source term, then hydro code applies time solver
/!Only fragmentation
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)
Returns#
- S_frag1D array (dim = nbins), type -> float
Source term for dust coagulation in continuity equation DG operator for piecewise constant approximation in each bins