Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2e0dc3c
WIP on Pi chamber case
pdziekan Apr 1, 2020
1631715
rename setup to ccn_distribution
pdziekan Apr 2, 2020
10345ec
add relaxed state and no ccn at init in pi chamber
pdziekan Apr 2, 2020
4922f12
Pi_chamber: use rigid bcond and side wall fixed values for 3d+2d
pdziekan Apr 3, 2020
b6ab3ec
velocity absorber at side walls
pdziekan Apr 6, 2020
71f75f5
pi chamber case: absorber only at wall
pdziekan Apr 8, 2020
b544cd8
pi chamber: rv at init for correct RH, not rv
pdziekan Apr 8, 2020
3920c2b
side wall const cal hack: new rv to get correct RH
pdziekan Apr 8, 2020
89334fd
side wall const cal hack: new rv to get correct RH
pdziekan Apr 8, 2020
388c8d0
Merge branch 'pi_chamber_like_Wojtek' of github.com:pdziekan/UWLCM in…
pdziekan Apr 8, 2020
7f710ed
pi chamber case: define vab coeff with a characteristic time
pdziekan Apr 9, 2020
8cd2fec
src fixes and hardcoded src opts
pdziekan Apr 10, 2020
1d462e2
bounding box of the source area
pdziekan Apr 10, 2020
9637dba
pi chamber case: open side walls
pdziekan Apr 14, 2020
8f27faa
slvr common rt params: bring back no ccn at init
pdziekan Apr 14, 2020
b7ddb90
source box: update following changes in libcloud that lowermost is in…
pdziekan Apr 15, 2020
0ca8fcd
pi chamber constant side wall rv: fix from 100%RH to 82%RH
pdziekan Apr 17, 2020
be4ed40
pi chamber source: add command line opts for injection rate and injec…
pdziekan Apr 17, 2020
b5e22a1
side wall RH 70% and output specific for pi hamber
pdziekan Apr 23, 2020
d89bd80
src boc in the middle of pi chamber
pdziekan Apr 27, 2020
8ea3cb7
supstp_src as a command line option
pdziekan Apr 27, 2020
cc014bb
Merge branch 'mpi_up_to_date' into pi_chamber_like_Wojtek
pdziekan Apr 27, 2020
fabb5ca
fix src box for MPI
pdziekan Apr 28, 2020
f0796de
outwet spec as in ICMW case
pdziekan Apr 28, 2020
1839a8d
Merge branch 'mpi_up_to_date' of github.com:pdziekan/UWLCM into pi_ch…
pdziekan May 26, 2020
8054c56
Merge branch 'master' into pi_chamber_like_Wojtek
pdziekan Jul 2, 2020
f3c82d6
Merge branch 'pi_chamber_like_Wojtek' of github.com:pdziekan/UWLCM in…
pdziekan Jul 2, 2020
8cab6c5
Merge branch 'master' into pi_chamber_like_Wojtek
pdziekan Jul 13, 2020
b6659d7
only requested output
pdziekan Jul 13, 2020
80cf6be
frequency for spectrun output
pdziekan Jul 13, 2020
87a899d
remove code for mpi src_x01 adjustemtn - its done by libcloud
pdziekan Jul 13, 2020
a3ede8c
aerosol src in whole domain
pdziekan Jan 22, 2021
a799f1b
record total changes of th and rv due to surface
pdziekan May 28, 2021
2070ec8
Revert "record total changes of th and rv due to surface"
pdziekan Jun 14, 2021
74eff52
Revert "Revert "record total changes of th and rv due to surface""
pdziekan Jun 14, 2021
398344f
record total changes of th and rv due to surface
pdziekan May 28, 2021
95cadf1
3D shmemy accounted for side wall in pi chamber
pdziekan Jun 14, 2021
ce71b37
Merge branch 'pi_chamber_like_Wojtek' into pi_chamber_like_Wojtek_src…
pdziekan Jun 14, 2021
fea4bf0
tot_th/rv_change_top/bot -> acc_mean...
pdziekan Jun 28, 2021
1beb5c1
th/rv top bot accumulated data: reset after saving. otherwise sum get…
pdziekan Jun 29, 2021
17ca111
side wall RH = 80%, to get 3% Ssat averaged over whole domain
pdziekan Jun 30, 2021
16866a1
Merge branch 'pi_chamber_like_Wojtek_src_in_whole_domain' of github.c…
pdziekan Jun 30, 2021
294da76
Merge branch 'master' into pi_chamber_like_Wojtek
pdziekan Dec 8, 2023
6c22887
Merge branch 'pi_chamber_like_Wojtek' into pi_chamber_like_Wojtek_src…
pdziekan Dec 8, 2023
a2ecaa0
ice src, diag
pdziekan Dec 22, 2023
e68ff5e
Merge branch 'master' of github.com:igfuw/UWLCM into pi_chamber_like_…
pdziekan Feb 28, 2024
fd75bfa
change droplet-aerosol threshold to 3.5um following changes in ICMW24…
pdziekan Feb 28, 2024
5cbe07c
Merge branch 'pi_chamber_like_Wojtek_src_in_whole_domain' into pi_cha…
pdziekan Feb 28, 2024
afe2480
separate supstp for ice and ccn sources
pdziekan Mar 18, 2024
9e026e8
pi chamber20/24: correct bconds
pdziekan Apr 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions include/UWLCM/output_bins.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

