Move Mesh Rotation

Submitted by manton on Wed, 04/27/2016 - 13:59

Hello all,
fix move all move/mesh mesh cad1 rotate ... rotates the mesh along the axis specified.
for eg: motion similar to rotation of earth around the sun can be done using the above fix.

My question is: Is there any fix to define the motion similar to moon roationg around earth where it is tidally locked.

Perhaps you can understand better if you see the picture attached. I would like to get motion similar to the bottom half of the pictue.

cheers,
manton

AttachmentSize
Image icon 34.jpg20.59 KB
richti83's picture

richti83 | Wed, 04/27/2016 - 15:37

The clue is to use superposition of two rotate commands (one for the orbit and one for the body-coordinate-system):

variable omega1 equal 3.1415
variable omega2 equal -3.1415
fix rotcad1 all move/mesh mesh cad1 rotate/variable origin 0. 0. 1. axis 0. 1. 0. omega v_omega1 #rotate arround 0 0 1
fix rotcad2 all move/mesh mesh cad1 rotate/variable origin 0. 0. 0. axis 0. 1. 0. omega v_omega2 #rotate arround COM against rotcad1
#optional
#fix rotcad3 all move/mesh mesh cad1 rotate/variable origin 0. 0. 0. axis 0. 0. 1. omega v_omega1 #rotate arround COM z-axis

where cad 1 is located in 0/0/0 and rotates arround y-axis in an orbit with R=2 m

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact