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

[blockMesh] OpenFOAM blockMeshDict error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2019, 07:44
Default OpenFOAM blockMeshDict error
  #1
New Member
 
Ahmad Rifqi
Join Date: Dec 2017
Posts: 1
Rep Power: 0
ahmadrifqi is on a distinguished road
I have tried several times, including the past questions that are solved. I could decrease the error significantly, but I still can not solve this particular problem. Here is the code,


Code:
/*--------------------------------*- C++ -*----------------------------------*\
|               Geometry : Cavity CFD                                        |
|               Author   : Ahmad Rifqi                                       |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
    (0 0 0) //0
    (0 2 0) //1
    (4 2 0) //2
    (5 2 0) //3
    (5 1 0) //4
    (4 1 0) //5
    (4 0 0) //6
    (0 0 1) //7
    (0 2 1) //8
    (4 2 1) //9
    (5 2 1) //10
    (5 1 1) //11
    (4 1 1) //12
    (4 0 1) //13
);

blocks
(
    hex (5 12 11 4 2 9 10 3) (200 100 1) simpleGrading (1 1 1)
    hex (7 13 6 0 8 9 2 1) (200 100 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    Inlet
    {
        type patch;
        faces
        (
            (10  11 4 3)
        );
    }
    Outlet
    {
        type patch;
        faces
        (
            (0 1 8 7)
        );
    }
    Wall
    {
        type patch;
        physicalType wall;
        faces
        (
            (5 12 11 4)
            (2 9 10 3)
            (1 8 9 2)
            (9 12 11 10)
            (8 7 13 9)
            (1 0 6 2)
            (2 5 4 3)
            (0 7 13 6)
            (13 6 5 12) //why is this line error?
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //

I do not understand why does the 76 th line gives me an error. Anybody knows why?

Last edited by ahmadrifqi; January 4, 2019 at 07:45. Reason: I forget to write the code differently.
ahmadrifqi is offline   Reply With Quote

Old   January 7, 2019, 00:50
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

The error is because there is no hex block where the vertices 13, 6, 5 and 12 are ALL present. In order to define a set of vertices as a face, they must all be present in the same block.

Hope this helps.

Cheers,
Antimony
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
long error when using make-install SU2_AD. tomp1993 SU2 Installation 3 March 17, 2018 07:25
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 10:30
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


All times are GMT -4. The time now is 10:15.