CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[surface handling] Using surfaceTransformPoints to rotate a STL file with a fixed point

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2017, 06:49
Default Using surfaceTransformPoints to rotate a STL file with a fixed point
  #1
Member
 
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 9
Lewis Liang is on a distinguished road
Hello everyone!
I build up a horizontal cylinder with the STL file as shown in the attached figure. The cylinder is placed in the XY plane and perpendicular to X- axis. Then, I try to rotate the cylinder to a position (90 degree) which is same as the red line with its central point A. I have tried to type these codes from some online tutorial about the surfaceTransformPoints command:
Code:
export FILE="cylinder_v2.stl"
#surfaceTransformPoints -yawPitchRoll "(0 90 0)" cylinder.stl $FILE
#surfaceTransformPoints -rollPitchYaw "(0 90 0)" cylinder.stl $FILE
#surfaceTransformPoints -rotate '( (1 0 0) (0 0 1) )' cylinder.stl $FILE
However, the new STL file is not what I expect after checking in the paraview. Could anyone please give me some tips to deal with this problem?

Thanks in advance!

Zuodong
Attached Images
File Type: jpg sketch.jpg (25.3 KB, 105 views)
Lewis Liang is offline   Reply With Quote

Old   January 27, 2018, 10:20
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
try to edit STL file using paraview filter transform
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   January 27, 2018, 11:36
Default
  #3
Member
 
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16
SD@TUB is on a distinguished road
If I don't miss something
#surfaceTransformPoints -rollPitchYaw "(0 0 90)"
should give you the rotation about z-axis.
SD@TUB 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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


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