|
[Sponsors] |
Need help to get pitch orientation of body in 6dof problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2022, 11:21 |
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 |
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. |
|
|
|
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 |