FEM2D_STOKES_INOUT is a FORTRAN90 library which supplies information defining a Stokes flow problem in the "inout" region. The "inout" region is a square region that is 1 unit wide and 1 unit high. A parabolic inflow is specified on the lower left, and a zero Neumann outflow is specified on the upper right.
To run the problem directly, you only need the user-supplied routines in inout.f90, the node data in nodes6.txt, and the element data in triangles6.txt.
You compile and link the solver with cavity.f90, using commands like:
gfortran fem2d_stokes.f90 inout.f90 mv a.out inoutand then run the program with the command
./inout 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_INOUT is available in a FORTRAN90 version.
FEM2D_STOKES, a FORTRAN90 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.
FEM2D_STOKES_CAVITY, a FORTRAN90 library which contains the user-supplied routines necessary to run fem2d_stokes on the "cavity" problem.
FEM2D_STOKES_CHANNEL, a FORTRAN90 library which contains the user-supplied routines necessary to run fem2d_stokes on the "channel" problem.
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.
You can go up one level to the FORTRAN90 source codes.