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

[blockMesh] Multiple Regions not Connected by Any Face

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By lcj66

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2015, 22:53
Default Multiple Regions not Connected by Any Face
  #1
New Member
 
Lori
Join Date: Jun 2015
Posts: 6
Rep Power: 11
lcj66 is on a distinguished road
Hi!

So I am attempting to make a mesh that is basically two rectangles, one on top of the other, with a membrane interface between. I have made the following blockMeshDict file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
//***************************************//

convertToMeters 0.01;

vertices
(
    ( 0      0      0   ) // Number 0
    ( 14     0      0   ) // Number 1
    ( 14     0.3    0   ) // Number 2
    ( 0      0.3    0   ) // Number 3
    ( 0      0      0.1 ) // Number 4
    ( 14     0      0.1 ) // Number 5
    ( 14     0.3    0.1 ) // Number 6
    ( 0      0.3    0.1 ) // Number 7
    ( 0     -0.3    0   ) // Number 8
    ( 14    -0.3    0   ) // Number 9
    ( 14     0      0   ) // Number 10
    ( 0      0      0   ) // Number 11
    ( 0    -0.3    0.1  ) // Number 12
    ( 14   -0.3    0.1  ) // Number 13  
    ( 14     0    0.1   ) // Number 14
    ( 0      0    0.1   ) // Number 15 
);


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

edges
(
);

boundary
(
    inlet1
    {
         type patch;
         faces
         (
             (0 4 7 3)
         );
     }
     inlet2
     {
          type patch;
          faces
          (
              (9 10 14 13)
          );
      }
      outlet1
      {
           type patch;
           faces
           ( 
               (6 5 1 2)
           );
       }
       outlet2
       {
           type patch;
           faces
           ( 
               (11 8 12 15)
           );
       }
       fixedWalls
       {
            type wall;
            faces
            (
                (3 7 6 2)
                (8 9 13 12)
            );
        }     
);

mergePatchPairs
( 
);

//***************************************************************************************//
and then I used the toposet utility and createbaffles utility to make a facezone out of the membrane and to make it into an internal boundary. Below are the toposetdict and createbafflesdict files:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
    {
    name            f0;
    type            faceSet;
    action          new;
    source          boxToFace;
    sourceInfo
    {
        box         (0 0 0) (0.14 0 0.01);
    }
    }

);
//****************************************************************************//
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createBafflesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
internalFacesOnly false;
noFields          true;

baffles
{
    Membrane
    {
        type         faceZone;
        zoneName     f0;
        patchPairs
        {
           type      patch;
        }
     }
}
//***************************************************************************//
When this happens, the checkMesh says the mesh is ok, but it still has the message that:
" *Number of regions: 2
The mesh has multiple regions which are not connected by any face."

And I am almost certain this is why I am getting issues while attempting to use a custom built solver.

So, any ideas on how to connect the two regions? Im still new to openfoam so my knowledge about utilities is sparse and would like to get suggestions on where I should go.

Thanks!
Lori
niumeng likes this.
lcj66 is offline   Reply With Quote

Old   July 9, 2015, 06:21
Default
  #2
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi Lori,

it's an frequently made beginners error.
http://www.cfd-online.com/Forums/ope...ordinates.html

regards
Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB is offline   Reply With Quote

Old   September 29, 2017, 15:30
Default
  #3
HJM
New Member
 
Jue
Join Date: Aug 2017
Posts: 1
Rep Power: 0
HJM is on a distinguished road
Hi Lori,

Did you figure it out? Would you like to share your solution to this problem?

What I want to do is to make the top membrane surface as a patch. I use faceZoneSet in topoSet and createBaffles. But when I do checkMesh, I have the exact same problem about two regions. It seems cellzone is separated to two regions. I searched ton of threads for several days but didn't find a solution.

Would you please help me with that?

Thank you very much!
HJM is offline   Reply With Quote

Reply

Tags
blockmesh, createbaffles, openfoam, regions, toposet


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
Run parallel but low calculating speed HuJG OpenFOAM Running, Solving & CFD 1 April 22, 2019 23:15
Simulating fire in a tunnel luca1992 OpenFOAM 14 August 16, 2017 14:50
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50


All times are GMT -4. The time now is 12:32.