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

[blockMesh] OpenFoam - Block Mesh - identify a wall when wall is only part of a face of a block

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fowushuai

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2015, 13:46
Default OpenFoam - Block Mesh - identify a wall when wall is only part of a face of a block
  #1
Member
 
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0
michu is on a distinguished road
Hello All,

I am using openFoam and when I use the pisoFoam command I keep getting a floating point error. I believe my error is in my block Meshing. I uploaded two photos of the environment. The first is the view paraFoam gives after the blockMesh command. No errors are stated when I run the blockMesh command.

In the second image, I labeled all the points and color coded the image. Each square is a block (hex command). The blue is identified as the inlet, the red is the outlet and the green is specified as walls. There are also an additional fifteen points in the z-direction (eg: point 0 0 0 goes to 0 0 0.1). The top(points where z=0.1) and bottom(points where z=0) are all specified as empty. My question is what do I identify the pink as? and how would I identify them since they're not specifically a complete wall to any block?

Thank you for your help!
~Michu
Attached Images
File Type: png environment.PNG (2.2 KB, 61 views)
File Type: jpg Untitled-1.jpg (16.0 KB, 66 views)
michu is offline   Reply With Quote

Old   June 18, 2015, 05:32
Default Try again this
  #2
New Member
 
fu shuai
Join Date: Mar 2015
Posts: 4
Rep Power: 11
fowushuai is on a distinguished road
Hi:
Try this
(0,3,14,10)square define block
(4,5,9,8,7,6,4)pol is defined by stl
fowushuai is offline   Reply With Quote

Old   June 18, 2015, 12:36
Default
  #3
Member
 
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0
michu is on a distinguished road
Hello fowushuai,

WHen I do that and add a block to (0,3,14,10), then i get the error "Trying to specify a boundary face 4(10 0 15 25) on the face on cell 0 which is either an internal face or already belongs to some other patch. This is face 0 of patch 0 named inlet." I think by defining that block it over constrains the environment.

~Michu
michu is offline   Reply With Quote

Old   June 18, 2015, 20:49
Default Two Methord
  #4
New Member
 
fu shuai
Join Date: Mar 2015
Posts: 4
Rep Power: 11
fowushuai is on a distinguished road
Hi:
Two Methord
1. define block this. see image
2. define (4,5,9,8,7,6,4) in snappyhexmeshdict file.
Attached Images
File Type: png 1.png (33.6 KB, 36 views)
fowushuai is offline   Reply With Quote

Old   June 21, 2015, 17:18
Default
  #5
Member
 
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0
michu is on a distinguished road
Hello, so i found out some of my problems.

One problem is that block 7 left side face touches only part of block 4 right side face. Each face needs to meet another blocks full face. For example because of this block 4 will be needed to be split into two separate boxes. When this happens, another change will be needed. Block 3 will then need to be split into two blocks to meet with block 4 and the second block created when block 4 is split.

also i need to look more into snappyhexmeshdict command- ty for sending me in that direction fowushuai
michu is offline   Reply With Quote

Old   June 23, 2015, 03:32
Default like this
  #6
New Member
 
fu shuai
Join Date: Mar 2015
Posts: 4
Rep Power: 11
fowushuai is on a distinguished road
Hi:
I am sorry. first image is wrong. correct image see attachment!
you can define the blockmesh like this
Attached Images
File Type: jpg 1.jpg (55.1 KB, 35 views)
Attached Files
File Type: txt blockMeshDict.txt (3.5 KB, 24 views)
michu likes this.
fowushuai is offline   Reply With Quote

Old   June 26, 2015, 13:07
Default
  #7
Member
 
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0
michu is on a distinguished road
Yeah that works, also as a side note, unless your performing thermodynamic calculations or something such as convection/conduction/radiation, or something similar, blocks 4 5 9 you do not need to add if you just want to observe how the fluid flows.

Thank you also for your help, it is greatly appreciated!!!
michu is offline   Reply With Quote

Reply

Tags
blockmesh, openfoam, pisofoam, walls boundary conditions


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
[blockMesh] mergePatchPairs reducing a face to less than 3 points aow OpenFOAM Meshing & Mesh Conversion 2 June 1, 2018 17:37
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 19:08.