CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Reading forces within solver code

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   February 28, 2010, 19:39
Default Reading forces within solver code
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 78
Rep Power: 9
SD@TUB is on a distinguished road
Hello FOAMers,

what would be the best way of reading forces within solver code? I'm calculating some cases with OF 1.6 via simpleFoam.
I noticed the function objects where pressure and viscous forces/moments are integrated over given patches. In forces.C
fm.first().first() (pressure force) or fm.first().second() (viscous force)
fm.second().first() (moment of pressure force) or fm.second().second() (moment viscous force)
prints out the data. Now i tried to catch the values within solver code (under consideration of included headers in forces.C) but it doesn't work.
I'm not familiar with the code conventions of OF! Any advice is much appreciated...

SD@TUB is offline   Reply With Quote


forces, solver

Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forces in OF15 richard OpenFOAM Running, Solving & CFD 168 November 14, 2017 12:51
modify the source code of simpleSRFFoam solver Pirlo OpenFOAM Programming & Development 0 October 19, 2009 08:49
problem when converting mesh (made by ICEM) using fluentMeshToFoam Forrest_Lei OpenFOAM 11 October 16, 2009 06:28
Solver error with return code 137 (CFX10 in Linux) JamesH CFX 0 January 25, 2006 06:54
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 00:18

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