Skip to content

Commit

Permalink
Lid-driven cavity at Re=400
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ramadhan committed Jul 23, 2020
1 parent 8ec1534 commit d87b90d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions verification/lid_driven_cavity/lid_driven_cavity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ function print_progress(simulation)

return nothing
end

# simulate_lid_driven_cavity(Re=100, end_time=25.0)
# simulate_lid_driven_cavity(Re=400, end_time=50.0)

9 changes: 6 additions & 3 deletions verification/lid_driven_cavity/plot_lid_driven_cavity.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@
z_Ghia = [0.0000, 0.0625, 0.0703, 0.0781, 0.0938, 0.1563, 0.2266, 0.2344, 0.5000, 0.8047, 0.8594, 0.9063, 0.9453, 0.9531, 0.9609, 0.9688, 1.0000]

w_Ghia = {
100: [0.0000, 0.09233, 0.10091, 0.1089, 0.12317, 0.16077, 0.17507, 0.17527, 0.05454, -0.24533, -0.22445, -0.16914, -0.10313, -0.08864, -0.07391, -0.05906, 0.0000]
100: [0.0000, 0.09233, 0.10091, 0.10890, 0.12317, 0.16077, 0.17507, 0.17527, 0.05454, -0.24533, -0.22445, -0.16914, -0.10313, -0.08864, -0.07391, -0.05906, 0.0000],
400: [0.0000, 0.18360, 0.19713, 0.20920, 0.22965, 0.28124, 0.30203, 0.30174, 0.05186, -0.38598, -0.44993, -0.23827, -0.22847, -0.19254, -0.15663, -0.12146, 0.0000]
}

y_ζ_Ghia = [0.0000, 0.0625, 0.1250, 0.1875, 0.2500, 0.3125, 0.3750, 0.4375, 0.5000, 0.5625, 0.6250, 0.6875, 0.7500, 0.8125, 0.8750, 0.9375, 1.0000]

ζ_Ghia = {
100: [nan, 40.0110, 22.5378, 16.2862, 12.7844, 10.4199, 8.69628, 7.43218, 6.57451, 6.13973, 6.18946, 6.82674, 8.22110, 10.7414, 15.6591, 30.7923, nan]
100: [nan, 40.0110, 22.5378, 16.2862, 12.7844, 10.4199, 8.69628, 7.43218, 6.57451, 6.13973, 6.18946, 6.82674, 8.22110, 10.7414, 15.6591, 30.7923, nan],
400: [nan, 53.6863, 34.6351, 26.5825, 21.0985, 16.8900, 13.7040, 11.4537, 10.0545, 9.38889, 9.34599, 9.88979, 11.2018, 13.9068, 19.6859, 35.0773, nan]
}

def plot_lid_driven_cavity_frame(Re, n):
Expand Down Expand Up @@ -103,7 +105,7 @@ def plot_lid_driven_cavity_frame(Re, n):
plt.savefig(f"lid_driven_cavity_Re{Re}_{n:05d}.png")
plt.close("all")

Re = 100
Re = 400
ds = xr.open_dataset(f"lid_driven_cavity_Re{Re}.nc")

joblib.Parallel(n_jobs=-1)(
Expand All @@ -118,3 +120,4 @@ def plot_lid_driven_cavity_frame(Re, n):
.overwrite_output()
.run()
)

0 comments on commit d87b90d

Please sign in to comment.