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

Need help to get pitch orientation of body in 6dof problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2022, 11:21
Default Need help to get pitch orientation of body in 6dof problem during run
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 402
Rep Power: 19
quarkz is on a distinguished road
Hi,

I am working on a 6dof problem whereby the body is allowed to pitch up due to external forces.

I need to know the pitch up angle at each time step, so that I can do some mesh manipulation at each time step. I can thinnk of a few solutions:

1. modify OF codes somewhere to get the orientation tensor. i read something similar here:

How to access to the solid body motion state from a custom interDyMFoam.C ?

but being a Fortran coder, I have a hard time understanding.

2. If I know the position of a point mesh at a particular time step, and also its initial position at t = 0, I can find the angle the body has pitched thru dot product and the center of rotation. i can access a mesh pt from p0_[iter], which has the mesh position at the current time step. But I can't access the mesh position at t=0 and i do not know how to store that value for later time step usage. I need to know how to store a scalar variable as global which value will not change as time proceeds.

3. OF output will give the orientation matrix at each time step. So if I can capture that output, I can use it to calculate the pitch. There are some posts which extract variables info from log. So if I can run such codes using systemCall, I can extract the info as a file at the end of a timestep. Then read in the file data in the next time step.

Hope someone can help. Thanks!

Last edited by quarkz; January 29, 2022 at 19:17.
quarkz 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
Radial Fan (MRF/RBM). Problem with Rigid Body Motion -RBM Karen Martirosyan Main CFD Forum 0 February 28, 2021 05:19
[snappyHexMesh] Problem triyng to mesh an Ahmed body GV871 OpenFOAM Meshing & Mesh Conversion 0 March 17, 2020 05:48
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 04:37
dynamic mesh 2d problem to move body m zubair Main CFD Forum 0 March 19, 2019 07:01
[ICEM] create boundary layer mesh by extrusion, orientation problem lazybone ANSYS Meshing & Geometry 9 April 18, 2018 04:09


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