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

How to generate ".stl" file for OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2013, 09:50
Default How to generate ".stl" file for OpenFOAM
  #1
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
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,
kilroy is offline   Reply With Quote

Old   April 18, 2013, 13:19
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727
Rep Power: 18
mturcios777 will become famous soon enough
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.
mturcios777 is offline   Reply With Quote

Old   April 18, 2013, 13:38
Default
  #3
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 127
Rep Power: 9
JR22 will become famous soon enough
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.
JR22 is offline   Reply With Quote

Old   April 19, 2013, 02:25
Default
  #4
New Member
 
RDG
Join Date: Feb 2011
Posts: 29
Rep Power: 7
onyir is on a distinguished road
You could also try SALOME. I think you can make geometry from mathematical equations, apart from having powerful python scripting capabilities.
onyir is offline   Reply With Quote

Old   April 19, 2013, 02:45
Default
  #5
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 123
Rep Power: 9
eelcovv is on a distinguished road
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
eelcovv is offline   Reply With Quote

Old   April 19, 2013, 17:32
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,198
Blog Entries: 34
Rep Power: 93
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

A couple more to add to the list:
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 23, 2013, 09:45
Default
  #7
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
kilroy is on a distinguished road
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,
kilroy 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
Error installing swak4Foam Hisham OpenFOAM Installation 130 December 18, 2015 05:23
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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