Skip to content

Commit c12d557

Browse files
committed
cleanup
1 parent 1cac158 commit c12d557

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

examples/bomex.jl

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ using CloudMicrophysics.Microphysics0M: remove_precipitation
1313

1414
# Siebesma et al (2003) resolution!
1515
# DOI: https://doi.org/10.1175/1520-0469(2003)60<1201:ALESIS>2.0.CO;2
16-
Nx = Ny = 32 #64
17-
Nz = 35 #75
16+
Nx = Ny = 64
17+
Nz = 75
1818

1919
Lx = 6400
2020
Ly = 6400
@@ -41,7 +41,7 @@ FT = eltype(grid)
4141
q_bomex = AtmosphericProfilesLibrary.Bomex_q_tot(FT)
4242
u_bomex = AtmosphericProfilesLibrary.Bomex_u(FT)
4343

44-
p₀ = 101325 # Pa
44+
p₀ = 101500 # Pa
4545
θ₀ = 299.1 # K
4646
reference_constants = Breeze.Thermodynamics.ReferenceConstants(base_pressure=p₀, potential_temperature=θ₀)
4747
buoyancy = Breeze.MoistAirBuoyancy(; reference_constants) #, microphysics)
@@ -168,29 +168,11 @@ model = NonhydrostaticModel(; grid, advection, buoyancy, coriolis, closure,
168168
# of Siebesma et al 2003, 3rd paragraph
169169
θϵ = 0.1
170170
= 2.5e-5
171-
θᵢ(x, y, z) = θ_bomex(z) + θϵ * randn()
171+
θᵢ(x, y, z) = θ_bomex(z) + θϵ * randn() - 3
172172
qᵢ(x, y, z) = q_bomex(z) +* randn()
173173
uᵢ(x, y, z) = u_bomex(z)
174174
set!(model, θ=θᵢ, q=qᵢ, u=uᵢ)
175175

176-
#=
177-
fig = Figure()
178-
axθ = Axis(fig[1, 1])
179-
axq = Axis(fig[1, 2])
180-
axu = Axis(fig[1, 3])
181-
θavg = Field(Average(model.tracers.θ, dims=(1, 2)))
182-
qavg = Field(Average(model.tracers.q, dims=(1, 2)))
183-
uavg = Field(Average(model.velocities.u, dims=(1, 2)))
184-
lines!(axθ, θavg)
185-
lines!(axq, qavg)
186-
lines!(axu, uavg)
187-
xlims!(axθ, 298, 310)
188-
xlims!(axq, 2e-3, 18e-3)
189-
ylims!(axθ, 0, 2500)
190-
ylims!(axq, 0, 2500)
191-
ylims!(axu, 0, 2500)
192-
=#
193-
194176
simulation = Simulation(model; Δt=10, stop_time)
195177
conjure_time_step_wizard!(simulation, cfl=0.7)
196178

@@ -253,12 +235,6 @@ function progress(sim)
253235

254236
@info msg
255237

256-
lines!(axu, u_avg)
257-
lines!(axv, v_avg)
258-
lines!(axθ, θ_avg)
259-
lines!(axq, q_avg)
260-
display(fig)
261-
262238
return nothing
263239
end
264240

@@ -281,6 +257,7 @@ simulation.output_writers[:jld2] = ow
281257
@info "Running BOMEX on grid: \n $grid \n and using model: \n $model"
282258
run!(simulation)
283259

260+
#=
284261
if get(ENV, "CI", "false") == "false" # change values for CI
285262
wt = FieldTimeSeries("bomex.jld2", "w")
286263
θt = FieldTimeSeries("bomex.jld2", "θ")
@@ -342,4 +319,4 @@ if get(ENV, "CI", "false") == "false" # change values for CI
342319
n[] = nn
343320
end
344321
end
345-
322+
=#

0 commit comments

Comments
 (0)