The project is intended to be run from a Linux-style terminal. On Windows, WSL is recommended.
bash scripts/build.shThis creates the executable:
bin/lid_cavity
Run this first after cloning the repository:
bash scripts/run_smoke_test.shThe smoke test uses a very small setup. It is only meant to check that the code compiles and writes output files.
bash scripts/run_single.shThis runs the same case shown in the README:
N = 128
Re = 1000
scheme = central
pressure solver = RBSOR
implementation = serial_cpp
This case is useful as a visual and validation example because it uses the refined grid and the faster pressure solver.
bash scripts/run_quick.shThe quick study is useful after editing the solver because it runs a reduced set of meshes and Reynolds numbers.
bash scripts/run_medium.shThe medium study includes more Reynolds-number coverage but avoids the largest mesh.
bash scripts/run_full.shThe full C++ study runs 36 cases:
3 meshes × 3 Reynolds numbers × 2 convection schemes × 2 pressure solvers × 1 serial C++ implementation
This can take several hours depending on the CPU.
After running one or more cases:
bash scripts/plot_results.shThe plotting script reads the CSV files in results/data/ and writes figures to results/figures/.
bash scripts/clean.shThis removes the compiled binary and generated CSV files.
results/data/ CSV outputs
results/figures/ generated figures
The repository keeps only the compact full-study summary and selected README figures. Full generated case files are ignored by Git because they can become large.