You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// timestep interval at which source will be applied
153
+
int supstp_src;
154
+
155
+
156
+
// --- aerosol relaxation stuff ---
157
+
// initial dry sizes of aerosol
158
+
// defined with a distribution
159
+
// uses shared_ptr to make opts_init copyable
160
+
typedef std::unordered_map<
161
+
real_t, // kappa
162
+
std::tuple<
163
+
std::shared_ptr<unary_function<real_t>>, // n(ln(rd)) @ STP; alternatively it's n(ln(rd)) independent of rhod if aerosol_independent_of_rhod=true
164
+
std::pair<real_t, real_t>, // kappa range of CCN considered to belong to this distribution, ranges of different members of the map need to be exclusive (TODO: add a check of this)
165
+
std::pair<real_t, real_t> // range of altitudes at which this relaxation acts
166
+
>
167
+
> rlx_dry_distros_t;
168
+
169
+
rlx_dry_distros_t rlx_dry_distros;
170
+
171
+
// number of bins into which the relaxation distro is divided
172
+
unsignedlonglong rlx_bins;
173
+
174
+
// number of SD created per bin
175
+
real_t rlx_sd_per_bin; // floating, because it gets divided by the number of GPUs per node * number of nodes
176
+
177
+
// timestep interval at which relaxation will be applied
178
+
int supstp_rlx;
179
+
180
+
// relaxation time scale [s]
181
+
real_t rlx_timescale;
182
+
183
+
// -- ctors ---
184
+
149
185
// ctor with defaults (C++03 compliant) ...
150
186
opts_init_t() :
151
187
nx(0), ny(0), nz(0),
@@ -158,20 +194,20 @@ namespace libcloudphxx
158
194
sd_const_multi(0),
159
195
dt(0),
160
196
sstp_cond(1), sstp_coal(1), sstp_chem(1),
161
-
supstp_src(1),
162
197
chem_switch(false), // chemical reactions turned off by default
163
198
sedi_switch(true), // sedimentation turned on by default
164
199
subs_switch(false), // subsidence turned off by default
165
200
coal_switch(true), // coalescence turned on by default
166
201
src_switch(false), // source turned off by default
202
+
rlx_switch(false),
167
203
exact_sstp_cond(false),
168
204
turb_cond_switch(false),
169
205
turb_adve_switch(false),
170
206
turb_coal_switch(false),
171
207
RH_max(.95), // value seggested in Lebo and Seinfeld 2011
172
208
chem_rho(0), // dry particle density //TODO add checking if the user gave a different value (np w init) (was 1.8e-3)
0 commit comments