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

SolidBodyMotion planetary rotation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2019, 11:17
Default SolidBodyMotion planetary rotation
  #1
New Member
 
Andy
Join Date: Dec 2019
Posts: 1
Rep Power: 0
RoeschA is on a distinguished road
Hello everybody,


i hope everyone had a merry Christmas.


I'm writing a thesis and I'm stuck at a new superimposed SolidBodyMotion for the IBS methode. I'm trying to write a rotation of an object, which is rotating around its own axis and around a global point. For example like the moon is rotating around it self and around the earth.


I tried a lot of versions but nothing is working.


Version 1:



//Global Rotation

const vector rotation2 = omega2_*t;

const quaternion R2(rotation2.x(), rotation2.y(), rotation2.z());
const septernion TR2
(
septernion(origin2_)*R2*septernion(-origin2_)
);

const vector rotation = omega_*t;



//Rotation around own axis


const quaternion R(rotation.x(), rotation.y(), rotation.z());
const septernion TR
(
septernion(origin_)*R*TR2*septernion(-origin_)
);
return TR;
}


I tried to rotate the object around the global central and add the calculated coordinates to the rotation around the own axis, but it does not work.



Version 2:


//calculation of the orbital coordinates



const vector translation =
vector
(
radius_.x()*cos(omega_.x()*t),
radius_.y()*sin(omega_.y()*t),
0*sin(omega_.z()*t)
);


//addition of the orbital coordinates to the origin to move the origin on the orbit


const quaternion R(rotation.x(), rotation.y(), rotation.z());
const septernion TR
(
septernion(origin_ + translation)*R*septernion(-origin_)
);
return TR;
}


I tried a lot more, but still had no success.



I would be very thankfull for some tipps or a solution.

Last edited by RoeschA; December 30, 2019 at 10:26.
RoeschA is offline   Reply With Quote

Reply

Tags
ibs, rotation, solidbodymotion, superimposed


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
Java Macro -- Passive Pith in Superposing Rotation Motion Weidong Dai STAR-CCM+ 2 August 4, 2018 06:39
Remeshing for Rotation in CFX via ICEMCFD gera CFX 3 September 23, 2017 13:29
Fluent rp var to modify rotation speed of a boundary QBeast FLUENT 2 August 12, 2015 16:58
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 07:21
Axis of rotation for centrifugal compressor Mattia FLUENT 4 October 22, 2007 12:05


All times are GMT -4. The time now is 16:03.