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

surfaceTransformPoints -rotate

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

Like Tree3Likes
  • 1 Post By ynos
  • 2 Post By wyldckat

LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2012, 10:28
Default surfaceTransformPoints -rotate
Join Date: Jan 2011
Posts: 39
Rep Power: 14
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
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,969
Blog Entries: 45
Rep Power: 127
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 and GregNordin like this.
wyldckat is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 26, 2012 23:36
[ANSYS Meshing] meshing for rotate and revolute Ijaz ANSYS Meshing & Geometry 0 December 25, 2011 16:51
Rotate Hexa Mesh JJ CFX 2 July 14, 2008 05:53
Rotate mesh Bo FLUENT 1 January 10, 2007 16:02
Rotate MEsh Elian81 CFX 0 November 18, 2006 04:51

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