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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2019, 10: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 09:26.
RoeschA is offline   Reply With Quote

Reply

Tags
ibs, rotation, solidbodymotion, superimposed

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


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