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

[blockMesh] Question on developing my mesh for having a port within a wall boundary

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 23, 2016, 17:11
Default Question on developing my mesh for having a port within a wall boundary
  #1
New Member
 
Sara
Join Date: Dec 2013
Posts: 10
Rep Power: 12
karma15 is on a distinguished road
Hello everyone,

The answer to this question is most likely straightforward, but I am stuck when trying to build my blockMeshDict. Right now I just have a simple rectangular conduit with an inlet on one side and the outlet on the other side. I would like to have a port on the top wall that will have the boundary condition of negative or positive velocity. So I have a wall on the top, and a wall on the bottom, and within the top wall, I would like a small square to be the "port." I keep getting errors when trying to build the mesh, in particular my error says:
Code:
face 0 in patch 4 does not have neighbour cell face: 4(8 9 10  11)
I am thinking that the problem is that I only have one block in my whole domain. Thus, do I need to create separate blocks for each section (i.e. the section before the port, the section with the port, and the section after the port)? Or is there an easier way of doing this?

Here is my blockMeshDict code:

Code:
convertToMeters 1;

vertices
(
    (-0.05 -0.05 -0.05) //0
    (10.05 -0.05 -0.05) //1
    (10.05 1.05 -0.05) //2
    (-0.05 1.05 -0.05) //3
    (-0.05 -0.05 0.05) //4
    (10.05 -0.05 0.05) //5
    (10.05 1.05 0.05) //6
    (-0.05 1.05 0.05) //7
    
    (3.85 1.05 -0.05) //8
    (4.15 1.05 -0.05) //9
    (4.15 1.05 0.05)  //10   
    (3.85 1.05  0.05) //11
);


blocks          
(
    hex (0 1 2 3 4 5 6 7) (101 11 1) simpleGrading (1 1 1)
);

edges           
(
);

boundary
(
    wall_top
    {
        type wall;  
        faces
        (
            (3 7 6 2)
        );
    }   
    wall_bottom
    {
        type wall;
        faces
        (
            (4 0 1 5)
        );
    }
    frontAndBack
    {
        type empty;
        faces
        (
            (0 3 2 1)
            (4 5 6 7)
        )
    }
    inlet 
    {
        type patch;
        faces
        (
            (0 4 7 3)
         );
    }
    outlet
    {
        type patch;
        faces
        (
            (2 6 5 1)
        );
    }
    port
    {
        type patch;
        faces
        (
            (8 11 10 9)
        );
    }

mergePatchPairs
(
);
karma15 is offline   Reply With Quote

 


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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 07:54.