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

CentreOfMass in RigidBodyMotion solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2017, 08:17
Default CentreOfMass in RigidBodyMotion solver
  #1
New Member
 
ChristianWindt
Join Date: Dec 2016
Posts: 8
Rep Power: 10
H3000 is on a distinguished road
Hi all,

I'm currently working on a fluid-structure interaction problem considering a hinged body. As solver, I employ the 'new' rigidBodyMotion solver implemented in the OpenFOAM version v1706.

Throughout the simulation I now would like to print out the centre of mass at each time step. Means that I would like to add a line to this part of the rigidBodyMotion.C

Code:
Info<< "Rigid-body motion of the " << name(bodyID) << nl
        << "    Centre of rotation: " << CofR.r() << nl
        << "    Orientation: " << CofR.E() << nl
        << "    Linear velocity: " << vCofR.l() << nl
        << "    Angular Velocity: " << vCofR.w()
        << endl;
For that, I need to know how the centre of mass is stored within the solver. Does anyone how you have an idea how this is done?

Cheers,
Christian
H3000 is offline   Reply With Quote

Old   October 2, 2018, 09:33
Default
  #2
New Member
 
Adri
Join Date: Sep 2017
Posts: 24
Rep Power: 9
Adri_12 is on a distinguished road
Hi,

I have the same question. Did you have an answer ?

adrià
Adri_12 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
Fluent Adjoint Solver? ex10148 FLUENT 16 September 28, 2018 09:11
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10:52
Divergence problem Smaras FLUENT 13 February 21, 2013 06:03
3d vof Smaras FLUENT 2 February 19, 2013 07:58
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 15:08


All times are GMT -4. The time now is 19:21.