|
[Sponsors] |
December 13, 2013, 01:27 |
Using forces data in main() function
|
#1 |
Member
Geon-Hong Kim
Join Date: Feb 2010
Location: Ulsan, Republic of Korea
Posts: 36
Rep Power: 16 |
Dear Foamers,
Good day foamers! Recently I have tried to access data of forces object function to use as a criteria for convergence. I made a header file including a static variable named Ftotal and make it to be included by both main solver program and forces class files. The force data estimated by forces object function is to be stored to the Ftotal static variable. When I access the static variable Ftotal in the main program, it stores zero and I cannot use it at all. Is there any idea to resolve this problem? Thank you. Geon-Hong. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
foamToTecplot360 | thomasduerr | OpenFOAM Post-Processing | 121 | June 11, 2021 10:05 |
LiencubiclowRemodel | nzy102 | OpenFOAM Bugs | 14 | January 10, 2012 08:53 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |