|
[Sponsors] |
[snappyHexMesh] SnappyHexMesh generates 8823 patches |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 8, 2008, 02:44 |
SnappyHexMesh generates 8823 patches
|
#1 |
New Member
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 17 |
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.
|
|
October 8, 2008, 03:33 |
You'll get a patch for every '
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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 |
|
October 8, 2008, 04:25 |
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 |
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. |
|
October 8, 2008, 08:30 |
I sold it using the following
|
#4 |
New Member
Christofer Ivarsson
Join Date: Mar 2009
Posts: 21
Rep Power: 17 |
I sold it using the following thread. Tahnks
search title in forum: "Blender export script for named ASCII STL's " |
|
November 14, 2008, 16:28 |
I've tried using a wavefront .
|
#5 |
New Member
William Humber
Join Date: Mar 2009
Posts: 4
Rep Power: 17 |
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?
|
|
|
|
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 |