namespace
{
// return values are actually left efges of bins

// bin sizes for calc and plot
std::vector<quantity<si::length, setup::real_t> > bins_dry()
{
Expand All @@ -20,8 +22,13 @@ namespace
std::vector<quantity<si::length, setup::real_t> > ret;

// wet radius bins: .001 ... .01 ... 1 mm (30 bins in total)
for (int i = 0; i < 30; ++i)
ret.push_back(setup::real_t(1e-6 * pow(10, -3 + i * .2)) * si::metres);
//for (int i = 0; i < 30; ++i)
// ret.push_back(setup::real_t(1e-6 * pow(10, -3 + i * .2)) * si::metres);

// wet radius bins: from 0 um to 50 um, bin width of 0.2um
for (int i = 0; i < 251; ++i)
ret.push_back(setup::real_t(0 + i * 0.2e-6) * si::metres);

return ret;
}
};
10 changes: 5 additions & 5 deletions src/cases/Anelastic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace cases
using libcloudphxx::common::moist_air::R_d_over_c_pd;
using libcloudphxx::common::moist_air::c_pd;
using libcloudphxx::common::moist_air::R_d;
using libcloudphxx::common::const_cp::l_tri;
using libcloudphxx::common::const_cp::ls_tri;
using libcloudphxx::common::theta_std::p_1000;

assert(p_0 > 0. * si::pascals);
Expand All @@ -47,9 +47,9 @@ namespace cases
real_t rv = 461; // specific gas constant for vapor
real_t ee0 = 611.;
real_t a = R_d<real_t>() / rv / si::joules * si::kelvins * si::kilograms; // aka epsilon
real_t b = l_tri<real_t>() / si::joules * si::kilograms / rv / tt0;
real_t c = l_tri<real_t>() / c_pd<real_t>() / si::kelvins;
real_t d = l_tri<real_t>() / si::joules * si::kilograms / rv;
real_t b = ls_tri<real_t>() / si::joules * si::kilograms / rv / tt0;
real_t c = ls_tri<real_t>() / c_pd<real_t>() / si::kelvins;
real_t d = ls_tri<real_t>() / si::joules * si::kilograms / rv;
real_t f = R_d_over_c_pd<real_t>();

real_t lwp_env = 0;
Expand All @@ -66,7 +66,7 @@ namespace cases
real_t qvs = a * ees / (profs.p_e(k) - ees); // saturation vapor mixing ratio = R_d / R_v * ees / p_d
// calculate linearized condensation rate
real_t cf1 = thetme*thetme*thi*thi; // T^{-2}
cf1 *= c * d * profs.p_e(k) / (profs.p_e(k) - ees); // = l_tri^2 / (C_pd * R_v * T^2) * p/p_d
cf1 *= c * d * profs.p_e(k) / (profs.p_e(k) - ees); // = ls_tri^2 / (C_pd * R_v * T^2) * p/p_d
real_t delta = (r_t(k*dz) - qvs) / (1 + qvs * cf1); // how much supersaturated is the air (divided by sth)
if(delta < 0.) delta = 0.;
profs.rv_e(k) = r_t(k*dz) - delta;
Expand Down
4 changes: 2 additions & 2 deletions src/cases/CumulusCongestus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace cases
using libcloudphxx::common::moist_air::c_pd;
using libcloudphxx::common::moist_air::R_d;
using libcloudphxx::common::moist_air::R_v;
using libcloudphxx::common::const_cp::l_tri;
using libcloudphxx::common::const_cp::ls_tri;
using libcloudphxx::common::const_cp::p_vs;
using libcloudphxx::common::theta_std::p_1000;

