CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Mesh Utilities

SnappyHexMesh generates 8823 patches

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 8, 2008, 02:44
Default I have created a background me
  #1
New Member
 
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 8
cricke is on a distinguished road
I have created a background mesh in blockMesh and imported a STL cube from blender. The final mesh locks ok but i generates 8823 patches, all with the same amount of faces and startFace. The are named cube_patch0, cube_patch1 etc...Anyone having a clue what is wrong. I have only defined one single patch in snappyHexMesh.
cricke is offline   Reply With Quote

Old   October 8, 2008, 03:33
Default You'll get a patch for every '
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
You'll get a patch for every 'solid' (region) in an stl.

Maybe you can specify inside Blender to put all in single solid? Or if your stl is in ascii format you can open it with a text editor and remove all unnecessary solids. If it is binary go back into Blender and save as ascii - binary does not support different regions.
http://en.wikipedia.org/wiki/STL_(file_format)#Binary_STL
mattijs is offline   Reply With Quote

Old   October 8, 2008, 04:25
Default Since blender cannot export as
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Since blender cannot export ascii STL, I suggest you try exporting as wavefront .obj format (which OpenFOAM can also read). This is not only slightly more memory efficient (since you don't have duplicated points everywhere), but is also easy to modify. Even if you accidentally export various groups, modifying the resulting .obj file is trivial. Eg, to remove all groups:
$ sed -ne '/^g/!p' orig.obj > new.obj

Note 1:
If you re-import .obj files into blender, make sure that you have 'clamping' turned off to avoid automatically rescaling your geometry. I hacked the python script to have it always turned off.

Note 2:
When working in blender, you might wish to use the Ctrl-N key (or Windows-N key) to activate the "Transform Properties" popup. You can then lock down all the parameters to avoid accidentally moving or resizing the object. The behaviour of the nodes edit and sculpt modes are unaffected.
olesen is offline   Reply With Quote

Old   October 8, 2008, 08:30
Default I sold it using the following
  #4
New Member
 
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 8
cricke is on a distinguished road
I sold it using the following thread. Tahnks

search title in forum:

"Blender export script for named ASCII STL's "
cricke is offline   Reply With Quote

Old   November 14, 2008, 17:28
Default I've tried using a wavefront .
  #5
New Member
 
William Humber
Join Date: Mar 2009
Posts: 4
Rep Power: 8
raptor3x is on a distinguished road
I've tried using a wavefront .obj file instead of an .stl file and while snappy seems to read it fine, it also seems to completely ignore it. Is there a special switch that needs to be used?
raptor3x 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
SnappyHexMesh howto assign boundary patches linnemann OpenFOAM Mesh Utilities 17 May 18, 2012 01:10
FoamToVTK surfaceFields generates invalid files for 2D case 7islands OpenFOAM Bugs 3 September 2, 2008 09:04
About gas generates billow Phoenics 1 June 23, 2005 11:46
extruding patches Ben CD-adapco 7 June 23, 2004 02:56
rediation patches novice CD-adapco 2 February 25, 2004 04:53


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