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

[blockMesh] blockMesh and internal faces

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By fakekarma

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2010, 13:00
Default blockMesh and internal faces
  #1
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 67
Rep Power: 16
piprus is on a distinguished road
Hi everyone,

My question concerns probably silly issue, but I can't see the solution at the moment, so I hope you can give me some hint. What's the problem? So... I made a 2D geometry just by defining verticies, blocks (hex) and edges (because I have some splines and arcs) in one blockMeshDict file. Everything looks great, as you can see at the attached picture (sorry for the low resolution).



My blockMeshDict defines hexahedrals as shown at the schematic picture below (green lines depict borders of those hexes):



And now my fundamental question is. Should I expect that all of the hexahedrals are automatically connected one to another or should I define some patches between them or even merge them somehow?

Just as a addition I should say that I added until now two patches that I need for sure. They are inlet (top of a pipe in the middle) and outlet (on top right of a tank).
piprus is offline   Reply With Quote

Old   February 1, 2010, 03:01
Default
  #2
Senior Member
 
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 103
Rep Power: 17
Thomas Baumann is on a distinguished road
Hi piprus,

1. the blocks are all automatically connected if you use the same vertices at the matching faces while defining the blocks using the blockMesh-utility. Here it is not neccessary to define internal faces.

2. If you are using different vertices at the matching faces (even if they have the same coordiantes) you have to define internal patches and merge them using mergePatchFields in the blockMeshdict (here you can have a different discretication of the blocks). But it's neccessary in this case the different blocks don't use the same vertices not to get trouble during mergePatchPairs...


Regards Thomas

Last edited by Thomas Baumann; February 1, 2010 at 03:35.
Thomas Baumann is offline   Reply With Quote

Old   February 1, 2010, 07:09
Default
  #3
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 67
Rep Power: 16
piprus is on a distinguished road
Exactly! Thanks a lot...

Now I see that I missed one chapter in the UserManual.
piprus is offline   Reply With Quote

Old   February 25, 2011, 08:29
Default
  #4
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 16
T.D. is on a distinguished road
hi, concerning mergePatchPairs.
I have a mesh in wedge type, with two block connected by an interface1, where i connected interface1 with interface2 by mergePatchPairs. The mesh is ok and the checkMesh is OK.
The problem is in the 0 folder where it cannot recognize the defined BC for the interface1.
Any ideas

here is my mesh
FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object blockMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//original in cm
convertToMeters 0.01;


//geometry Couette with gap up on top =0.3
//couette wedge 5°

//Ri=1.4 cm R=1.45 cm Ht=3.3 cm Hi=3 cm

vertices
(

(1.448619921 0.063248112 0)
(1.448619921 -0.063248112 0)
(1.39866751 0.061067142 3)
(1.39866751 -0.061067142 3)
(1.448619921 0.063248112 3.3)
(1.448619921 -0.063248112 3.3)
(1.39866751 0.061067142 3.3)
(1.39866751 -0.061067142 3.3)


(1.39866751 0.061067142 0)
(1.39866751 -0.061067142 0)
(1.448619921 0.063248112 3)
(1.448619921 -0.063248112 3)

(1.39866751 0.061067142 3)
(1.448619921 0.063248112 3)
(1.448619921 -0.063248112 3)
(1.39866751 -0.061067142 3)


(1.448619921 0.063248112 3.3)
(1.448619921 -0.063248112 3.3)
(1.39866751 0.061067142 3.3)
(1.39866751 -0.061067142 3.3)


);

blocks
(

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

);

edges
(
);

patches
(

wedge front
(
(8 2 10 0)
(12 6 4 13)
)

wedge back
(
(9 3 11 1)
(15 7 5 14)
)
patch in
(
(8 2 3 9)
(12 6 7 15)
)
patch out
(
(0 10 11 1)
(13 4 5 14)
)

patch up
(
(6 4 5 7)
)

patch down
(
(8 0 1 9)
)

patch inerface1
(
(2 10 11 3)
)
patch interface2
(
(12 13 14 15)
)


);

mergeParchPairs
(
(interface1 interface2)
);


Any ideas ?

Thanks a lot
T.D. is offline   Reply With Quote

Old   November 9, 2011, 04:19
Default
  #5
New Member
 
Elia Daniele
Join Date: Mar 2010
Location: Oldenburg
Posts: 21
Rep Power: 16
fakekarma is on a distinguished road
Hi T.D.,
If the blockMeshDict reported from you as been simply pasted here maybe there is a mistake when you define the patch as:

patch inerface1
(
(2 10 11 3)
)

instead of:

patch interface1
(
(2 10 11 3)
)

So when you look for it in

mergeParchPairs
(
(interface1 interface2)
);

so it will never find it. Hope it can help,

Best regards
pela145 and siamak 60 like this.
fakekarma is offline   Reply With Quote

Old   December 10, 2011, 14:08
Default Mesh moving
  #6
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Hi

I like to move my mesh's cell only by dx/2 and dy/2 and create a new mesh. Could you please help me how to change the blockmesh file to create a new mesh whose cells are moved by dx/2 and dy/2 relative to the first mesh?

Thanks a lot
ehsan is offline   Reply With Quote

Old   December 10, 2011, 14:49
Default
  #7
New Member
 
Elia Daniele
Join Date: Mar 2010
Location: Oldenburg
Posts: 21
Rep Power: 16
fakekarma is on a distinguished road
Hallo Ehsan,

have you already tried with the translate operator inside ParaFoam?
I think there exists also a command line version (transformPoints), as reported here http://www.openfoam.com/features/mesh-manipulation.php.

I hope it helps,

Cheers,

Elia

P.S.
if this not suffice maybe in another thread you will find out more...
fakekarma is offline   Reply With Quote

Old   July 13, 2015, 18:51
Default
  #8
New Member
 
Ricardo Ferreira
Join Date: May 2015
Posts: 16
Rep Power: 10
RLFerreira is on a distinguished road
Hello everbody!

I appreciate your helps. I am trying to solve a very simple problem, which is a flow inside the circular duct. So, I have three patches in my blockMeshDict file: inlet, outlet and walls. I want to add internal face as a patch to me use the patchAverage utility to compute the pressure average in given section of the duct. How can I set it in the blockMeshDict. Is it possible? How can I set it on the boundary condtions file inside of "0" directory?

I tried the "patch" and "empty" to set internal face patches and blockMesh doesn't work!

The other alternative is set a surface sampling data in sampleDict file. However, I would to know if possible add internal face with empty boundary condition.

Best Regards,
Ricardo.
RLFerreira is offline   Reply With Quote

Old   July 16, 2015, 07:01
Default
  #9
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 16
T.D. is on a distinguished road
Hi Ricardo,

You can use GMSH for example, and do then whatever you want with it.
see this:
https://openfoamwiki.net/index.php/2...ial_using_GMSH

regards,

T.D.
T.D. is offline   Reply With Quote

Reply

Tags
blockmesh, internal faces, patch


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
[snappyHexMesh] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 08:26
[blockMesh] Create internal faces as patch in blockMesh m.delta68 OpenFOAM Meshing & Mesh Conversion 14 July 12, 2018 14:43
[blockMesh] mergePatchPairs reducing a face to less than 3 points aow OpenFOAM Meshing & Mesh Conversion 2 June 1, 2018 17:37
SigFpe when running ANY application in parallel Pj. OpenFOAM Running, Solving & CFD 3 April 23, 2015 14:53
[blockMesh] BlockMesh number internal faces and boundary ynos OpenFOAM Meshing & Mesh Conversion 6 December 13, 2011 05:36


All times are GMT -4. The time now is 17:29.