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

[Gmsh] Import gmsh msh to Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2005, 05:34
Default Have a search on this site for
  #21
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Have a search on this site for gmshToFoam. This is a well known problem. Also there is a gmshToFoam.C (replacement source code for mesh/conversion/gmshToFoam/gmshToFoam.C) attached on this site somewhere which you might want to use instead.
mattijs is offline   Reply With Quote

Old   April 27, 2005, 08:42
Default Hallo Mattijs, I have used t
  #22
aap
New Member
 
Amalia Apalategui
Join Date: Mar 2009
Posts: 13
Rep Power: 17
aap is on a distinguished road
Hallo Mattijs,
I have used the new version of the gmshToFoam.C file. I have run my mesh (a 3d one) and I get problems again. It seems that it is not possible to create cells.

-->
ead nVerts:665

Read nElems:1443

Mapping region 19 to Foam patch 0
Mapping region 20 to Foam patch 1
Mapping region 21 to Foam patch 2
Mapping region 22 to Foam patch 3
Mapping region 23 to Foam patch 4
Mapping region 24 to Foam patch 5
Cells:
total:0
hex :0
prism:0
pyr :0
tet :0

Patches:
Patch Size
0 156
1 144
2 271
3 238
4 269
5 248



--> FOAM FATAL ERROR : faces deallocated

Function: const faceList& polyMesh::allFaces() const
in file: meshes/polyMesh/polyMesh.C at line: 562.

FOAM aborting

Do you have any idea what I am doing wrong?
Thanks
Amalia
aap is offline   Reply With Quote

Old   April 27, 2005, 08:57
Default Are you sure that are you usin
  #23
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
Are you sure that are you using 3D elements?
I got the same kind of error when I was trying to import 2D elements.

check in the mesh file if the elements are Tetrahedron (4 nodes) or Hexahedron (8 nodes).

In the list of the element the second number corresponds to the element type ( 4 for Tetrahedron and 5 for Hexahedron ).

the color of the grid in gmsh should be all orange ( with the default color settings )

I hope to help you,

Daniele
panara is offline   Reply With Quote

Old   April 27, 2005, 09:10
Default Hi Daniele! you are right!
  #24
aap
New Member
 
Amalia Apalategui
Join Date: Mar 2009
Posts: 13
Rep Power: 17
aap is on a distinguished road
Hi Daniele!

you are right! I am using a 2D mesh. Do you know how can I obtain a 3D mesh?
Thanks a lot
Amalia
aap is offline   Reply With Quote

Old   April 27, 2005, 09:19
Default follow the steps that are in t
  #25
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
follow the steps that are in the gmsh manual...
there are different ways, for example you can use the transfinite algorithm...

In that case pay attention on the order of the faces..

good luck =)

Daniele
panara 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
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 08:53
MSH Import Vivek Vasudevan FLUENT 6 March 30, 2007 11:53
MSH file import Vivek Vasudevan Main CFD Forum 2 March 19, 2007 20:03


All times are GMT -4. The time now is 12:13.