Skip to content

Commit d9472d3

Browse files
author
maruthinh
committed
update Readme.md
1 parent b0bd1f8 commit d9472d3

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ To run the code
55
```
66
python3.8 lid_driven_cavity.py
77
```
8-
Velocity contour plot obtained from the solver.
98

10-
Simulation is carried out with 64 x 64 grid points.
9+
**Sample results**
10+
11+
*Simulation parameters*
12+
- Reynolds number: 100
13+
- Mach number: 0.1
14+
- Number of grid points: 64 x 64
15+
16+
Velocity contour plot obtained from the solver.
1117

1218
Solution has converged to 1e-10
1319

lid_driven_cavity.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@
1313
tot_nx = nx + ghost_x
1414
tot_ny = ny + ghost_y
1515
ndim = 2
16+
17+
#Simulation parameters
18+
Re=100
19+
Mach=0.1
20+
ref_len=1.0
21+
res=ref_len/nx
22+
1623
model = D2Q9()
17-
sim_params = SimParams(mach=0.1, reynolds_num=100, ref_len=1.0, res=0.02)
24+
sim_params = SimParams(mach=Mach, reynolds_num=Re, ref_len=ref_len, res=res)
1825
q = model.q
1926

2027
rho_ini = 1.0

0 commit comments

Comments
 (0)