PySDM_examples.Ervens_and_Feingold_2012.settings

 1from PySDM.initialisation.sampling.spectral_sampling import Logarithmic
 2from PySDM.initialisation.spectra import Lognormal
 3from PySDM.physics import si
 4
 5
 6def sampled_ccn_diameter_number_concentration_spectrum(
 7    n_sd: int = 11, size_range: tuple = (0.02 * si.um, 2 * si.um)
 8):
 9    return Logarithmic(
10        spectrum=Lognormal(s_geom=1.4, m_mode=0.04 * si.um, norm_factor=100 / si.cm**3),
11        size_range=size_range,
12    ).sample(n_sd)
def sampled_ccn_diameter_number_concentration_spectrum(n_sd: int = 11, size_range: tuple = (2e-08, 2e-06)):
 7def sampled_ccn_diameter_number_concentration_spectrum(
 8    n_sd: int = 11, size_range: tuple = (0.02 * si.um, 2 * si.um)
 9):
10    return Logarithmic(
11        spectrum=Lognormal(s_geom=1.4, m_mode=0.04 * si.um, norm_factor=100 / si.cm**3),
12        size_range=size_range,
13    ).sample(n_sd)