CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   How to generate ".stl" file for OpenFOAM (http://www.cfd-online.com/Forums/openfoam/116407-how-generate-stl-file-openfoam.html)

kilroy April 18, 2013 09:50

How to generate ".stl" file for OpenFOAM
 
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,

mturcios777 April 18, 2013 13:19

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.

JR22 April 18, 2013 13:38

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.

onyir April 19, 2013 02:25

You could also try SALOME. I think you can make geometry from mathematical equations, apart from having powerful python scripting capabilities.

eelcovv April 19, 2013 02:45

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

wyldckat April 19, 2013 17:32

Greetings to all!

A couple more to add to the list:
Best regards,
Bruno

kilroy April 23, 2013 09:45

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,


All times are GMT -4. The time now is 19:34.