CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Post-Processing

surfaceTransformPoints -rotate

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By ynos
  • 1 Post By wyldckat

LinkBack Thread Tools Display Modes
Old   July 11, 2012, 10:28
Default surfaceTransformPoints -rotate
Join Date: Jan 2011
Posts: 37
Rep Power: 8
ynos is on a distinguished road
Dear Foarmers
I have a problem with the next command: surfaceTransformPoints
I can rotate the stl using
surfaceTransformPoints cad.stl cad-r.stl -yawPitchRoll "(0 -5 0)"
but if i want to rotate the stl from another point different (0,0,0), example rotate the stl from to (0 2.5 0) how i can do it.
Thanks in advanced
mo_na likes this.
ynos is offline   Reply With Quote

Old   July 11, 2012, 15:35
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,020
Blog Entries: 39
Rep Power: 109
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Greetings ynos,You'll have to do it in multiple runs. This is because surfaceTransformPoints (as well as transformPoints)was designed to do basic space transformations, one at a time. Additionally, there is (or at least was) a known bug where for rotating 180 degrees it requires that we do 2 runs of 90 degrees each... or something like that.

So - if I understood you correctly - in your case:
  1. Translate points, so that the new origin coincides with the rotation center you want.
  2. Rotate points, as you intended.
  3. Translate back again, using the opposite vector used for the first step.
Best regards,
peppino likes this.
wyldckat is offline   Reply With Quote


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
[GAMBIT] Rotate and revolute possible ? Ijaz ANSYS Meshing & Geometry 19 January 27, 2012 00:36
[ANSYS Meshing] meshing for rotate and revolute Ijaz ANSYS Meshing & Geometry 0 December 25, 2011 17:51
Rotate Hexa Mesh JJ CFX 2 July 14, 2008 05:53
Rotate mesh Bo FLUENT 1 January 10, 2007 17:02
Rotate MEsh Elian81 CFX 0 November 18, 2006 05:51

All times are GMT -4. The time now is 12:56.