|
[Sponsors] |
April 20, 2017, 10:56 |
How to turn a STL geometry in OPENFOAM
|
#1 |
New Member
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 9 |
Hi guys,
I´ve got a Problem with my STL geometry because it needs to be turned by 180 degree. Do you now any possbility to turn it with an Openfoam code instead of using Catia etc. To me: I´m a student and I´m a Beginner with Openfoam. Thank you a lot Max |
|
April 20, 2017, 11:11 |
|
#2 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi Max,
Here is a link for the OpenFOAM surface utilities in OFwiki. You are looking for surfaceTransformPoints. Here is an example command: Code:
surfaceTransformPoints yourstlfile.stl outputstlfile.stl -rotate "((1 0 0) (0 0 1))" Mikko |
|
April 21, 2017, 07:07 |
|
#3 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17 |
With rotating by 180° using the "-rotate" command I sometimes had my problems (maybe brain). I find it easier to use "-scale" with a factor of -1 in the direction of your interest.
__________________
www.MantiumCAE.com |
|
April 24, 2017, 15:33 |
|
#4 |
New Member
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 9 |
Thank you for your answers!
Unfortunately there is no text in the OFwiki to surfaceTransformPoints... So i actually don´t now where to put your code Mikko ? Where do you usually put it? And to LVDH where can I find this scale ? Thanks so far! Max |
|
April 24, 2017, 17:41 |
|
#5 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
surfaceTransformPoints is an executable which comes with OpenFOAM. So, if you have your OpenFOAM environment loaded just write the name of the utility to the terminal with the parameters (see the command in my previous post). I suggest you to look at the guide to learn the basics of OpenFOAM.
|
|
April 25, 2017, 08:33 |
|
#6 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17 |
Hi,
sometimes you do not have to look that far. With OF sourced, just type: Code:
surfaceTransformPoints -help Code:
surfaceTransformPoints -scale '(1 -1 1)' <original_file.stl> <mirrored_file.stl>
__________________
www.MantiumCAE.com |
|
April 25, 2017, 08:46 |
|
#7 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Quote:
https://openfoamwiki.net/index.php/TransformPoints By the way, first hit on google: http://www.sourceflux.de/blog/transf...ansformpoints/
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
||
April 25, 2017, 12:48 |
|
#8 |
New Member
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 9 |
Thank you sooo much guys!!
I really did it! I wish the best to all of you. Max |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] 3D geometry exported from Mimics, import to OpenFOAM | seuchsy | OpenFOAM Meshing & Mesh Conversion | 2 | October 5, 2016 09:58 |
How to build complex geometry in openfoam? | Mark JIN | OpenFOAM | 4 | September 18, 2016 09:38 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 04:18 |
[ICEM] simplify STL geometry and export it to COMSOL | CRT | ANSYS Meshing & Geometry | 2 | November 13, 2012 09:19 |
[snappyHexMesh] Mesh a geometry without stl file | eysteinn | OpenFOAM Meshing & Mesh Conversion | 0 | May 5, 2011 11:15 |