Difference between revisions of "Contrib blockMeshDG"

From OpenFOAMWiki
(Confirmation given at the forum of successful usage on OpenFOAM 2.2.0, post #45)
(Download: structured the build options similarly to Contrib_foamCalcEx)
Line 16: Line 16:
 
Get the most recent version here: http://code.google.com/p/blockmeshdg/
 
Get the most recent version here: http://code.google.com/p/blockmeshdg/
  
You can either use the Mercurial source code management utility ([http://mercurial.selenic.com/ about Mercurial]):
+
<ul><li>You can either use the Mercurial source code management utility ([http://mercurial.selenic.com/ about Mercurial]):
 
<pre>
 
<pre>
 
hg clone http://code.google.com/p/blockmeshdg/
 
hg clone http://code.google.com/p/blockmeshdg/
Line 22: Line 22:
 
./Allwmake
 
./Allwmake
 
</pre>
 
</pre>
 
+
</li>
Or download from ZIP: [http://blockmeshdg.googlecode.com/archive/tip.zip latest-blockmeshDG.zip]
+
<li>Or download from ZIP: [http://blockmeshdg.googlecode.com/archive/tip.zip latest-blockmeshDG.zip]
 
+
<br>
 
Which can be done directly from the command line:
 
Which can be done directly from the command line:
 
<pre>
 
<pre>
Line 34: Line 34:
 
./Allwmake
 
./Allwmake
 
</pre>
 
</pre>
 +
</li>
 +
</ul>
  
 
== History ==
 
== History ==

Revision as of 20:51, 31 August 2013

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 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
    Which can be done directly from the command line:
    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)