|
[Sponsors] |
April 19, 2012, 09:15 |
Defining boundary conditions STL file
|
#1 |
New Member
Join Date: Apr 2012
Posts: 5
Rep Power: 14 |
Hi,
Since I just started exploring OpenFOAM I have a basic question. I want to make a simulation of the air distribution in a building. I have the geometry available in an STL file (the building is drawn with AutoCAD). The STL file consists of one single block (containing the building, i.e. the walls, floor and ceiling). Inside it is open and this is the space where of course the air distribution has to be calculated. So in the STL file there isn't any boundary condition prescribed yet (for instance there isn't an opening in a wall where air from outside can come in, the opening is something I have to create). How can I define such an opening and get the geometry running in OpenFOAM? I have been playing with Salome and Engrid but it is not clear to me. It seems I cannot make any changes to the STL geometry. I hope my question is clear. Best regards, Marco |
|
April 19, 2012, 09:33 |
|
#2 |
Senior Member
|
I would usually separate some of the triangles of your stl to a different stl file, give the latter a different name and use it to set a boundary condition on it.
|
|
April 19, 2012, 09:40 |
|
#3 |
New Member
Join Date: Apr 2012
Posts: 5
Rep Power: 14 |
Thanks for your reply.
So Openfoam can read in multiple STL files? What would be the best pre-processor to make the separation? It seems some triangles are really big, maybe bigger than the opening I want to create. Do you have an idea for this? |
|
April 19, 2012, 09:43 |
|
#4 |
Senior Member
|
Yes, it can read multiple stl or even a stl with multiple regions in it.
About your problem, there are specific softwares that can do what you ask, but probably in your case the easiest way would be that of using a cad, cut the hole and save the file as building.stl, then generate a surface to cover your hole and save it as inlet.stl (or whatever you'd like). Any cad can do that. |
|
April 19, 2012, 10:01 |
|
#5 |
New Member
Join Date: Apr 2012
Posts: 5
Rep Power: 14 |
I dont have a lot of experience with CAD programs. I only have the STL file. Can I read that in into a CAD program and make the changes you suggest?
|
|
April 19, 2012, 10:06 |
|
#6 |
Senior Member
|
Yes, any cad software can do that.
|
|
April 19, 2012, 10:28 |
|
#7 |
New Member
Join Date: Apr 2012
Posts: 5
Rep Power: 14 |
I have AutoCAD but it cannot open STL files, only export it in that format.
|
|
May 23, 2012, 09:06 |
|
#8 |
Senior Member
|
Hi,
you might take a look at Blender For an older Blender versions there are even OpenFoam related Tutorials http://openfoamwiki.net/index.php/Tut_andrew_blender nice thread here http://www.cfd-online.com/Forums/ope...cii-stlbs.html http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro for different Blender tasks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
wmake compiling new solver | mksca | OpenFOAM Programming & Development | 14 | June 22, 2018 07:29 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |