NAVIER_STOKES_MESH2D
2D Meshes for Navier Stokes Problems


NAVIER_STOKES_MESH2D, MATLAB data files defining meshes for several 2D test problems involving the Navier Stokes equations for fluid flow, provided by Leo Rebholz.

We are interested in these meshes as useful tests for a procedure in which we are able to redo the related Navier Stokes calculations using FENICS.

As part of that task, we need to take the meshes associated with the MATLAB computation and translate them into a format acceptable to DOLFIN / FENICS. Our proposed mechanism for this is either to translate the files to the Gmsh msh format, and then use DOLFIN-CONVERT to convert that to DOLFIN XML, or else to translate the files directly into DOLFIN XML format ourselves.

The following files each contain a mesh, defined by a node coordinate list, a node index list for each element, and boundary nodes. The first line of the file lists the number of nodes, the number of elements, and the number of boundary segments.

Each node coordinate line lists the 3D coordinates of a node.

Each element line lists 3 node indices forming the element, plus an integer tag that seems to be 0 always.

Each boundary segment line lists two node indices that form a line segment along the boundary, plus an integer tag that probably is used to specify the boundary condition applied along that line.

Licensing:

The computer code and data files made available on this web page are distributed under the GNU LGPL license.

Languages:

NAVIER_STOKES_MESH2D is available in a MATLAB version.

Related Data and Programs:

DOLFIN, Python programs which are used with the DOLFIN library to set up and solve a wide variety of problems using the finite element method.

DOLFIN-CONVERT, a Python program which can convert mesh file from Gmsh, MEDIT, METIS or SCOTCH format to an XML format suitable for use by DOLFIN or FENICS, by Anders Logg.

DOLFIN_XML is a data directory which contains examples of XML files that describe 3D finite element meshes as used by DOLFIN and FENICS.

FENICS, programs which illustrate the use of a collection of free software with an extensive list of features for automated, efficient solution of differential equations.

GMSH, examples which illustrate the use of the Gmsh program, a 3D mesh generator for the finite element method (FEM).

NAVIER_STOKES_2D_EXACT, evaluates an exact solution to the incompressible time-dependent Navier-Stokes equations over an arbitrary domain in 2D.

navier_stokes_mesh2d_test

NAVIER_STOKES_MESH3D, MATLAB data files defining meshes for several 3D test problems involving the Navier Stokes equations for flow flow, provided by Leo Rebholz.

TRIANGULATION_TO_GMSH, a MATLAB program which reads a file of node coordinates and a file of elements defined by node indices, and creates a corresponding Gmsh mesh file.

Author:

Leo Rebholz

Reference:

  1. Abigail Bowers, Leo Rebholz, Aziz Takhirov, Catalin Trenchea,
    Improved accuracy in regularization models of incompressible flow via adaptive nonlinear filtering,
    International Journal for Numerical Methods in Fluids,
    Volume 70, Number 7, 2012, pages 805-828.

Source Code:

The following functions operate on the mesh data:

CYLINDER_2D is a mesh for 2D flow past a square cylinder, using 1649 nodes, 3078 elements, and 220 boundary nodes.

STEP_2D is a mesh for 2D flow past a forward and backward step, using 537 nodes, 960 elements, and 112 boundary nodes.


Last revised on 21 February 2019.