CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Rotation using quaternion

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

LinkBack Thread Tools Display Modes
Old   June 29, 2010, 09:45
Default Rotation using quaternion
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 72
Rep Power: 10
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.

cwang5 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
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 04: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 16:27

All times are GMT -4. The time now is 13:11.