> For the complete documentation index, see [llms.txt](https://docs.gasflow-mpi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gasflow-mpi.com/2.-tutorials/2.4.-lid-driven-cavity.md).

# 2.4. 2D Lid-driven Cavity Flow

{% hint style="info" %}
This tutorial illustrates the setup and solution of a two-dimensional incompressible laminar flow in a lid-driven cavity. The lid-driven cavity problem \[1] is an important fluid mechanical system serving as a benchmark for testing numerical methods and for studying fundamental aspects of incompressible flows in confined volumes which are driven by the tangential motion of a bounding wall. The lid-driven cavity problem has been used to test the GASFLOW code \[2].

\[1] U. Ghia, High-Re solutions for incompressible flows using the Navier-Stokes equations and a multigrid method, Journal of Computational Physics , 48, 387-411, (1982).

\[2] J. Xiao, W. Breitung, M. Kuznetsov, H. Zhang, J. R. Travis, R. Redlinger, T. Jordan, “GASFLOW-MPI: A new 3-D parallel all-speed CFD code for turbulent dispersion and combustion simulations: Part I: Models, verification and validation”, International Journal of Hydrogen Energy, March 2017.
{% endhint %}

1\) GASFLOW input file

{% file src="/files/tUDF0GfA95qh6VsqW6On" %}

2\) GASFLOW results files

{% file src="/files/C82hZW7w4JOMi0xcbuBX" %}

{% file src="/files/nyMA5WkRskh69UGpI253" %}

3\) Comparison to the numerical solutions

