|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Luca
Join Date: Mar 2013
Posts: 17
Rep Power: 2 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Member
Pablo Higuera
Join Date: Jan 2011
Posts: 98
Rep Power: 4 ![]() |
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
Pablo |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Luca
Join Date: Mar 2013
Posts: 17
Rep Power: 2 ![]() |
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? |
|
|
|
|
|
|
|
|
#4 |
|
Member
Jose Rey
Join Date: Oct 2012
Posts: 84
Rep Power: 6 ![]() |
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.
|
|
|
|
|
|
![]() |
| Tags |
| snappyhexmesh, stl |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| swak4Foam-groovyBC build problem | zxj160 | OpenFOAM | 17 | January 15, 2013 11: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 |