CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   How to position an object (STL) in the domain? (http://www.cfd-online.com/Forums/openfoam/84215-how-position-object-stl-domain.html)

klausb January 23, 2011 14:54

How to position an object (STL) in the domain?
 
Hello,

how is an object (STL format) positioned in the domain?

It's a symmetical 3D case and the object should be positioned at 50% of the domain hight, 20% of the domain length and start at the symmetrie face.

Klaus

elvis January 24, 2011 05:00

Hi,

are you talking about position a STL object that will be used for SnappyHexMesh?
you can change either the position via your blockmesh(dict). you can visulize you blockmesh http://openfoamwiki.net/index.php/Co...ayBlockMesh.py

if you want to position your STL you write a short VTK programm (maybe paraview can help you as well) to rotate/translate your object.

Maybe discretizer might help you as well http://www.discretizer.org/

jhoepken January 24, 2011 09:15

As an alternative, you could try to use admesh to translate, rotate and scale the STL file. I've used it for the same purpose, but it messed up my STL file. Now I am using python + VTK for that purpose.

aerothermal January 24, 2011 14:03

Hi,

Usually I do the translation or rotation in enGrid software.
It is really nice because you can visualize the result immediately.

Regards,

aerothermal


All times are GMT -4. The time now is 20:06.