-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
31 lines (28 loc) · 1.01 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import numpy as np
import libcloudphxx as libcl
# dictionary of simulation parameters
params = {
"real_t" : np.float64,
"sd_conc" : 40,#1024,
"spinup_rain" : 100000000, # number of timesteps during which sedimentation and coalescence are off
"spinup_smax" : 60*10,
"kappa" : .61,
"meanr" : .04e-6,
"gstdv" : 1.4,
"n_tot" : 50e6,
"n_bins": 34, # \__ from the TAU example file @ KiD-A website
"bin0_D_upper" : 3.125e-6, # /
# bins considered as cloud water (all below is aerosol, all above is rain)
"bins_qc_r20um" : np.arange(1, 12), # r=20 um threshold setting (actually D=39.7 um)
"bins_qc_r32um" : np.arange(1, 14), # r=32 um threshold setting (actually D=63.0 um)
"sstp_cond" : 1,#,10
"sstp_coal" : 1#,10
}
opts = libcl.lgrngn.opts_t()
opts.cond = True
opts.coal = True
opts.adve = True
opts.sedi = True
opts.chem = False
opts.RH_max = 44#1.005
opts.kernel = libcl.lgrngn.kernel_t.hall_davis_no_waals