# Basics : Driven Cavity — Welcome to LS-DYNA Examples

Home » Knowledge Base » ICFD / Incompressible CFD » Basics Examples » Basics : Driven Cavity

This is the universally famous driven cavity case tested with the second order steady solver and for Re=1000.

## Animated Result

Fluid velocity fringes

## Keywords

```*KEYWORD
*TITLE
*DATABASE_BINARY_D3PLOT
*DEFINE_CURVE_TITLE
*ICFD_BOUNDARY_NONSLIP
*ICFD_BOUNDARY_PRESCRIBED_VEL
*ICFD_CONTROL_GENERAL
*ICFD_CONTROL_OUTPUT
*ICFD_MAT
*ICFD_PART
*ICFD_PART_VOL
*ICFD_SECTION
*INCLUDE
*MESH_SURFACE_ELEMENT
*MESH_SURFACE_NODE
*MESH_VOLUME
*PARAMETER
*END
```

## Reduced Input

```\$-----------------------------------------------------------------------------
\$
\$ Example provided by Iñaki (LSTC)
\$
\$ E-Mail: info@dynamore.de
\$ Web: http://www.dynamore.de
\$
\$ Copying for non-commercial usage allowed if
\$ copy bears this notice completely.
\$
\$X------------------------------------------------------------------------------
\$X
\$X 1. Run file as is.
\$X    Requires LS-DYNA MPP Dev 114223 (or higher) with double precision
\$X
\$X------------------------------------------------------------------------------
\$# UNITS: Dimensionless
\$X------------------------------------------------------------------------------
\$X
*KEYWORD
*TITLE
ICFD Driven Cavity
*INCLUDE
mesh.k
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
\$                                                                              \$
\$                             PARAMETERS                                       \$
\$                                                                              \$
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
*PARAMETER
I   It_max      2500
R  dt_plot       250
\$
\$--- Fluid
\$
Rrho_fluid         1
R mu_fluid     0.001
Rvel_fluid         1
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
\$                                                                              \$
\$                           ICFD CONTROL CARDS                                 \$
\$                                                                              \$
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
*ICFD_CONTROL_GENERAL
1         0         0
&It_max      1e-8      1e-8                   1         1         1         0
*ICFD_CONTROL_OUTPUT
\$#    msgl
4
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
\$                                                                              \$
\$                       ICFD PARTS/ SECTION/ MATERIAL                          \$
\$                                                                              \$
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
*ICFD_MAT
\$#     mid       flg        ro       vis
1         1&rho_fluid &mu_fluid
*ICFD_PART
\$#     pid     secid       mid
1         1         1
*ICFD_PART
\$#     pid     secid       mid
2         1         1
*ICFD_PART_VOL
\$#     pid     secid       mid
10         1         1
\$#   spid1     spid2
1         2
*ICFD_SECTION
\$#     sid
1
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
\$                                                                              \$
\$                                                                              \$
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
*ICFD_BOUNDARY_NONSLIP
\$#     pid
2
*ICFD_BOUNDARY_PRESCRIBED_VEL
\$#     pid       dof       vad      lcid        sf       vid     death     birth
1         1         1         1  1.000000         01.0000E+28     0.000
*DEFINE_CURVE_TITLE
Vel Inlet
\$#    lcid      sidr       sfa       sfo      offa      offo    dattyp
1                    &vel_fluid
\$#                a1                  o1
0.0                 1.0
10000.0                 1.0
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
\$                                                                              \$
\$                            ICFD MESH KEYWORDS                                \$
\$                                                                              \$
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
*MESH_VOLUME
\$#   volid
10
\$#    pid1      pid2
1         2
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
\$                                                                              \$
\$                             DATABASE (OUTPUT)                                \$
\$                                                                              \$
\$---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
*DATABASE_BINARY_D3PLOT
&dt_plot
*END
```