|
[Sponsors] |
May 19, 2011, 22:32 |
How do you handle multiple blocks?
|
#1 |
Member
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 14 |
I'm trying to create a room with an inlet (i.e. diffuser) and outlet, so I broke the room up into 7 blocks as you can see in this image: http://imgur.com/JzgmP
I believe I successfully made patches on all the boundaries, but my problem appears to be that the block faces in the interior are not being treated correctly. I thought I could just leave them as empty, but apparently you can only do that with 2D meshes. Any help would be greatly appreciated. |
|
May 20, 2011, 02:46 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
There are no true 2D meshes in OpenFOAM. Do the grids match on the opposite sides of a internal edge?
Last edited by Bernhard; May 20, 2011 at 03:10. |
|
May 20, 2011, 03:03 |
|
#3 |
Member
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 14 |
Right, if I recall from the user's guide, a 2D problem is basically faked by assigning "empty" patches to the block faces in the third dimension. I thought that I could apply this to my interior faces, but I get an error saying I can't because my geometry is 3 dimensional.
I'm not sure what you mean in your second question. I'm able to run blockMesh at least, but I can run the solution. Not sure if that answers your question. Maybe I'm going about this the wrong way? I just want a box with a small inlet and outlet. I tried doing that with one big block and multiple patches, but that didn't seem to work either. Thanks for the response. |
|
May 20, 2011, 03:15 |
|
#4 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
You cannot use empty patch in three dimensions. Because a 2D mesh is treated as a 3D mesh with only one cell in the third direction, that why you take these patches to be empty, because there is nothing to calculate.
You don't have to name the internal faces. All interior faces that you do not name in a patch, are automatically treated as a internal face. All boundary faces get collected in the patch defaultWalls or something. In blockMesh you can leave the patches subdictionary empty, and then check your mesh. If everything is OK, you can continue naming the boundary faces as wall or patch, but not as empty! |
|
May 20, 2011, 10:56 |
|
#5 |
Member
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 14 |
I could have sworn that's what I did in my first attempt, and that it kept automatically placing the unpatched block faces into default, empty patches. But I must have been doing something else wrong, because what you say definitely makes sense.
I'm at work at the moment, but I'll give it another shot asap. Thank you very much for your help! |
|
May 20, 2011, 15:25 |
|
#6 |
Member
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 14 |
Your first instinct was correct; the meshes were not matching on both sides of all the interior faces. I finally seem to have it working now.
I think that because the meshes didn't match, the program was trying to get me to apply some boundary conditions to them. Or maybe not...I'm really not sure. Either way, thanks again for the help. This is my first non-tutorial case and I felt like I was on my last leg. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] fluent3DMeshToFoam | bego | OpenFOAM Meshing & Mesh Conversion | 31 | August 16, 2023 10:04 |
dsmcInitialise - dsmcFoam | archymedes | OpenFOAM Pre-Processing | 94 | July 15, 2016 17:14 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
[snappyHexMesh] Meshing multiple blocks | Hanno | OpenFOAM Meshing & Mesh Conversion | 3 | February 17, 2011 13:14 |
[blockMesh] mesh grading problem with multiple blocks | aljaz | OpenFOAM Meshing & Mesh Conversion | 0 | December 21, 2010 03:33 |