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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
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

Old   February 23, 2016, 21:57
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

There are two ways of doing this.

1. Define extra points and define the wall_top as all faces except the ones that define "port"

2. Use topoSet to create a faceSet based on the vertices 8 through 11 and use createPatch to create a patch from that. See attached files.

Hope this helps.

Cheers,
Antimony
Attached Files
File Type: txt topoSetDict.txt (916 Bytes, 5 views)
File Type: txt createPatchDict.txt (983 Bytes, 6 views)
Antimony is offline   Reply With Quote

Reply


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 17:44.