Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d87b90d

Browse files
committedJul 23, 2020
Lid-driven cavity at Re=400
1 parent 8ec1534 commit d87b90d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
 

‎verification/lid_driven_cavity/lid_driven_cavity.jl

+4
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,7 @@ function print_progress(simulation)
8585

8686
return nothing
8787
end
88+
89+
# simulate_lid_driven_cavity(Re=100, end_time=25.0)
90+
# simulate_lid_driven_cavity(Re=400, end_time=50.0)
91+

‎verification/lid_driven_cavity/plot_lid_driven_cavity.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@
2424
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]
2525

2626
w_Ghia = {
27-
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]
27+
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],
28+
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]
2829
}
2930

3031
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]
3132

3233
ζ_Ghia = {
33-
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]
34+
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],
35+
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]
3436
}
3537

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

106-
Re = 100
108+
Re = 400
107109
ds = xr.open_dataset(f"lid_driven_cavity_Re{Re}.nc")
108110

109111
joblib.Parallel(n_jobs=-1)(
@@ -118,3 +120,4 @@ def plot_lid_driven_cavity_frame(Re, n):
118120
.overwrite_output()
119121
.run()
120122
)
123+

0 commit comments

Comments
 (0)
Please sign in to comment.