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

Rotation using quaternion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2010, 09:45
Default Rotation using quaternion
  #1
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
Hi guys,

I am working on a program that would allow 1DoF rotation about an arbitrary axis in 3D space. From what I've been reading on the forum on the 3/6DoF motion solver, it appears that the quaternion method is the best for the job. However, when I implemented the quaternion into my code, the total angle rotated by the quaternion.R() does not match up with the total angle theta that was input into the quaternion in the form quaternion(AxisOfRotation, theta). I'm wondering if I have somehow mis-read the source code in quaternion.H and messed up the quaternion. Any help would be appreciated, thanks in advance.

John
cwang5 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
How to set domain translation and rotation in CFX ricardo.halfeld CFX 7 September 8, 2009 18:22
How to Define Rotation Quaternion in CFX Post ahlo CFX 0 August 19, 2008 16:30
Simulation of object in rotation Dothan FLUENT 4 March 25, 2008 03:25
Axis of rotation for centrifugal compressor Mattia FLUENT 4 October 22, 2007 11:05
Problem Setup: Bi-Axial Rotation Possible? Harmeet CFX 6 February 11, 2005 15:27


All times are GMT -4. The time now is 02:32.