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

[CAD formats] Tool for Surface Preparation for SnappyHexMesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2008, 16:35
Default Tool for Surface Preparation for SnappyHexMesh
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
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, 23:51
Default Hi, Typically I use blende
  #2
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17
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, 04: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: 237
Rep Power: 18
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, 04:18
Default I haven't actually tried it, b
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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, 07:07
Default Well, that answers my question
  #5
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17
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, 14:15
Default I use Rhino which I found is l
  #6
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
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, 17:58
Default I did some tries with gmsh and
  #7
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
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, 08:07
Default Hi all, VTK comes with seve
  #8
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
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, 13:44
Default Hi, MeshLab http://meshlab.
  #9
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
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, 08:05
Default It depends. If you have an
  #10
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
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, 08:47
Default Hi, maybe ls-prepost may be
  #11
New Member
 
mediode
Join Date: Mar 2009
Posts: 27
Rep Power: 17
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, 19:01
Default I agree with Billy that having
  #12
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
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, 22:30
Default Hi, If you can't find a to
  #13
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17
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, 07:50
Default surfaceSplitByPatch?
  #14
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
surfaceSplitByPatch?
eugene is offline   Reply With Quote

Old   August 4, 2008, 10: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: 17
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, 14:27
Default VariCAD is also a pretty affor
  #16
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
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, 14:53
Default This might be also interesting
  #17
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
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, 18:16
Default Another option is to use Googl
  #18
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
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: 17
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D) Combas SU2 44 March 12, 2024 01:35
Literature search tool and database jola Main CFD Forum 0 December 4, 2016 14:56
Tool to download: SU2 post-processing Combas SU2 2 June 5, 2014 15:55
Modeling of a Forging Tool. hydro CFX 1 May 19, 2010 19:35
[mesh manipulation] ScalePoints tool cedric_duprat OpenFOAM Meshing & Mesh Conversion 6 September 19, 2008 04:15


All times are GMT -4. The time now is 03:45.