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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 20, 2017, 09:56
Default How to turn a STL geometry in OPENFOAM
  #1
New Member
 
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 3
SnappyMax is on a distinguished road
Hi guys,

Ive 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:
Im a student and Im a Beginner with Openfoam.

Thank you a lot

Max
SnappyMax is offline   Reply With Quote

Old   April 20, 2017, 10:11
Default
  #2
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 171
Rep Power: 5
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
Flowkersma is offline   Reply With Quote

Old   April 21, 2017, 06:07
Default
  #3
Member
 
LVDH's Avatar
 
Andre Z
Join Date: Dec 2009
Posts: 64
Rep Power: 10
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, 14:33
Default
  #4
New Member
 
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 3
SnappyMax is on a distinguished road
Thank you for your answers!

Unfortunately there is no text in the OFwiki to surfaceTransformPoints...
So i actually dont 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, 16:41
Default
  #5
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 171
Rep Power: 5
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, 07:33
Default
  #6
Member
 
LVDH's Avatar
 
Andre Z
Join Date: Dec 2009
Posts: 64
Rep Power: 10
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, 07:46
Default
  #7
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,303
Rep Power: 24
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 online now   Reply With Quote

Old   April 25, 2017, 11:48
Default
  #8
New Member
 
Max
Join Date: Apr 2017
Posts: 3
Rep Power: 3
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
3D geometry exported from Mimics, import to OpenFOAM seuchsy OpenFOAM Meshing & Mesh Conversion 2 October 5, 2016 08:58
How to build complex geometry in openfoam? Mark JIN OpenFOAM 4 September 18, 2016 08: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
Mesh a geometry without stl file eysteinn OpenFOAM Native Meshers: snappyHexMesh and Others 0 May 5, 2011 10:15


All times are GMT -4. The time now is 03:25.