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

[blockMesh] foam tropology blocks warning;

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2018, 17:59
Default foam tropology blocks warning;
  #1
New Member
 
Join Date: Aug 2018
Posts: 12
Rep Power: 7
salomama is on a distinguished road
i am trying to generate a simple 2D rectangular mesh as a beginner but i get this error


Creating block mesh from
"/home/salma/foam/incompressible/icoFoam/cavity/case0/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
--> FOAM Warning :
From function bool Foam::blockMesh::blockLabelsOK(Foam::label, const pointField&, const Foam::cellShape&) const
in file blockMesh/blockMeshCheck.C at line 173
out-of-range point label 4 (max = 3) in block 0
Creating topology patches


--> FOAM FATAL ERROR:
Cannot create mesh due to errors in topology, exiting !


From function Foam:olyMesh* Foam::blockMesh::createTopology(const Foam::IOdictionary&, const Foam::word&)
in file blockMesh/blockMeshTopology.C at line 561.

FOAM exiting





my blockmesh is this way
convertToMeters 0.1;

vertices
(
(0 0 0) //vortice0
(1.5 0 0) //vortice1
(1.5 0.60 0) //vortice2
(0 0.60 0) //vortice3
);

blocks
(
hex (0 1 2 3 4) (20 20 0) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 3 0 0)
);
}
outlet
{
type patch;
faces
(
(1 2 0 0)
);
}
symmetry
{
type symmetryPlane;
faces
(
(3 2 0 0)
);
}
);

mergePatchPairs
(
);



i dont know where is the problem
salomama is offline   Reply With Quote

Old   August 15, 2018, 22:39
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
The error is indicating that the mesher is trying to access a point (4) that doesn't exist. If you are trying to create a 2d rectangular mesh you'll need 8 points -- 2d meshes are created by defining one direction (eg z, for cartesian) as "empty". For a reference case check out the icoFoam tutorials -- it looks like you've been looking at these from the path to the case. Here's an example of the blockMesh for the square cavity, found here : https://github.com/OpenFOAM/OpenFOAM.../cavity/cavity.

Here's the mesh :

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

convertToMeters 0.1;

vertices
(
    (0 0 0)
    (1 0 0)
    (1 1 0)
    (0 1 0)
    (0 0 0.1)
    (1 0 0.1)
    (1 1 0.1)
    (0 1 0.1)
);

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

edges
(
);

boundary
(
    movingWall
    {
        type wall;
        faces
        (
            (3 7 6 2)
        );
    }
    fixedWalls
    {
        type wall;
        faces
        (
            (0 4 7 3)
            (2 6 5 1)
            (1 5 4 0)
        );
    }
    frontAndBack
    {
        type empty;
        faces
        (
            (0 3 2 1)
            (4 5 6 7)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //
Caelan
salomama likes this.
clapointe is offline   Reply With Quote

Reply

Tags
#blockmesh


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
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
[snappyHexMesh] Problem with parallel run of snappyHexMesh Lorenzo92 OpenFOAM Meshing & Mesh Conversion 5 April 15, 2016 04:12
using METIS functions in fortran dokeun Main CFD Forum 7 January 29, 2013 04:06
[Gmsh] discretizer - gmshToFoam Andyjoe OpenFOAM Meshing & Mesh Conversion 13 March 14, 2012 04:35
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59


All times are GMT -4. The time now is 18:59.