|
[Sponsors] |
January 31, 2010, 14:00 |
blockMesh and internal faces
|
#1 |
Member
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 67
Rep Power: 17 |
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). |
|
February 1, 2010, 04:01 |
|
#2 |
Senior Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17 |
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 04:35. |
|
February 1, 2010, 08:09 |
|
#3 |
Member
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 67
Rep Power: 17 |
Exactly! Thanks a lot...
Now I see that I missed one chapter in the UserManual. |
|
February 25, 2011, 09:29 |
|
#4 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 17 |
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 |
|
November 9, 2011, 05:19 |
|
#5 |
New Member
Elia Daniele
Join Date: Mar 2010
Location: Oldenburg
Posts: 21
Rep Power: 16 |
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 |
|
December 10, 2011, 15:08 |
Mesh moving
|
#6 |
Senior Member
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17 |
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 |
|
December 10, 2011, 15:49 |
|
#7 |
New Member
Elia Daniele
Join Date: Mar 2010
Location: Oldenburg
Posts: 21
Rep Power: 16 |
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... |
|
July 13, 2015, 19:51 |
|
#8 |
New Member
Ricardo Ferreira
Join Date: May 2015
Posts: 16
Rep Power: 11 |
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. |
|
July 16, 2015, 08:01 |
|
#9 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 17 |
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. |
|
Tags |
blockmesh, internal faces, patch |
|
|
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 09:26 |
[blockMesh] Create internal faces as patch in blockMesh | m.delta68 | OpenFOAM Meshing & Mesh Conversion | 14 | July 12, 2018 15:43 |
[blockMesh] mergePatchPairs reducing a face to less than 3 points | aow | OpenFOAM Meshing & Mesh Conversion | 2 | June 1, 2018 18:37 |
SigFpe when running ANY application in parallel | Pj. | OpenFOAM Running, Solving & CFD | 3 | April 23, 2015 15:53 |
[blockMesh] BlockMesh number internal faces and boundary | ynos | OpenFOAM Meshing & Mesh Conversion | 6 | December 13, 2011 06:36 |