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

[blockMesh] Error: Block Hex has inward-pointing faces

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By CfdIntro
  • 1 Post By simrego

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2018, 08:07
Default Error: Block Hex has inward-pointing faces
  #1
New Member
 
Join Date: Oct 2017
Posts: 15
Rep Power: 8
CfdIntro is on a distinguished road
Hi,

I'm trying to convert a rectangular mesh to a curved one by using the "arc" selection.

The blockmesh of the curved mesh is:

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

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

convertToMeters 1;

vertices
(
    
    (-2 -0.75 -0.8)//0
    (1 -0.75 -0.8)//1
    (1  1  -0.8)//2
    (-2 1 -0.8)//3
//
    (-4.1 -0.75 -0.8)//4
    (3.1 -0.75 -0.8)//5
    (3.1 1 -0.8)//6
    (-4.1 1 -0.8)//7

);

blocks
(
    hex (0 1 2 3 4 5 6 7) (30 10 20) simpleGrading (1 1 1)
);

edges
(
    arc 2 3 (-0.5 1 0.25) 
    arc 1 0 (-0.5 -0.75 0.25)
    arc 5 4 (-0.5 -0.75 2.35)
    arc 6 7 (-0.5 1 2.35)
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
        (2 6 5 1)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (3 0 4 7)  
        );
    }
    road
    {
        type wall;
        faces
        (
            (0 1 5 4)
        );
    }
    top
    {
        type wall;
        faces
        (
            (2 3 7 6)
        );
    }
    sides
    {
        type wall;
        faces
        (
            (0 1 2 3)
            (4 5 6 7)
        );
    }

);

// ************************************************************************* //
After I use the blockMesh command, I'm getting this error in the terminal:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.0-dbb428a3a855
Exec   : blockMesh
Date   : May 07 2018
Time   : 14:47:12
PID    : 4352
I/O    : uncollated
Case   : /home/user/Desktop/curvedmesh
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Deleting polyMesh directory
    "/home/user/Desktop/curvedmesh/constant/polyMesh"
Creating block mesh from
    "/home/user/Desktop/curvedmesh/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks


--> FOAM FATAL IO ERROR: 
Block hex (0 1 2 3 4 5 6 7) (30 10 20) simpleGrading (1(1) 1(1) 1(1)) has inward-pointing faces
    4(0 4 7 3) 4(1 2 6 5) 4(0 3 2 1) 

file: /home/user/Desktop/curvedmesh/system/blockMeshDict.blocks at line 37.

    From function void Foam::blockDescriptor::check(const Foam::Istream&)
    in file blockDescriptor/blockDescriptor.C at line 89.

FOAM exiting
I've temporarily fixed this issue by assigning -0,79 to the z coordinate of the 4, 5, 6, 7 vertices but then I'm getting an oval-shaped mesh and not a cyclic one.

Any tip on how to make the 4, 5 & 6, 7 points collinear would be great.

- Openfoam v. 5.0
- OS: Ubuntu 17.04
nepomnyi and hhu_lulu like this.
CfdIntro is offline   Reply With Quote

Old   May 28, 2018, 14:46
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


Maybe blockMesh can't do it. I hope someone can explain that, but I think blockMesh create the blocks first and then it'll take into account your edges. And since this block has 0 thickness, when it try to create this block, of course it will crash.
But if you use -0.79999999999999 then it's okay, and -0.79999999999999 = -0.8 so it should be fine.
Or you can use 2 blocks and it will be ok.
hhu_lulu likes this.
simrego 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
[snappyHexMesh] Layers not growing at all zonda OpenFOAM Meshing & Mesh Conversion 12 June 6, 2020 11:28
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[snappyHexMesh] SHM is not extruding/adding Layers everywhere matthiasd OpenFOAM Meshing & Mesh Conversion 2 October 16, 2016 16:45
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 14:49
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38


All times are GMT -4. The time now is 03:05.