shamrock.external.coala.iterate_coag_frag.iterate_coag_frag_kdv#
- shamrock.external.coala.iterate_coag_frag.iterate_coag_frag_kdv(kernel, K0, nbins, kpol, dthydro, ndthydro, coeff_CFL, Q_intGQ, Q_L2_proj, eps_gij, eps_rhodust, massgrid, massbins, coeff_pl, bin_scut, dv, proba_coag, proba_frag, frac_mass_fragments, beta, dtg, rho_gas)#
Function to iterate coagulation + fragmentation solver to reach the time ndthydro x dthydro
Function for ballistic kernel with differential velocities dv
DG scheme k=0, piecewise constant approximation
Parameters#
- kernelscalar, type -> integer
select the collisional kernel function
- K0scalar, type -> float
constant value of the kernel function (used to adapt to code unit)
- nbinsscalar, type -> integer
number of dust bins
- kpolscalar, type -> integer
degree of polynomials for approximation
- dthydroscalar, type -> float
hydro timestep, used as timestep to reach for coagulation process
- ndthydroscalar, type -> integer
number of hydro timestep
- coeff_CFLscalar, type -> float
timestep coefficient for stability of the SSPRK order 3 scheme
- Q_intGQscalar, type -> integer
number of points for Gauss-Legendre quadrature for integrals to evaluate flux
- Q_L2_projscalar, type -> integer
number of points for Gauss-Legendre quadrature for integral in initial condition
- eps_gijscalar, type -> float
minimum value for mass distribution approximation gij
- eps_rhodustscalar, type -> float
minimum value for dust mass distribution rhodust
- massgrid1D array (dim = nbins+1), type -> float
grid of masses given borders value of mass bins
- massbins1D array (dim = nbins), type -> float
arithmetic mean value of massgrid for each mass bins
- coeff_plscalar, type -> float
power law for initial distribution in size
- bin_scutscalar, type -> integer
index massbins from which initial distribution is cut
- 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)
- 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]
- dtgscalar, type -> float
mass dust to gas ratio
- rho_gasscalar, type -> float
mass gas density
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_coag_fragscalar, type -> float
final time ndthydro x dthydro