|
[Sponsors] |
Access member fn. of sixDoFRigidBodyMotion class from main |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 31, 2014, 23:50 |
Access member fn. of sixDoFRigidBodyMotion class from main
|
#1 |
Senior Member
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17 |
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 |
|
|
|
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 |