CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] blockMesh crash with sigFpe (https://www.cfd-online.com/Forums/openfoam-meshing/163818-blockmesh-crash-sigfpe.html)

hamide December 6, 2015 12:24

blockMesh crash with sigFpe
 
hello friends
i wanna block a simple geometry!!! but i face to a problem, it's:

Create time

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::Time::readDict() in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 Foam::Time::setControls() in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5 Foam::Time::Time(Foam::word const&, Foam::argList const&, Foam::word const&, Foam::word const&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#6
in "/opt/openfoam220/platforms/linux64GccDPOpt/bin/blockMesh"
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
in "/opt/openfoam220/platforms/linux64GccDPOpt/bin/blockMesh"
Floating point exception (core dumped)



i don't know what the problem is!!!
would you please help me?

wyldckat December 6, 2015 13:01

Quick answer: Not enough information to diagnose the origin of the problem. Please follow the instructions given on this thread: http://www.cfd-online.com/Forums/ope...-get-help.html

edit: What you need to do is provide more details about how you got the error in the first place. For example: What is the content of the file "blockMeshDict" that resulted in that crash?

hamide December 7, 2015 05:15

Quote:

Originally Posted by wyldckat (Post 576458)
Quick answer: Not enough information to diagnose the origin of the problem. Please follow the instructions given on this thread: http://www.cfd-online.com/Forums/ope...-get-help.html

edit: What you need to do is provide more details about how you got the error in the first place. For example: What is the content of the file "blockMeshDict" that resulted in that crash?


this is my blockMeshdict:
Code:

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

convertToMeters 1;

vertices
(
    (0 0 0)
    (0.4 0 0)
    (0 0.02 0)
    (0.4 0.02 0)
    (0 0 -0.01)
    (0.4 0 -0.01)
    (0 0.02 -0.01)
    (0.4 0.02 -0.01)
);

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

edges
(
);

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

mergePatchPairs
(
);

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


wyldckat December 7, 2015 06:35

Greetings Hamide,

I've gotten a very different result from the one you reported:
Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.0-5be49240882f
Exec  : blockMesh
Date  : Dec 07 2015
Time  : 11:25:55
Host  : "machine"
PID    : 14207
Case  : /home/ofuser/OpenFOAM/ofuser-2.2.0/run/hamide/cavity
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Creating block mesh from
    "/home/ofuser/OpenFOAM/ofuser-2.2.0/run/hamide/cavity/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Creating block mesh topology
--> FOAM Warning :
    From function cellModel::mag(const labelList&, const pointField&)
    in file meshes/meshShapes/cellModel/cellModel.C at line 128
    zero or negative pyramid volume: -1.33333e-05 for face 0
--> FOAM Warning :
    From function cellModel::mag(const labelList&, const pointField&)
    in file meshes/meshShapes/cellModel/cellModel.C at line 128
    zero or negative pyramid volume: -1.33333e-05 for face 1
--> FOAM Warning :
    From function cellModel::mag(const labelList&, const pointField&)
    in file meshes/meshShapes/cellModel/cellModel.C at line 128
    zero or negative pyramid volume: -1.33333e-05 for face 2
--> FOAM Warning :
    From function cellModel::mag(const labelList&, const pointField&)
    in file meshes/meshShapes/cellModel/cellModel.C at line 128
    zero or negative pyramid volume: -1.33333e-05 for face 3
--> FOAM Warning :
    From function cellModel::mag(const labelList&, const pointField&)
    in file meshes/meshShapes/cellModel/cellModel.C at line 128
    zero or negative pyramid volume: -1.33333e-05 for face 4
--> FOAM Warning :
    From function cellModel::mag(const labelList&, const pointField&)
    in file meshes/meshShapes/cellModel/cellModel.C at line 128
    zero or negative pyramid volume: -1.33333e-05 for face 5
--> FOAM Warning :
    From function blockMesh::createTopology(IOdictionary&)
    in file blockMesh/blockMeshTopology.C at line 255
    negative volume block : 0, probably defined inside-out

Check topology

  Basic statistics
    Number of internal faces : 0
    Number of boundary faces : 6
    Number of defined boundary faces : 6
    Number of undefined boundary faces : 0
  Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 1

Writing polyMesh
----------------
Mesh Information
----------------
  boundingBox: (0 0 -0.01) (0.4 0.02 0)
  nPoints: 1212
  nCells: 500
  nFaces: 2105
  nInternalFaces: 895
----------------
Patches
----------------
  patch 0 (start: 895 size: 5) name: inlet
  patch 1 (start: 900 size: 5) name: outlet
  patch 2 (start: 905 size: 200) name: wall
  patch 3 (start: 1105 size: 1000) name: frontAndBack

End

The problem is that the order of the vertices is incorrect. Please study the OpenFOAM User Guide in more detail. You can find the location of the PDF file if you run this command:
Code:

echo $WM_PROJECT_DIR/doc/Guides-a4/UserGuide.pdf
The other possibility is for you to install OpenFOAM 3.0.0, because that version allows for any order of the vertices.

Best regards,
Bruno

hamide December 7, 2015 08:48

thank you very much
but i cant understand what you mean!!!!
do you mean i should make the finer mesh?
i don't know how improve it!!!!!! :(

hamide December 7, 2015 08:55

and the other problem is:
i'm new in openFoam. i just can run it's tutorial and change them according to my need...
i can block this geometry in pisoFoam algorithm tutorial but not in the simpleFoam!!!!!
the error i sent you was in simpleFoam algorithm tutorial

wyldckat December 7, 2015 12:38

Hi Hamide,

Quote:

Originally Posted by hamide (Post 576624)
but i cant understand what you mean!!!!
do you mean i should make the finer mesh?

I mean that the problem is explained in section 5.3 in the User Guide: http://cfd.direct/openfoam/user-guide/blockMesh/

The problem you have is with the way the vertices are ordered:
Code:

vertices
(
    (0 0 0)
    (0.4 0 0)
    (0 0.02 0)
    (0.4 0.02 0)
    (0 0 -0.01)
    (0.4 0 -0.01)
    (0 0.02 -0.01)
    (0.4 0.02 -0.01)
);

And also the way they are ordered in the "faces" lists. For example, one of the problems could be this:
Code:

        faces
        (
            (0 2 6 4)
        );

The problem might be that the correct order is possibly "(4 2 6 0)", but I don't know if that is the solution or not.

Quote:

Originally Posted by hamide (Post 576627)
i'm new in openFoam. i just can run it's tutorial and change them according to my need...
i can block this geometry in pisoFoam algorithm tutorial but not in the simpleFoam!!!!!
the error i sent you was in simpleFoam algorithm tutorial

Have you studied the 3 tutorials from the User Guide? See here: http://cfd.direct/openfoam/user-guide/tutorials/

Then you should take one step at a time. One small change and then test. Practice with each tutorial case. Learn how each detail works. Only then you should try and change to another tutorial.

Best regards,
Bruno

Mojtaba.a December 13, 2015 13:51

Quote:

Originally Posted by hamide (Post 576627)
and the other problem is:
i'm new in openFoam. i just can run it's tutorial and change them according to my need...
i can block this geometry in pisoFoam algorithm tutorial but not in the simpleFoam!!!!!
the error i sent you was in simpleFoam algorithm tutorial

Hi,

As wyldcat said you have to be careful with vertices order. I have completely taught the basics of blockMesh using the famous cavity problem OF in here.
If you had any other questions, you may ask here to get more detailed answers.

Soon there will be a Persian book out regarding "Meshing in OpenFOAM".

Best.


All times are GMT -4. The time now is 09:52.