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

Access member fn. of sixDoFRigidBodyMotion class from main

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2014, 23:50
Default Access member fn. of sixDoFRigidBodyMotion class from main
  #1
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Dear Friends,

I have a question on accessing class functions from the main program.
Take for example the sixDoFRigidBodyMotion class , which is described in this
nice link:
http://freefoam.sourceforge.net/doc/...odyMotion.html

When I try to print out the function mass() of this class, from the main program as shown below
CODE:
Info<< "Time = " << Foam::sixDoFRigidBodyMotion.mass() << endl;

I get the following ERROR:

error: expected primary-expression before '.' token

(Note: I have included the relevant header files, etc)

Thanks in advance

Kumar
kumar2 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
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
Doxygen documentation Tanay OpenFOAM Installation 9 September 23, 2011 11:40
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
Accessing a member function in a class fabianpk OpenFOAM 2 June 14, 2006 09:20


All times are GMT -4. The time now is 22:32.