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

Slerp for forced motion

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bennn

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2016, 11:01
Default Slerp for forced motion
  #1
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
Hi all,

I'm currently looking at the possibilities to use that neat little feature called Slerp, in the case of simple forced motion, rather than in sixDoFRigidBodyMotion/rigidBodyDynamics frameworks, which solve the dynamics of the system.

This mesh deformation solver appeared in OF 2.3, and is supposedly similar to RBF.

This should be easy since forced motion is simpler than solved motion, but the class using it are quite different from classic forced motion classes, mainly in fvMotionSolver... The best option would be to be able to access 'slerp' from the solver option in dynamicMeshDict.

Has anybody tried it ? Is it worth spending time on it ?

Thank you all for your help.
Stephen Waite likes this.
bennn is offline   Reply With Quote

Old   July 21, 2016, 09:02
Default
  #2
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
Hello,

I though about this before (when OF2.3 was released) and even stared to implement a blueprint for this case but I could not find enough time.
Let me tell you what I found (as I remember)
  • ``sixDoFRigidBodyMotionSolver`` has a data member of type
    ``sixDoFRigidBodyMotion`` called motion_. That means it is designed to work with ``sixDoFRigidBody`` only.
  • The main issue which makes this implementation is not ideal (easy) to generalize, it the fact that the scale of the motion and mesh update are done in the ``sixDoFRigidBodyMotionSolver`` class but the interpolation is done in ``sixDoFRigidBodyMotion``
  • SLERP interpolation is implemented in separate class, which means it could be used to implement a new solver to satisfy your needs.
  • SLERP interpolation class constructors require the motion to be descried by a vector and/or quaternion.
This is based on OF-2.3, this library has been changed in the recent versions. I hope my notes are useful for you.

Best wishes,
Hassan Kassem
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   July 25, 2016, 09:13
Default
  #3
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
Thanks a lot for your help Hassan. I'll keep you updated if I manage to move forward.

Ben
bennn is offline   Reply With Quote

Old   February 12, 2020, 14:14
Default
  #4
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
Hi all,


In case anyone is wondering, forced motions with slerp has been added to OpenFOAM 7 with interpolatingSolidBodyMotionSolver.


https://openfoam.org/release/7/


https://github.com/OpenFOAM/OpenFOAM...98ee933b910741
bennn 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
DFBI Morphing for roll and heave motion Lingfeng Su STAR-CCM+ 0 November 10, 2015 08:08
External management of solid motion (using dynamicmesh) maxou1993 Main CFD Forum 0 July 28, 2015 12:37
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09


All times are GMT -4. The time now is 12:30.