CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Import gmsh msh to Foam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 27, 2005, 04:34
Default Have a search on this site for
  #21
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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, 07:42
Default Hallo Mattijs, I have used t
  #22
aap
New Member
 
Amalia Apalategui
Join Date: Mar 2009
Posts: 13
Rep Power: 8
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, 07:57
Default Are you sure that are you usin
  #23
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 8
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, 08:10
Default Hi Daniele! you are right!
  #24
aap
New Member
 
Amalia Apalategui
Join Date: Mar 2009
Posts: 13
Rep Power: 8
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, 08:19
Default follow the steps that are in t
  #25
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 8
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 18 April 22, 2015 08:43
gmsh jojo Main CFD Forum 5 August 31, 2009 23:11
ChannelOodles with gmsh lofty Open Source Meshers: Gmsh, Netgen, CGNS, ... 7 April 16, 2008 16:44
Gmsh with physicals Rasmus Gjesing (Gjesing) Open Source Meshers: Gmsh, Netgen, CGNS, ... 9 February 2, 2006 15:36
Modified gmshToFoam to help import hexahedral and prism elements from Gmsh adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 1 April 18, 2005 08:19


All times are GMT -4. The time now is 04:54.