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

[Gmsh] Blender+Engrid+Gmsh+OpenFOAM problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2012, 10:24
Default Blender+Engrid+Gmsh+OpenFOAM problem
  #1
Member
 
Join Date: Nov 2012
Posts: 62
Rep Power: 13
Naruto is on a distinguished road
Hi,
I am quiet new in the world of CFD and open source software. That is why I am apologizing at first if my question seems too naive. Currently I am trying to build a flow model of my own. At first I drew the geometry in Blender. Then I exported the geometry in .stl format. My blender version is 2.6. Blender version 2.6 does not allow exporting geometry in ASCII .stl format.

After that I imported my geometry in engrid. I wanted to do my meshing using engrid. but for some strange reason engrid did not perform any meshing in my geometry. However, I was able to put boundary conditions to my geometry and save it in ASCII .stl format in engrid. I used Gmsh to perform meshing in the geometry. But when I tried to convert the gmsh meshes to OpenFOAM mesh using the command gmshToFoam then this error message appeared:
FOAM FATAL IO ERROR:
No cells read from file "Pro.msh"
Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)?
Perhaps you have not exported the 3D elements?

Right now I am very frustrated. I am just stuck in here. I did a lot of trial and error stuff in the last week. But I could not make it work. Please suggest me something. I am attaching my files.
Regards,
Naruto
Attached Files
File Type: zip OpenFOAM.zip (2.3 KB, 7 views)
Naruto is offline   Reply With Quote

Old   November 27, 2012, 09:01
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Dear Abdullah,

yesterday Oliver Gloth gave a feature presentation of the coming Engrid 1.4 at the southern german come together meeting in Karlsruhe.

He told me that one can export and import "engrid <-> blender" using these python scripts (that are included with the sources).
If you have not done already, copy the scripts into => .blender/.../addons
(I will write exact paths when I sit at my Linux workstation)

Did you write about your problem on http://www.engits.eu/en/forum ?
elvis is offline   Reply With Quote

Old   November 28, 2012, 02:24
Default
  #3
Member
 
Join Date: Nov 2012
Posts: 62
Rep Power: 13
Naruto is on a distinguished road
Dear Elvis,
Thank you for your kind reply. I would check. Actually I could import my geometry in engrid in binary (Blender could not provide binary .stl) .stl format. But the problem is engrid is not performing any kind of meshing in there.

But engrid has a very nice way of giving boundary conditions to a geometry. So I used engrid to give boundary conditions to my geometry and then saved it in ASCII .stl format. After that I imported that .stl file in Gmsh. Gmsh could perform meshing perfectly.

Here comes the problem. When I am running the command gmshToFoam to convert the gmsh to foam mesh I am seeing error messages in my terminal.
However I would check your solution.

I did not post my problem in engrid forum. I am thinking of posting now.
Regards,
Naruto
Naruto is offline   Reply With Quote

Reply

Tags
blender, engrid, gmsh, mesh conversion, openfoam

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] Converting gmsh to OpenFoam Friendly OpenFOAM Meshing & Mesh Conversion 3 June 26, 2018 05:46
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
[Gmsh] problem converting mesh from gmsh Fried OpenFOAM Meshing & Mesh Conversion 8 October 18, 2011 08:53
CAD -> gMsh -> enGrid -> OpenFOAM Problem AlGates OpenFOAM 7 August 6, 2010 12:46
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 11:32


All times are GMT -4. The time now is 21:45.