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

[snappyHexMesh] SnappyHexMesh generates 8823 patches

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2008, 02:44
Default SnappyHexMesh generates 8823 patches
  #1
New Member
 
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 17
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
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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: 17
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, 16:28
Default I've tried using a wavefront .
  #5
New Member
 
William Humber
Join Date: Mar 2009
Posts: 4
Rep Power: 17
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


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
Problem using AMI vinz OpenFOAM Running, Solving & CFD 298 November 13, 2023 08:19
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 04:50
[snappyHexMesh] snappyHexMesh does not create boundary patches from .stl files bug_or_feature OpenFOAM Meshing & Mesh Conversion 7 August 30, 2016 19:18
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 08:00
Regarding periodic BC in ICEM generated grid Tarak OpenFOAM 32 April 30, 2013 14:46


All times are GMT -4. The time now is 19:28.