Difference between revisions of "Contrib blockMeshDG"
From OpenFOAMWiki
(→Download: Fixed instructions for when unpacking from zip) |
m (minor html format fix) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{VersionInfo}}{{Version2.0.x}}{{Version2.1.x}} | + | {{VersionInfo}}{{Version2.0.x}}{{Version2.1.x}}{{Version2.2}} |
== Short description == | == Short description == | ||
Line 9: | Line 9: | ||
The utility works the same way as the standard blockMesh tool, but accepts negative grading coefficients in the blockMeshDict file. | The utility works the same way as the standard blockMesh tool, but accepts negative grading coefficients in the blockMeshDict file. | ||
<blockquote>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.</blockquote> | <blockquote>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.</blockquote> | ||
− | The executable is called by | + | The executable is called by this command: |
+ | <bash>blockMeshDG</bash> | ||
Source of example and original code: [http://www.cfd-online.com/Forums/openfoam/70798-blockmesh-double-grading.html blockMesh with double grading] | Source of example and original code: [http://www.cfd-online.com/Forums/openfoam/70798-blockmesh-double-grading.html blockMesh with double grading] | ||
== Download == | == Download == | ||
− | Get the most recent version here: | + | Get the most recent version here: https://bitbucket.org/akidess/blockmeshdg |
− | You can either use the Mercurial source code management utility ([http://mercurial.selenic.com/ about Mercurial]): | + | <ul {{NoIndentStyle}}> |
+ | <li>You can either use the Mercurial source code management utility ([http://mercurial.selenic.com/ about Mercurial]): | ||
<pre> | <pre> | ||
− | hg clone | + | hg clone https://bitbucket.org/akidess/blockmeshdg |
cd blockmeshdg | cd blockmeshdg | ||
./Allwmake | ./Allwmake | ||
</pre> | </pre> | ||
− | + | </li> | |
− | Or download from ZIP: [ | + | <li>Or download from ZIP: [https://bitbucket.org/akidess/blockmeshdg/get/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> | ||
− | wget | + | wget https://bitbucket.org/akidess/blockmeshdg/get/tip.zip -O latest-blockmeshDG.zip |
unzip latest-blockmeshDG.zip | unzip latest-blockmeshDG.zip | ||
− | cd blockmeshdg-* | + | cd akidess-blockmeshdg-* |
chmod +x Allwmake | chmod +x Allwmake | ||
find . -exec touch '{}' \; | find . -exec touch '{}' \; | ||
./Allwmake | ./Allwmake | ||
</pre> | </pre> | ||
+ | </li> | ||
+ | </ul> | ||
== History == | == History == |
Latest revision as of 23:03, 16 May 2015
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.
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:
blockMeshDG
Source of example and original code: blockMesh with double grading
3 Download
Get the most recent version here: https://bitbucket.org/akidess/blockmeshdg
- You can either use the Mercurial source code management utility (about Mercurial):
hg clone https://bitbucket.org/akidess/blockmeshdg cd blockmeshdg ./Allwmake
- Or download from ZIP: latest-blockmeshDG.zip
Which can be done directly from the command line:wget https://bitbucket.org/akidess/blockmeshdg/get/tip.zip -O latest-blockmeshDG.zip unzip latest-blockmeshDG.zip cd akidess-blockmeshdg-* chmod +x Allwmake find . -exec touch '{}' \; ./Allwmake
4 History
--Akidess 13:42, 4 March 2012 (CET)