Difference between revisions of "Contrib blockMeshDG"
From OpenFOAMWiki
(→Download: improved download zip instructions) |
(→Download: added missing instructions for building from zip) |
||
Line 27: | Line 27: | ||
wget http://blockmeshdg.googlecode.com/archive/tip.zip -O latest-blockmeshDG.zip | wget http://blockmeshdg.googlecode.com/archive/tip.zip -O latest-blockmeshDG.zip | ||
unzip latest-blockmeshDG.zip | unzip latest-blockmeshDG.zip | ||
+ | cd blockmeshDG-* | ||
+ | chmod +x Allwmake | ||
+ | find . -exec touch '{}' \; | ||
+ | ./Allwmake | ||
</pre> | </pre> | ||
Revision as of 10:00, 2 February 2013
Contents
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.
e.g. simpleGrading (1 -2 1) in blockMeshDict, means the mesh in central is 2 times larger than those in side.
The executable is called by the command "blockMeshDG".
Source of example and original code: blockMesh with double grading
3 Download
Get the most recent version here: http://code.google.com/p/blockmeshdg/
You can either use the Mercurial source code management utility (about Mercurial):
hg clone http://code.google.com/p/blockmeshdg/ cd blockmeshdg ./Allwmake
Or download from ZIP: latest-blockmeshDG.zip
wget http://blockmeshdg.googlecode.com/archive/tip.zip -O latest-blockmeshDG.zip unzip latest-blockmeshDG.zip cd blockmeshDG-* chmod +x Allwmake find . -exec touch '{}' \; ./Allwmake
4 History
--Akidess 13:42, 4 March 2012 (CET)