CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] blockMesh vertices

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2022, 13:13
Default blockMesh vertices
  #1
New Member
 
Join Date: Mar 2022
Posts: 6
Rep Power: 4
canderous is on a distinguished road
I've been attempting to add new points to geometry for an existing case file, does it matter what order the points are listed in within the vertices section of blockMeshDict? At the moment I'm guessing that as long as the index of the point in the vertices section is used in the blocks section, then it's fine, but I'm not sure about this
canderous is offline   Reply With Quote

Old   December 8, 2022, 14:32
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by canderous View Post
I've been attempting to add new points to geometry for an existing case file, does it matter what order the points are listed in within the vertices section of blockMeshDict? At the moment I'm guessing that as long as the index of the point in the vertices section is used in the blocks section, then it's fine, but I'm not sure about this
The order of the vertices is completely immaterial, but you do need to form correct hex-cells with these vertices.
Using the quick help from blockMesh -help:
Code:
  The ordering of vertex and face labels within a block as shown below. 
  For the local vertex numbering in the sequence 0 to 7: 
    Faces 0, 1 (x-direction) are left, right. 
    Faces 2, 3 (y-direction) are front, back. 
    Faces 4, 5 (z-direction) are bottom, top. 

                        7 ---- 6 
                 f5     |\     :\     f3 
                 |      | 4 ---- 5     \ 
                 |      3.|....2 |      \ 
                 |       \|     \|      f2 
                 f4       0 ---- 1 
    Y  Z 
     \ |                f0 ------ f1 
      \| 
       o--- X
So for example, if you swapped vertex 0 and 6, you would need to define a hex cell with the vertex order (6 1 2 3 4 5 0 7), otherwise it will be a complete jumble. The face vertices are also affected, but you can make your life a bit easier if you use block/face naming. For example,
Code:
boundary 
(
    walls 
    {
        type wall;
        faces
        (
            (0 0)  // x-min
            (0 1)  // x-max
            (0 2)  // y-min
            (0 3)  // y-max
            (0 4)  // z-min
            (0 5)  // z-max
        );
    }
);
canderous likes this.
olesen is offline   Reply With Quote

Reply

Tags
block mesh, blockmeshdict


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
blockMesh - two blocks with different vertices Rojj OpenFOAM Pre-Processing 3 March 21, 2023 21:39
blockMesh error: ill defined primitiveEntry starting at keyword 'vertices' mgab OpenFOAM Pre-Processing 3 January 24, 2017 04:03
[blockMesh] blockMesh - numbering of vertices with multiple blocks AmRo OpenFOAM Meshing & Mesh Conversion 6 May 16, 2016 06:05
[blockMesh] blockMesh problem with blocks with vertices adrieno OpenFOAM Meshing & Mesh Conversion 3 March 23, 2016 04:35
[Technical] how to order the vertices in blockMesh? andrei.cimpoeru OpenFOAM Meshing & Mesh Conversion 2 December 11, 2012 14:17


All times are GMT -4. The time now is 12:04.