CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM

blockMesh and internal faces

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 31, 2010, 14:00
Default blockMesh and internal faces
  #1
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 52
Rep Power: 7
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, 04:01
Default
  #2
Member
 
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 95
Rep Power: 7
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 04:35.
Thomas Baumann is offline   Reply With Quote

Old   February 1, 2010, 08:09
Default
  #3
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 52
Rep Power: 7
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, 09:29
Default
  #4
Senior Member
 
Join Date: Sep 2010
Location: France
Posts: 169
Rep Power: 6
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, 05:19
Default
  #5
New Member
 
Elia Daniele
Join Date: Mar 2010
Location: Oldenburg
Posts: 21
Rep Power: 6
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
fakekarma is offline   Reply With Quote

Old   December 10, 2011, 15:08
Default Mesh moving
  #6
Member
 
ehsan
Join Date: Mar 2009
Posts: 82
Rep Power: 7
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, 15:49
Default
  #7
New Member
 
Elia Daniele
Join Date: Mar 2010
Location: Oldenburg
Posts: 21
Rep Power: 6
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

Reply

Tags
blockmesh, internal faces, patch

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 15:11
internal faces between patches created with snappyHexMesh romant OpenFOAM Mesh Utilities 0 August 17, 2009 09:40
blockMesh: block with 6 vertexes dani OpenFOAM 3 June 25, 2009 14:13
Trouble with blockMesh kupiainen OpenFOAM Native Meshers: blockMesh 40 January 10, 2009 18:44
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 08:36


All times are GMT -4. The time now is 23:21.