CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to turn a STL geometry in OPENFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Flowkersma

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2017, 10:56
Default How to turn a STL geometry in OPENFOAM
  #1
New Member
 
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 9
SnappyMax is on a distinguished road
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
SnappyMax is offline   Reply With Quote

Old   April 20, 2017, 11:11
Default
  #2
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13
Flowkersma is on a distinguished road
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))"
Best,
Mikko
spalartallmaras and fly_light like this.
Flowkersma is offline   Reply With Quote

Old   April 21, 2017, 07:07
Default
  #3
Member
 
LVDH's Avatar
 
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17
LVDH is on a distinguished road
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
LVDH is offline   Reply With Quote

Old   April 24, 2017, 15:33
Default
  #4
New Member
 
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 9
SnappyMax is on a distinguished road
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
SnappyMax is offline   Reply With Quote

Old   April 24, 2017, 17:41
Default
  #5
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13
Flowkersma is on a distinguished road
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.
Flowkersma is offline   Reply With Quote

Old   April 25, 2017, 08:33
Default
  #6
Member
 
LVDH's Avatar
 
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17
LVDH is on a distinguished road
Hi,
sometimes you do not have to look that far.
With OF sourced, just type:
Code:
surfaceTransformPoints -help
This will give you this idea:
Code:
surfaceTransformPoints -scale '(1 -1 1)' <original_file.stl> <mirrored_file.stl>
__________________
www.MantiumCAE.com
LVDH is offline   Reply With Quote

Old   April 25, 2017, 08:46
Default
  #7
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Quote:
Originally Posted by SnappyMax View Post
Unfortunately there is no text in the OFwiki to surfaceTransformPoints...
Surely you will fix that now? The wiki already has a similar entry for transforming volume meshes you can use as a guideline:
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.
akidess is offline   Reply With Quote

Old   April 25, 2017, 12:48
Default
  #8
New Member
 
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 9
SnappyMax is on a distinguished road
Thank you sooo much guys!!

I really did it!

I wish the best to all of you.

Max
SnappyMax is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:36.