FEM2D_STOKES_CAVITY is a MATLAB library which defines the geometry and other data for the cavity problem. The cavity is square region that is 1 unit wide and 1 unit high. The tangential velocity is specified to be 1 along the top boundary, with a zero normal component. On all other parts of the boundary, the velocity is specified to be zero. The system can be solved with the fem2d_stokes program.
To run the problem, you only need the user-supplied routines and the user-supplied node data (nodes6.txt) and element data (triangles6.txt).
You can run the program with the MATLAB command
fem2d_stokes ( 'nodes6.txt', 'triangles6.txt' )
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
FEM2D_STOKES, a MATLAB program which solves the 2D incompressible Stokes equations in an arbitrary triangulated region. In order to run, it requires user-supplied routines that define problem data.
The user-supplied files needed to run the problem include:
The printed output from a run is:
The geometry is defined by sets of nodes and triangles. The velocities use the full set of nodes, and quadratic (6 node) triangles.
The pressures are associated with a subset of the nodes called "pressure nodes", and linear (3 node) triangles. Note that, in the order 3 triangulation, the nodes are renumbered, and do NOT inherit the labels used in the order 6 triangulation.
The pressures are a scalar quantity associated with the pressure nodes, the velocities are a vector quantity associated with the vector nodes.