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

Using forces data in main() function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2013, 01:27
Default 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
Geon-Hong is on a distinguished road
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.
Geon-Hong 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
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


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