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 Members List Search Today's Posts Mark Forums Read

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: 31
Rep Power: 13
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 15:26.