shamrock.external.coala.L2_proj.L2projDL#
- shamrock.external.coala.L2_proj.L2projDL(eps, nbins, kpol, massgrid, massbins, Q, vecnodes, vecweights)#
Function to compute the initial gij coefficient from the dimensionless initial function g(x)=x*exp(-x)
DG scheme k>0, piecewise polynomial approximation
Parameters#
- epsscalar, type -> float
minimum value for mass distribution approximation gij
- nbinsscalar, type -> integer
number of dust bins
- kpolscalar, type -> integer
degree of polynomials for approximation
- 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
- Qscalar, type -> integer
number of points for Gauss-Legendre quadrature
- vecnodes1D array (dim = Q), type -> float
nodes of the Legendre polynomials
- vecweights1D array (dim = Q), type -> float
weights coefficients for the Gauss-Legendre polynomials
Returns#
- gij2D array (dim = (nbins,kpol+1)), type -> float
initial components of g on the polynomial basis