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

[blockMesh] Face Matching, how to to match to blocks with different mesh definitions?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2016, 11:49
Default Face Matching, how to to match to blocks with different mesh definitions?
  #1
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 11
pupo is on a distinguished road
Hello Foamers!

I'm facing a meshing problem, for which I created a simplified demonstration: I would like to have 2 blocks next to each other with a face interface that looks like this:



I know that OpenFoam can handle multiple cells merging to a single cell from the meshes generated from snappy, From snappy Manual example:




However the resulting mesh from MergePatchPairs looks like this:



Is there a way to merge the two patches (as in, them being an internal face) without destroying the harmony of the geometry?

Thank you for your help

Demo blockHexMeshdict
Code:
vertices
(
  (0 0 0)
  (1 0 0)
  (1 1 0)
  (0 1 0)
  (0 0 1)
  (1 0 1)
  (1 1 1)
  (0 1 1)
  (1 0 0)
  (2 0 0)
  (2 1 0)
  (1 1 0)
  (1 0 1)
  (2 0 1)
  (2 1 1)
  (1 1 1)
);

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

edges();

boundary
(
        interfaceA { type patch; faces (( 1   2   6   5)); } 
        interfaceB { type patch; faces (( 8 12 15 11)); }
);

mergePatchPairs
(
      //  ( interfaceA interfaceB )
);
EDIT: I should have read trough this subForum before posting, feels like half of the posts here are about this issue... sorry
EDIT2: Yet i found no solution.....

Last edited by pupo; May 23, 2016 at 03:49.
pupo is offline   Reply With Quote

Old   May 24, 2016, 01:37
Default
  #2
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21
kalle is on a distinguished road
There is nothing wrong with your mesh, it is just Paraview who renders it ugly. Click to enable polyhedra and you will see what you want!

K
kalle is offline   Reply With Quote

Old   May 24, 2016, 07:06
Default
  #3
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 11
pupo is on a distinguished road
Quote:
Originally Posted by kalle View Post
There is nothing wrong with your mesh, it is just Paraview who renders it ugly. Click to enable polyhedra and you will see what you want!

K
Ah, it was just a visualization error then, i read a few threads where this fix was sugested but they were always concerning the vizualization of inner cells in a cut, so i failed to make an association.

Thank you very much!
pupo is offline   Reply With Quote

Reply


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
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 10 February 7, 2024 21:50
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[blockMesh] Internal walls of zero thickness anger OpenFOAM Meshing & Mesh Conversion 23 February 6, 2020 18:25
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


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