CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Moving/rotating STL/OBJ inside SnappyHexMesh (https://www.cfd-online.com/Forums/openfoam-meshing/117841-moving-rotating-stl-obj-inside-snappyhexmesh.html)

palgroth May 16, 2013 03:20

Moving/rotating STL/OBJ inside SnappyHexMesh
 
Hi!

I would like to know if it is possible to transform an imported STL/OBJ geometry within sHM with respect to position and angle?

Best regards Pål

colinB May 16, 2013 04:09

Dear På,

since sHM is only a meshing tool this is not possible.

However if you do the transformation in advance of the meshing process
it can easily be done via the command line.

The command you are looking for is called:

surfaceTransformPoints

For the correct usage type

surfaceTransformPoints -help


Also the user guide in section 3 - utilities gives you further hints.
I know for sure that you can manipulate stl files but as far as I remember
it is also capable of treating .obj files.
This command can be used with the correct options for translating, scaling
rotating and many other surface transformations.

I hope I could contribute
regards

palgroth May 16, 2013 04:40

This is exactly what I need, thank you very much!! It works perfectly

ellenripley December 31, 2017 07:44

Sorted me out too :) Not obvious until it's obvious.


All times are GMT -4. The time now is 07:08.