Difference between revisions of "Contrib/blockMeshWithSets"

From OpenFOAMWiki
 
m (Download)
Line 34: Line 34:
 
== Download ==
 
== Download ==
  
[[Media:blockMeshWithCets.tar.gz|The tar file with the sources]]
+
[[Media:blockMeshWithSets.tar.gz|The tar file with the sources]]
 
Basically this is the original blockMesh utility with some minor modifications.
 
Basically this is the original blockMesh utility with some minor modifications.
  

Revision as of 20:15, 12 October 2005

1 Short description

Generates a mesh from a blockMeshDict. Upward compatible with blockMesh

2 Usage

The usage is similar to blockMesh. The syntax of the dictionaries is the sam except for one exception: in a block specification, if there is a word between the vertex numbers and the number of cells, then the block is added to the cell set with that name.

For instance in the example from the UserGuide 2.1.6 the original blocks section

blocks
(
    hex (0 1 4 3 9 10 13 12) (10 10 1) simpleGrading (2 2 1)
    hex (1 2 5 4 10 11 14 13) (10 10 1) simpleGrading (0.5 2 1)
    hex (3 4 7 6 12 13 16 15) (10 10 1) simpleGrading (2 0.5 1)
    hex (4 5 8 7 13 14 17 16) (10 10 1) simpleGrading (0.5 0.5 1)
);

can be changed to

blocks
(
    hex (0 1 4 3 9 10 13 12) set1 (10 10 1) simpleGrading (2 2 1)
    hex (1 2 5 4 10 11 14 13) set2 (10 10 1) simpleGrading (0.5 2 1)
    hex (3 4 7 6 12 13 16 15) (10 10 1) simpleGrading (2 0.5 1)
    hex (4 5 8 7 13 14 17 16) set1 (10 10 1) simpleGrading (0.5 0.5 1)
);

This generates two cell sets:

set1 
consists of the first and the fourth block
set2 
the second block


3 Download

The tar file with the sources Basically this is the original blockMesh utility with some minor modifications.

4 History

This utility was discussed in this thread(wrong link) on the Message Board.