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

Tool for Surface Preparation for SnappyHexMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 27, 2008, 15:35
Default Hi group, after I tested Sn
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
Hi group,

after I tested SnappyHexMEsh I think it is a great tool. What I am still seeking for is a tool to do some preparations on surface (convert iges-geometry to mesh, split surface into parts, name parts, save as stl...)
I am considering tools like blender or gmsh for that. What do others use for this? Any recommendations? Thanks.
bastil is offline   Reply With Quote

Old   July 27, 2008, 22:51
Default Hi, Typically I use blende
  #2
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 81
Rep Power: 8
andersking is on a distinguished road
Hi,

Typically I use blender for my geometry creation. Quite good (and fast), once you get used to the interface.

The default stl export from blender is not so great. Especially as binary stl's seem to give one patch per facet in OF-1.5.

I have an ascii stl export script which I will post when its done. Allows ascii export with named objects/surfaces. These names can then be directly used in snappyHexMesh as patches/refinement areas.

Cheers,
Andrew
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   July 28, 2008, 03:03
Default As far as I know, binary STL c
  #3
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 215
Rep Power: 9
fra76 is on a distinguished road
As far as I know, binary STL cannot contain patch names as strings, that's why you have only one patch. You will have the same behaviour if you load that STL into another program, I guess.

Bye,
Francesco
fra76 is offline   Reply With Quote

Old   July 28, 2008, 03:18
Default I haven't actually tried it, b
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
I haven't actually tried it, but can't you use other formats instead of stl? Eg, I find the Wavefront .obj quite nice to work with.

Since the type is 'triSurface', I think it should handle any of the supported input formats: stl, gts, obj, off, tri, ac, nas.
olesen is offline   Reply With Quote

Old   July 28, 2008, 06:07
Default Well, that answers my question
  #5
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 81
Rep Power: 8
andersking is on a distinguished road
Well, that answers my question then ;-).

Anyway I only use stls as that was the best format I could find that was supported by netgen/gmsh and blender. Haven't tried any of the others.

Anyway, I have posted the script in another thread, http://www.cfd-online.com/OpenFOAM_D...5095#POST25114

Cheers,
Andrew
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   July 28, 2008, 13:15
Default I use Rhino which I found is l
  #6
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 8
billy is on a distinguished road
I use Rhino which I found is low cost compared to other CADs. You can download the evaluation version and test it.

If you want something free, maybe you can try FreeCAD.
billy is offline   Reply With Quote

Old   July 28, 2008, 16:58
Default I did some tries with gmsh and
  #7
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
I did some tries with gmsh and blender now. Using the motorbike from the tutorials both of them obviously only import the first part of the motorbike. How can these multi-part stls be handled?
Thanks.
bastil is offline   Reply With Quote

Old   July 31, 2008, 07:07
Default Hi all, VTK comes with seve
  #8
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 579
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi all,

VTK comes with several Reader and Writer libraries for
Wavefront .obj vtkOBJReader http://www.vtk.org/doc/nightly/html/...OBJReader.html
STL (ascii/binary) writer vtkSTLWriter

so converting should be easy

elvis
elvis is offline   Reply With Quote

Old   July 31, 2008, 12:44
Default Hi, MeshLab http://meshlab.
  #9
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 579
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,

MeshLab http://meshlab.sourceforge.net/ might be a good choice for converting from
# import:PLY, STL, OFF, OBJ, 3DS, COLLADA, PTX
to STL

elvis
elvis is offline   Reply With Quote

Old   August 1, 2008, 07:05
Default It depends. If you have an
  #10
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 8
billy is on a distinguished road
It depends.

If you have an IGES or STEP format to begin with, the only free tool I can think of would be based on OpenCASCADE technology. OpenCASCADE has an MFC example for import (IGES, STEP, BREP) and export (IGES, STEP, BREP, STL).
billy is offline   Reply With Quote

Old   August 1, 2008, 07:47
Default Hi, maybe ls-prepost may be
  #11
New Member
 
