University of Exeter
Browse

Implementation of a Modified Lid Driven Cavity in OpenFOAM

Download (1.26 MB)
journal contribution
posted on 2025-08-01, 14:26 authored by G Tabor
The standard lid-driven cavity test case is one of the most used validation cases in CFD. Whilst comparisons with experimental and particularly DNS simulations are possible, there is no analytical solution, and the case is ill-posed when considering the boundary conditions. A modified lid driven cavity (MLDC) case exists in the literature in which the lid velocity is non-uniform and which introduces a spatially varying body force, and for which there is a closed-form analytical solution to the Navier-Stokes equations which is a function of the Reynolds number. In this paper I present an implementation of the MLDC as a modification of the standard OpenFOAM case, using run time coding for the boundary conditions and fvOptions, and show how convergence to the solution is affected by numerical parameters ofsimpleFoam such as choice of matrix inversion. The existance of an analytical solution also allows the investigation of the relation between the solver residual and the true solution error.

History

Related Materials

Rights

© 2022 The Authors. This work is an open access article under the CC BY-SA 4.0 license

Notes

This is the final version. Available on open access from OpenCFD Ltd via the DOI in this record

Journal

OpenFOAM® Journal

Pagination

62-80

Publisher

OpenCFD Ltd

Version

  • Version of Record

Language

en

FCD date

2022-05-10T10:43:42Z

FOA date

2022-05-10T10:45:49Z

Citation

Vol. 2, pp. 62-80

Department

  • Engineering

Usage metrics

    University of Exeter

    Categories

    No categories selected

    Licence

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC