|
[Sponsors] |
April 27, 2011, 09:31 |
Creating a new variable in a .C file?
|
#1 |
Member
Greg Givogue
Join Date: Aug 2010
Location: Ottawa Canada
Posts: 57
Rep Power: 15 |
Hi Everyone,
I'm relatively new with OpenFOAM and C++ programming. I'd like to modify the Forces.C file to include the following calc; vector CP = sum(Md^(vf+pf))/sum(vf+pf); I believe I have to update the forces.H file as well to define CP... but I'm not sure how. When I ran wmake in the forces folder I got: forces/forces.C:469: warning: unused variable ‘CP’ make: *** [Make/linux64GccDPOpt/forces.o] Error 1 Thanks for the help! Greg |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 09:14 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 20:02 |
OpenFOAM Install Script | ljsh | OpenFOAM Installation | 82 | October 12, 2009 11:47 |
[OpenFOAM] ParaView 33 canbt open OpenFoam file | hariya03 | ParaView | 7 | September 25, 2008 17:33 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |