Cavity flow

OpenFOAM 4.x

Case directory



We calculate the flow of a system where the upper wall "movingWall" is moving in parallel at 1 m/s and the other walls "fixedWalls" are stationary from 0 sec to 10 sec. There is no inflow or outflow of fluid, and the calculation is performed as a two-dimensional problem with a single mesh in the z-direction.

Model geometry Model geometry

The standard k-ε model is used for the turbulence model.

The meshes are as follows.

Mesh Meshes

The calculation result is as follows.

Flow velocity (U)
Flow velocity at final time (U) Flow velocity at final time (U)
Pressure at final time (p) Pressure at final time (p)

We can see that a vortex is being generated.


cp -r $FOAM_TUTORIALS/incompressible/pisoFoam/ras/cavity cavity
cd cavity



Calculation time

5.5 seconds *Single, Inter(R) Core(TM) i7-2600 CPU @ 3.40GHz 3.40GHz