CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Is is possible to create different element sizes in connected blocks?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By Bloerb
  • 1 Post By kandelabr

LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2022, 12:40
Default Is is possible to create different element sizes in connected blocks?
New Member
Something Random
Join Date: Jul 2022
Posts: 3
Rep Power: 2
SomethingRandom is on a distinguished road
If two blocks are stacked along x-axis and I want to give one block x divisions along y-axis and the other y, is it possible?
I have tried y as an integer multiple of x and it does not work. So is it not possible through blockMesh or are there methods to achieve so?
SomethingRandom is offline   Reply With Quote

Old   August 4, 2022, 16:34
Senior Member
Join Date: Sep 2013
Posts: 340
Rep Power: 19
Bloerb will become famous soon enough
You need to make sure the two blocks are not automatically connected. Easiest way to do so is to define the shared points twice. now define an arbitrary mesh interface on the two shared faces.

The other option is to use stitchMesh after blockMesh. With option one you are interpolating from one block to the next, which leads to a (depending on setting maybe just slightly) lower accuracy. The other option creates triangles or wedges etc in between to connect them.

Otherwise there is no option to connect non matching cells.
SomethingRandom likes this.
Bloerb is offline   Reply With Quote

Old   August 10, 2022, 00:14
Senior Member
kandelabr's Avatar
Join Date: Feb 2017
Location: Slovenia
Posts: 193
Rep Power: 7
kandelabr is on a distinguished road
There is another option, face merging. Again, you define block points twice, name both patches, then include them in mergePatchPairs. This is similar to stitchMesh.
SomethingRandom likes this.
kandelabr is offline   Reply With Quote


block mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 15:18
[ICEM] Two boxes connected by a cylinder, blocks merge where I don't want them to merge. Polarbear ANSYS Meshing & Geometry 4 April 30, 2014 16:21
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55

All times are GMT -4. The time now is 02:28.