Contrib blockMeshDG

From OpenFOAMWiki
Revision as of 00:03, 17 May 2015 by Wyldckat (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Valid versions: OF Version 20x.png OF Version 21x.png OF Version 22.png

1 Short description

A patch to the blockMesh tool to enable double graded meshes, that is meshes which have a minimum or maximum cell spacing in the middle of an edge.

2 Usage

The utility works the same way as the standard blockMesh tool, but accepts negative grading coefficients in the blockMeshDict file.

For example, simpleGrading (1 -2 1) in blockMeshDict means the created mesh has cells two times larger in the center than those at the side.

The executable is called by this command:


Source of example and original code: blockMesh with double grading

3 Download

Get the most recent version here:

  • You can either use the Mercurial source code management utility (about Mercurial):
    hg clone
    cd blockmeshdg
  • Or download from ZIP:
    Which can be done directly from the command line:
    wget -O
    cd akidess-blockmeshdg-*
    chmod +x Allwmake
    find . -exec touch '{}' \;

4 History

--Akidess 13:42, 4 March 2012 (CET)