Expand Down Expand Up @@ -141,7 +141,7 @@ namespace cases
using libcloudphxx::common::moist_air::R_d_over_c_pd;
using libcloudphxx::common::moist_air::c_pd;
using libcloudphxx::common::moist_air::R_d;
using libcloudphxx::common::const_cp::l_tri;
using libcloudphxx::common::const_cp::ls_tri;
using libcloudphxx::common::theta_std::p_1000;

parent_t::set_profs(profs, nz, user_params);
Expand Down
4 changes: 2 additions & 2 deletions src/cases/DYCOMS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ namespace cases
using libcloudphxx::common::moist_air::R_d_over_c_pd;
using libcloudphxx::common::moist_air::c_pd;
using libcloudphxx::common::moist_air::R_d;
using libcloudphxx::common::const_cp::l_tri;
using libcloudphxx::common::const_cp::ls_tri;
using libcloudphxx::common::theta_std::p_1000;

blitz::firstIndex k;
Expand Down Expand Up @@ -280,7 +280,7 @@ namespace cases
if(timestep == 0) // TODO: what if this function is not called at t=0? force such call
{
auto flux_value = RF == 1 ? 115. : 93.; // [W/m^2]
auto conv_fctr_lat = (libcloudphxx::common::const_cp::l_tri<real_t>() * si::kilograms / si::joules);
auto conv_fctr_lat = (libcloudphxx::common::const_cp::ls_tri<real_t>() * si::kilograms / si::joules);
surf_flux_lat = -flux_value / conv_fctr_lat; // [kg / (m^2 * s)]
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/cases/MoistThermalGrabowskiClark99.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace cases
using libcloudphxx::common::moist_air::c_pd;
using libcloudphxx::common::moist_air::R_d;
using libcloudphxx::common::moist_air::R_v;
using libcloudphxx::common::const_cp::l_tri;
using libcloudphxx::common::const_cp::ls_tri;
using libcloudphxx::common::const_cp::p_vs;
using libcloudphxx::common::theta_std::p_1000;

Expand Down Expand Up @@ -202,7 +202,7 @@ namespace cases
using libcloudphxx::common::moist_air::R_d_over_c_pd;
using libcloudphxx::common::moist_air::c_pd;
using libcloudphxx::common::moist_air::R_d;
using libcloudphxx::common::const_cp::l_tri;
using libcloudphxx::common::const_cp::ls_tri;
using libcloudphxx::common::theta_std::p_1000;
using setup::real_t;

Expand All @@ -219,9 +219,9 @@ namespace cases
const real_t gg = 9.81;
real_t rg = R_d<setup::real_t>() / si::joules * si::kelvins * si::kilograms;
setup::real_t a = R_d<setup::real_t>() / rv / si::joules * si::kelvins * si::kilograms;
// setup::real_t b = l_tri<setup::real_t>() / si::joules * si::kilograms / rv / tt0;
setup::real_t c = l_tri<setup::real_t>() / c_pd<setup::real_t>() / si::kelvins;
setup::real_t d = l_tri<setup::real_t>() / si::joules * si::kilograms / rv;
// setup::real_t b = ls_tri<setup::real_t>() / si::joules * si::kilograms / rv / tt0;
setup::real_t c = ls_tri<setup::real_t>() / c_pd<setup::real_t>() / si::kelvins;
setup::real_t d = ls_tri<setup::real_t>() / si::joules * si::kilograms / rv;
setup::real_t cap = R_d_over_c_pd<setup::real_t>();
real_t capi = 1./cap;

Expand Down
Loading