CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

STL exported from CATIA and snappyHexMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 9, 2012, 13:02
Default STL exported from CATIA and snappyHexMesh
  #1
ma-
New Member
 
Join Date: Apr 2012
Posts: 2
Rep Power: 0
ma- is on a distinguished road
Hello everyone,

I'm new to openFoam and I'm trying to use snappyHexMesh with a file I exported from CATIA as STL.

I took flange as an example from the tutorials, but it seems that I'm missing something.

1. I put my STL file in the triSurface folder
2. I edited the sHMD according to it
3. After running "Allrun" from the root folder successfully, I can't see my profiles in paraview.

I'm suspecting the blockMeshDict to be incorrect. Especially the vertices part.

In my STL file, vertex coordinates go approximately from -1.0e-002 to 6.0e+002.
I can't see how I should update the blockMeshDict to match those values.

Or maybe I'm completely missing the point ?

What am I doing wrong ?

NB: I've attached my STL file to this thread
Attached Files
File Type: gz profils.stl.gz (15.8 KB, 9 views)
ma- is offline   Reply With Quote

Old   April 9, 2012, 13:11
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 443
Rep Power: 8
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Hi Ma!
the problem is that you have 2D profiles. You need some 3D bodies to get them picked up by snappy otherwise you'll end up with your blockMesh mesh only…

Whether you want to run a 2D or 3D simulation, you still need a 3D geometry.
__________________
I use PowerFLOW!
lovecraft22 is offline   Reply With Quote

Old   April 9, 2012, 13:35
Default
  #3
ma-
New Member
 
Join Date: Apr 2012
Posts: 2
Rep Power: 0
ma- is on a distinguished road
Hello lovecraft22,

Thank you for your answer.
I indeed want a 2D simulation.

Actually, my profiles are extruded, but very thin (< 1mm). Isn't that enough ?


In a past experience, I meshed a single profile with gmsh, and I had to extrude a tiny bit out of it (1 mesh depth) and it went well.

My goal here is to reproduce it with snappyHexMesh and 3 naca profiles.
ma- is offline   Reply With Quote

Old   April 9, 2012, 14:06
Default
  #4
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 443
Rep Power: 8
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
In my experience sHM messes a little bit with thin geometries, that means that if you have a thin surface you need a very fine mesh to avoid sHM to bridge across the surface. So, I would suggest you to extrude your profiles a little bit and have a blockMesh shorter than their span. So, if you extrude them by 50mm you block mesh should be 40mm wide. This way you can then generate the mesh to perform a 2d simulation.

One your mesh is done you'll end up with a 3D mesh. You'll then need to extrude one of the faces to have a 2D mesh.

Always remember that openFoam can perform 2D simulation but the geometry and the domain need to be 3D anyway.

I hope that's clear, if is not, just let me know.
__________________
I use PowerFLOW!
lovecraft22 is offline   Reply With Quote

Reply

Tags
catia, snappyhexmesh, stl

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
Strange cells created by SnappyHexMesh newToOpenFoam OpenFOAM Native Meshers: snappyHexMesh and Others 3 December 22, 2012 09:13
Catia to snappyHexMesh bgarrood OpenFOAM Native Meshers: snappyHexMesh and Others 10 April 6, 2012 02:54
STL - File and sHM Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 0 November 14, 2010 08:12
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 19:43


All times are GMT -4. The time now is 18:17.