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

access centreOfMass or centreOfRotation data from system/control #code function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2020, 03:33
Default access centreOfMass or centreOfRotation data from system/control #code function
  #1
New Member
 
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14
kiski is on a distinguished road
Hi all,

I am trying to access the centreOfRotation and centreOfMass information from within system/controlDict #code function. But I am not able to find out which data member or function I need (i.e. there are multiple centreOfRotation definitions within sixDoFRigidBodyMotion state and constraints).

I am also not fluent with database registry to explore it. I tried the "printing registry" tip from OpenFOAM v7 manual with no luck. And using gdb is tough...

Code:
Info << "mesh.names()" << mesh.names() << nl << endl ;
Info << "runTime.names() " << runTime.names() << nl << endl ;
Thank you for your help
kiski is offline   Reply With Quote

Reply

Tags
centre of mass, data access, lookupobject, registry, sixdofsolver


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
access mesh in a function chenu OpenFOAM Programming & Development 0 January 6, 2020 05:50
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56


All times are GMT -4. The time now is 17:23.