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

[Other] How to convert a mesh into openfoam format

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2012, 00:53
Smile How to convert a mesh into openfoam format
  #1
New Member
 
Reno
Join Date: Sep 2012
Posts: 27
Rep Power: 14
jr33 is on a distinguished road
Hi foamers,

I have a following triangular meshes for a 3d geometry ( stl format).

https://dl.dropbox.com/u/68983831/Y-...sh_picture.png

so far I am using gmsh, I am trying to figure out:

How to convert above mesh ( .stl and .msh formats) into openfoam format:

If I use: gmshToFoam new.msh

--> FOAM FATAL IO ERROR:
No cells read from file "new.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: new.msh at line 4995.

From function readCells(..)
in file gmshToFoam.C at line 721.

FOAM exiting

How to fix above error.

is there any interactive or alternative software that I can use to convert a mesh into foam format i.e. into blockMeshDict.

thanks
jay

Last edited by jr33; October 1, 2012 at 01:32.
jr33 is offline   Reply With Quote

Old   October 2, 2012, 18:20
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Jay,

I think the problem you're having is due to a simple reason: you have a 3D surface mesh, not a 3D volume mesh.
This is why you're unable to convert the mesh directly to OpenFOAM, because OpenFOAM works with 3D volume meshes.

You either finish generating the mesh:
Best regards,
Bruno
__________________
wyldckat 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
[Technical] How to convert Corner-grid format to OpenFOAM mesh ELwardi OpenFOAM Meshing & Mesh Conversion 0 April 20, 2019 13:05
[Other] how to convert a mesh drawn in matlab to a format which can be used in OpenFOAM jali OpenFOAM Meshing & Mesh Conversion 3 July 19, 2017 21:16
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[Other] Mesh Conversion: OpenFoam (polyMesh format) to Calculix gillers18 OpenFOAM Meshing & Mesh Conversion 2 April 24, 2015 04:37


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