|
[Sponsors] |
April 18, 2013, 10:50 |
How to generate ".stl" file for OpenFOAM
|
#1 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
For my analysis I need a ".stl" file of a shape, but I don't know how to generate that.
The mathematical equation of my shape is below: y=B/L[1-(2x/L)^2][1-(z/D)^2] where L=4, B=0.4 and D=0.25 The shape is basically a canoe. What is the easiest way to get a shape like that? Thanks, |
|
April 18, 2013, 14:19 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
You might be able to make it using sources in paraView; they have spheres as a source, which can then be deformed and clipped accoring to your needs.
Once you have the geometry you want, then run the "Extract Surface" filter, and save the data as an STL. |
|
April 18, 2013, 14:38 |
|
#3 |
Senior Member
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 18 |
I would recommend FreeCAD. You can program shapes using Python, and it is Open Source. Another option is OpenSCAD, which is also Open source.
You can also generate your shapes with Soldiworks or even MATLAB. |
|
April 19, 2013, 03:25 |
|
#4 |
New Member
RDG
Join Date: Feb 2011
Posts: 29
Rep Power: 15 |
You could also try SALOME. I think you can make geometry from mathematical equations, apart from having powerful python scripting capabilities.
|
|
April 19, 2013, 03:45 |
|
#5 |
Senior Member
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 124
Rep Power: 19 |
A nice alternative to openscad is openJscad :
http://joostn.github.io/OpenJsCad/index.html It is based on java and runs in your webbrowser wit webGL. The programminglanguage is more powerful than openscad though. Some nice tutorials can be found Cheers Eelco |
|
April 19, 2013, 18:32 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
A couple more to add to the list:
Bruno
__________________
|
||
April 23, 2013, 10:45 |
|
#7 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Today I have learned that my university have licenses for the Creo software. I think I can use that for generating STL files too.
Thank you very much for your answers, |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Error installing swak4Foam | Hisham | OpenFOAM Community Contributions | 182 | February 8, 2024 11:36 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 05:26 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |