CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

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

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2020, 02:33
Default access centreOfMass or centreOfRotation data from system/control #code function
New Member
Join Date: Mar 2012
Posts: 17
Rep Power: 11
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...

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


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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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