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/)
-   -   [Gmsh] gmshToFoam telling me I didn't export 3D elements... (https://www.cfd-online.com/Forums/openfoam-meshing/179858-gmshtofoam-telling-me-i-didnt-export-3d-elements.html)

APCoding November 8, 2016 20:22

gmshToFoam telling me I didn't export 3D elements...
 
Hi!

I'm trying to use gmshToFoam to convert a mesh. I get an error, and I don't know what it means. Does it mean I need to have volumes, not just surfaces? Does it mean the meshing didn't work out? Or something else? I can attach something else if I need too. Thanks!

Here's an image of the mesh:
Mesh

Here's the entire output of the command:
Code:

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

Starting to read mesh format at line 2
Read format version 2.2  ascii 0

Starting to read physical names at line 5
Physical names:4
    Surface 1        front
    Surface 2        back
    Surface 3        freestream
    Surface 4        rotor

Starting to read points at line 12
Vertices to be read:40
Vertices read:40

Starting to read cells at line 55
Cells to be read:72

Mapping region 4 to Foam patch 0
Mapping region 3 to Foam patch 1
Mapping region 2 to Foam patch 2
Mapping region 1 to Foam patch 3
Cells:
    total:0
    hex  :0
    prism:0
    pyr  :0
    tet  :0



--> FOAM FATAL IO ERROR:
No cells read from file "mesh.msh"
Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)?
Perhaps you have not exported the 3D elements?

file: mesh.msh at line 129.

    From function void readCells(const scalar, const bool, const pointField &, const Map<label> &, Foam::IFstream &, cellShapeList &, labelList &, List<DynamicList<Foam::face> > &, labelList &, List<DynamicList<label> > &)
    in file gmshToFoam.C at line 726.

FOAM exiting


alexeym November 9, 2016 15:53

Hi,

http://www.cfd-online.com/Forums/ope...mshtofoam.html

Basically to have cells in a mesh you have to define physical volume.


All times are GMT -4. The time now is 00:01.