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

[Gmsh] gmshToFoam telling me I didn't export 3D elements...

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2016, 20:22
Default gmshToFoam telling me I didn't export 3D elements...
  #1
New Member
 
Peter
Join Date: Sep 2016
Posts: 13
Rep Power: 9
APCoding is on a distinguished road
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
APCoding is offline   Reply With Quote

Old   November 9, 2016, 15:53
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

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

Basically to have cells in a mesh you have to define physical volume.
alexeym 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
Hexahedral elements created from pyformex for abaqus/cfd zxw2006063 Mesh Generation & Pre-Processing 3 December 5, 2016 15:49
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 10:49
[ICEM] How to improve bad quality elements that are obtained after creating prism layers? Rohith Giridhar ANSYS Meshing & Geometry 2 July 11, 2015 18:04
[GAMBIT] Export to FLUENT tsero ANSYS Meshing & Geometry 2 September 28, 2011 01:39
[Gmsh] Modified gmshToFoam to help import hexahedral and prism elements from Gmsh adorean OpenFOAM Meshing & Mesh Conversion 1 April 18, 2005 08:19


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