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

create an STL file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 24, 2013, 23:59
Default create an STL file
  #1
Pj.
Member
 
Luca
Join Date: Mar 2013
Posts: 49
Rep Power: 3
Pj. is on a distinguished road
Hi everybody,

it's an easy question, but i couldn't find an answer on the forum:

i need to create and stl file (for snappyHex) of a rectangular parallelepiped keeping the surfaces separated to allow force coeffs to gives me the force coefficient of each face.

I'm able to use AutoCAD, but when i create the stl it asks me to use a volume, so all the faces got "merged" in one surface.

Is there a way to do this with AutoCAD? Or have I to use another program? In case, can you tell me an easy one to use?

Thank you very much
Pj. is offline   Reply With Quote

Old   April 25, 2013, 02:58
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Posts: 161
Rep Power: 5
Phicau is on a distinguished road
Hi

for such a simple case you can do it by hand or set up a script. Find here the stl file for 2 faces:

Code:
solid face1
facet normal -0.000000 0.0 1.000000
   outer loop
      vertex 0.000000 1.000000 0.500000 
      vertex 0.000000 -1.000000 0.500000 
      vertex 10.000000 -1.000000 0.500000 
   endloop
endfacet
facet normal -0.000000 0.0 1.000000
   outer loop
      vertex 0.000000 1.000000 0.500000 
      vertex 10.000000 1.000000 0.500000 
      vertex 10.000000 -1.000000 0.500000 
   endloop
endfacet
endsolid face1
solid face2
facet normal -0.000000 0.0 1.000000
   outer loop
      vertex 0.000000 1.000000 -0.500000 
      vertex 0.000000 -1.000000 -0.500000 
      vertex 10.000000 -1.000000 -0.500000 
   endloop
endfacet
facet normal -0.000000 0.0 1.000000
   outer loop
      vertex 0.000000 1.000000 -0.500000 
      vertex 10.000000 1.000000 -0.500000 
      vertex 10.000000 -1.000000 -0.500000 
   endloop
endfacet
endsolid face2
Best,

Pablo
Phicau is offline   Reply With Quote

Old   April 25, 2013, 04:51
Default
  #3
Pj.
Member
 
Luca
Join Date: Mar 2013
Posts: 49
Rep Power: 3
Pj. is on a distinguished road
Thank you very much. For this first phase I'll try to do what you say.

For more complex cases (that i'll have to face later) instead, how can i do?
Pj. is offline   Reply With Quote

Old   April 25, 2013, 06:12
Default CAD software for generating STLs
  #4
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 113
Rep Power: 7
JR22 will become famous soon enough
It has to be a solid, not just a collection of edges. Its been a while since I've used AutoCAD, but I think by default you just get a collection of edges. You can do solids with AutoCAD, but Inventor (also Autodesk), solidworks, etc, are made for solids modeling. There are many open source and free options for solids modeling CAD software, here are some (from this thread):In the case of many of these packages, you make the solid, then create a mesh from that solid, then export that mesh as a ASCII-STL.
JR22 is offline   Reply With Quote

Reply

Tags
snappyhexmesh, stl

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
swak4Foam-groovyBC build problem zxj160 OpenFOAM 18 July 30, 2013 13:14
funkySetFields compilation error tayo OpenFOAM 39 December 3, 2012 05:18
problem on installing swak4Foam navid2 OpenFOAM Installation 2 May 30, 2012 04:32
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 35 March 1, 2012 20:41


All times are GMT -4. The time now is 01:26.