Skip to content

Commit

Permalink
Fix moist bubble input file and enable in 3d
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarusz committed Nov 28, 2023
1 parent 0e540b4 commit 268236f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dynamics/spam/src/models/extrudedmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -5196,7 +5196,12 @@ struct MoistRisingBubble : public RisingBubble<false> {

static real YAKL_INLINE rhov_f(real x, real y, real z,
const ThermoPotential &thermo) {
real r = sqrt((x - xc) * (x - xc) + (z - bzc) * (z - bzc));
real r = (x - xc) * (x - xc) + (z - bzc) * (z - bzc);
if (ndims > 1) {
r += (y - yc) * (y - yc);
}
r = std::sqrt(r);

real rh = (r < rc) ? rh0 * 0.5_fp * (1._fp + cos(pi * r / rc)) : 0._fp;
real Th = isentropic_T(z, theta0, g, thermo);
real svp = saturation_vapor_pressure(Th);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
idealized : true
verbose : true
couple_wind : false

sim_steps : 500
sim_time : 500

# Number of cells to use
crm_nx : 100
Expand All @@ -27,7 +28,7 @@ dycore_out_prefix : test_dycore
out_freq : 50
stat_freq : 5

tstype: si
tstype: ssprk3

# Number of ensembles
nens : 1
Expand Down

0 comments on commit 268236f

Please sign in to comment.