astromugs.dust.CustomDistrib#
- class astromugs.dust.CustomDistrib(rsingle=0.1, rho_m=2.5, units='microns', filename='dust_sizes.inp')[source]#
- __init__(rsingle=0.1, rho_m=2.5, units='microns', filename='dust_sizes.inp')[source]#
The argument ‘units’ represents the size units given in the file. It can be microns, mm, cm, or m. The file to read must be, and only be, in the form of a simple column, from smallest to largest size. ——-
Methods
__init__([rsingle, rho_m, units, filename])The argument 'units' represents the size units given in the file.
grainmass()Create an array with masses of a single grain for each grain population.
sizes()Create an array with grain sizes from a given file. Returns the list of sizes. Units: microns ------- Numpy array (sizes). len(array) = (nb_sizes).