CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Other] Create a Mesh with Sketchup and Tetgen

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2015, 02:53
Default Create a Mesh with Sketchup and Tetgen
  #1
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
Here's a simple, free preprocessor/mesh generation utility.

Its a plugin for Sketchup (http://www.sketchup.com)(also free) to facilitate mesh generation with Tetgen (http://wias-berlin.de/software/tetgen/) . Supports complex geometry, multiple regions, boundaries, and refinement (both boundary and volume based). Makes generating a quality mesh with boundary markers quick and easy for complex geometry.

Check it out:
https://extensions.sketchup.com/en/c...y-tetgen-tools

Hope this helps!
Regards,
Peter
opedrofunk is offline   Reply With Quote

Old   February 17, 2015, 19:02
Default tetgen-sketchup
  #2
New Member
 
Abhinay
Join Date: Feb 2015
Location: Bethlehem, Pennsylvania
Posts: 23
Rep Power: 11
soankerabhinay is on a distinguished road
I did generate .smesh file using sketchup and was wondering how to run in tetgen and generate mesh files (.ele .node .face)

I never used tetgen directly, but used gibboncode (matlab interface for tetgen) to generate tetgen files!

Thank you!

-Abhinay
soankerabhinay is offline   Reply With Quote

Old   February 17, 2015, 19:30
Default
  #3
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
Hi,
Sure, no problem. Tetgen is a command-line tool. To start using tetgen you need to:

1) Download tetgen here: http://wias-berlin.de/software/tetgen/

2) Compile (very simple for tetgen)

Tetgen provides many options; these are detailed on the site. However, if using the sketchytetgentools sketchup preprocessor for OpenFoam, the ones of most interest probably are:

-p triangulate a plc (the smesh file)
-q create a quality mesh (also accepts parameters to control quality)
-m use the boundary sizing functions (the .mtr file generated)
-A apply the region/boundary attributes (important)
-a if you specified a tet size on the region, this flag will cause tetgen to enforce that

I typically specify refinement on the boundaries (i.e., using the mtr file), so the command and options I most commonly use are:

Code:
$ tetgen -pq1.414Am input_file.smesh
Hopefully, that should be enough to get started. After that, have a look at the documentation and try a few combinations :-)

Kind regards,
Peter
opedrofunk is offline   Reply With Quote

Old   February 18, 2015, 00:59
Default
  #4
New Member
 
Abhinay
Join Date: Feb 2015
Location: Bethlehem, Pennsylvania
Posts: 23
Rep Power: 11
soankerabhinay is on a distinguished road
I did download the file! I am confused with platform I need to run this code $ "tetgen -pq1.414Am input_file.smesh." where do I have to type this command, is it the C++ platform or some other command line tool ?

Sorry for the ignorance! but please bear with my questions! Thank you
soankerabhinay is offline   Reply With Quote

Old   February 18, 2015, 02:51
Default
  #5
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
Are you running linux? Windows? Mac?
opedrofunk is offline   Reply With Quote

Old   February 18, 2015, 02:55
Default
  #6
New Member
 
Abhinay
Join Date: Feb 2015
Location: Bethlehem, Pennsylvania
Posts: 23
Rep Power: 11
soankerabhinay is on a distinguished road
windows!!!!
soankerabhinay 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
Best Mesh generation software ehsanakrami Mesh Generation & Pre-Processing 3 February 4, 2015 02:45


All times are GMT -4. The time now is 22:14.