mediode
Join Date: Mar 2009
Posts: 26
Rep Power: 8
mediode is on a distinguished road
Hi,

maybe ls-prepost may be of interest for someone. It reads IGS, STP, VDA and couple of others and exports STL (&more) as well (furthermore it can customized).
Dowmload was a bit tricky, check out the googlegroup.

http://www.lstc.com/lspp/
mediode is offline   Reply With Quote

Old   August 3, 2008, 18:01
Default I agree with Billy that having
  #12
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
I agree with Billy that having geometry tools are limited (I see OpenCascade-based Salome and gmsh). However, I have suface meshes in stl (like the motorbike tutorial) and want to regroup or modify it.
Problem with the tutorial for gmsh, Blender and Paraview: I can only import one of the groups... So I do not get he complete motorbike.

Regards.
bastil is offline   Reply With Quote

Old   August 3, 2008, 21:30
Default Hi, If you can't find a to
  #13
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 81
Rep Power: 8
andersking is on a distinguished road
Hi,

If you can't find a tool (and you're a sucker for punishment ;-) ), you can always open up the ascii stl and save each

solid <name>
...
endsolid


group as a separate file. I think it should be easy to script this. Alternatively you can use admesh ( http://www.varlog.com/index.html ) to convert an ascii stl to binary - this combines the all the groups into one (unfortunately losing all the group information though - see Francesco's post above).

Cheers
Andrew
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   August 4, 2008, 06:50
Default surfaceSplitByPatch?
  #14
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
surfaceSplitByPatch?
eugene is offline   Reply With Quote

Old   August 4, 2008, 09:53
Default You might want to take a look
  #15
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 8
gocarts is on a distinguished road
You might want to take a look at SymLab with its Exchange add-on that imports/exports IGES, STEP and STL. For full geometry creation and meshing control consider the Professional add-on.

The SymLab framework uses OpenCascade as its geometry engine, VTK for visualization and wxWidgets as its cross-platform GUI.

In the works is an OpenFOAM add-on to seamlessly setup, mesh, run and visualize cases within SymLab.

Full Disclosure: I represent Symscape the developer of SymLab.
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   August 5, 2008, 13:27
Default VariCAD is also a pretty affor
  #16
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 8
billy is on a distinguished road
VariCAD is also a pretty affordable CAD system for linux:

http://www.varicad.com

I tried ASCON free KOMPAS LT but unfortunately it doesn't have STL export.

http://ascon.net/download.php
billy is offline   Reply With Quote

Old   August 5, 2008, 13:53
Default This might be also interesting
  #17
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 8
billy is on a distinguished road
This might be also interesting:

http://www.susqu.edu/facstaff/b/brak...r/evolver.html

It seems to be able to read IGES.
billy is offline   Reply With Quote

Old   August 5, 2008, 17:16
Default Another option is to use Googl
  #18
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 46
Rep Power: 8
roth is on a distinguished road
Another option is to use Google Sketchup (free):
http://sketchup.google.com/

Then export with the su2stl Sketchup add-on (free):
http://www.crai.archi.fr/RubyLibrary...m_fil_page.htm
roth is offline   Reply With Quote

Old   November 17, 2008, 17:49
Default Hi, I just stumbled on the ne
  #19
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 8
segersson is on a distinguished road
Hi,
I just stumbled on the new CADspan plugin for Sketchup (http://www.cadspan.com/). It seems to be a perfect tool to clean up and export water tight STL-files from Sketchup. They want a small fee for commercial users though.
segersson 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
Gambit - sliding mesh preparation mistake Maciej FLUENT 5 February 21, 2012 06:32
Surface boundary mesh in snappyHexMesh bastil OpenFOAM Mesh Utilities 7 February 3, 2012 08:37
SnappyHexMesh erik023 OpenFOAM Mesh Utilities 19 October 17, 2010 10:09
SnappyHexMesh plane surface bounding box podallaire OpenFOAM Bugs 22 August 26, 2009 07:34
Import Surface from HyperMesh to snappyHexMesh bastil OpenFOAM Mesh Utilities 7 October 7, 2008 07:32


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