{% content-ref url="/pages/9sdbpArQDC8ihXNjdMQu" %}
[\[ED-FD 1\] Incompressible Laminar Flow in a Lid-driven Cavity](/5.-verification-and-validation/5.1.-fluid-dynamics/ed-fd-1-incompressible-laminar-flow-in-a-lid-driven-cavity.md)
{% endcontent-ref %}

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FLk5OQSJU7Fo7Uiuc7Vj2%2FTutorial_3_Page_01.png?alt=media&amp;token=f8222c90-cdef-4b29-a215-51cbd277a1a1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FOCDIQfb8Z0oaALOP0cVY%2FTutorial_3_Page_02.png?alt=media&amp;token=48f25318-20ea-4e39-b1e6-df402ce3125c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FmG1HEFZdDVmKEgYsz3Xm%2FTutorial_3_Page_03.png?alt=media&amp;token=0360f7bc-4949-4810-88da-f82aad6974f8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FiCGRWOnNzU1krUwQj6AQ%2FTutorial_3_Page_04.png?alt=media&amp;token=417101d8-99d5-42f5-94ff-96b9d98e2219" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FMLeZCoudkpugxLzCwcmq%2FTutorial_3_Page_05.png?alt=media&amp;token=85dffec8-842f-469b-af7c-4ed9b25801da" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2F1zqXamoIHTmLbRLH7yCQ%2FTutorial_3_Page_06.png?alt=media&amp;token=0a4d755b-27cb-43c7-b383-8721953dfc8c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FjBD9Iz22cBEuHog6diVQ%2FTutorial_3_Page_07.png?alt=media&amp;token=ae8bf89c-8417-437f-882e-c75d8fc75f2d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FDtgqS9V9yrcRoiJ5V44y%2FTutorial_3_Page_08.png?alt=media&amp;token=c9e53be6-6f31-4d48-b107-39fef6b5bfd4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FHe9sx5ZQtKMGrWXtIlvB%2FTutorial_3_Page_09.png?alt=media&amp;token=f3bfbf77-1177-49b4-94aa-616bfd03a70b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FF4WbrxNpDDjVGI1OeT28%2FTutorial_3_Page_10.png?alt=media&amp;token=bb2a09d0-ba92-465b-bcfb-4f82afe8fc41" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FRSHypjqiOMvtHQ8y5T0A%2FTutorial_3_Page_11.png?alt=media&amp;token=b0da2b8f-b894-4b45-9a79-3c0b5fa13014" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2F93KoDBSCecoDAt2B36N7%2FTutorial_3_Page_12.png?alt=media&amp;token=1d520f23-0de6-4e82-8755-188739c07635" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FpI5FvDPlKRgqcKbnC1vk%2FTutorial_3_Page_13.png?alt=media&amp;token=bc0ebf91-29c1-4879-8f9b-c3fd28c610e7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FAeyK9oMHSdR5UWaG8tuu%2FTutorial_3_Page_14.png?alt=media&amp;token=f309a8eb-c65c-4555-ad86-e705d66229b2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FpwKdeAn3dxWL7adrl9Sm%2FTutorial_3_Page_15.png?alt=media&amp;token=788c476f-a621-4810-8066-8869877b239a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FWQRs4pGq6syDB3RqVjJH%2FTutorial_3_Page_16.png?alt=media&amp;token=2bdd759a-5773-4452-9742-ed2f867975c7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FWI2Lm9oyK9YGGo3xjtym%2FTutorial_3_Page_17.png?alt=media&amp;token=2e1ee45c-761e-46fb-8f29-63691c39cc8f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2Fvwe8hU8c7YDAhpTEi1WN%2FTutorial_3_Page_18.png?alt=media&amp;token=cfe248ca-7e6d-4823-a60a-9617f3646014" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FCcJekUDXfDyRlZPxgJLb%2FTutorial_3_Page_19.png?alt=media&amp;token=b1ebd557-943e-47dc-85fb-1828e26a1345" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FkG6NVvYDTaRq3CJtUl8L%2FTutorial_3_Page_20.png?alt=media&amp;token=29ed411d-fd10-4b8c-b356-ff52754bca07" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FLy47p9fHHFFJ0nP58TU5%2FTutorial_3_Page_21.png?alt=media&amp;token=f07e685e-8a2e-44fe-9619-a3548d8a3065" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2F1X0XnIaw7oI1hi2sZmWj%2FTutorial_3_Page_22.png?alt=media&amp;token=7863d112-d3b0-4982-bb73-96fb895d4f0e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FpxEx9fj1PcHNvJCL3lHh%2FTutorial_3_Page_23.png?alt=media&amp;token=174082b5-a6b8-479b-84af-48810939bd99" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FPbVtsZWT3mlO9ISvuSGJ%2FTutorial_3_Page_24.png?alt=media&amp;token=fd1f2f8f-edc3-434c-975d-a0b7098e5789" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FdOp0rZq3LuI1MZ7OxFkW%2FTutorial_3_Page_25.png?alt=media&amp;token=c23012b4-e9ad-4391-92a9-12b5f6aaddf1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2F7JIizAUNf4izoJ1zDPBg%2FTutorial_3_Page_26.png?alt=media&amp;token=b53f07d9-f91a-4048-9e3d-d725ef530385" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FNQ8MztIjEzMc3jSdRjTH%2FTutorial_3_Page_27.png?alt=media&amp;token=ff776a80-fce6-4584-b544-c3084edba615" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FVHorYhXh9FzJJffupsOt%2FTutorial_3_Page_28.png?alt=media&amp;token=409a9fbd-4f72-46fe-ac21-bcabd5e8776f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FuEW6Bl22Li7jzv4U43O5%2FTutorial_3_Page_29.png?alt=media&amp;token=c18dc28d-42e1-4f8c-a4c0-1124878ae337" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2F3tbnzS2wr6neIZFFlHix%2FTutorial_3_Page_30.png?alt=media&amp;token=f14c0c8b-ef63-431a-b4c4-ba02ae19d8f4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FvYVSsAGLPD6essuWpiTS%2FTutorial_3_Page_31.png?alt=media&amp;token=b106653f-c8b7-4f27-b5db-9a1c23276199" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FDoWTwUmch3897J5PwT2h%2FTutorial_3_Page_32.png?alt=media&amp;token=71fdba7d-ee16-4d80-8a72-038a010a6295" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4265438985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdhqtzdFGgZTppLdxTCcJ%2Fuploads%2FRjNrcGbLhMqifk7RU78w%2FTutorial_3_Page_33.png?alt=media&amp;token=99e3991a-7bfa-4c21-8a5b-96c8514668d5" alt=""><figcaption></figcaption></figure>
