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

Reading forces within solver code

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2010, 18:39
Default Reading forces within solver code
  #1
Member
 
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16
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
Code:
fm.first().first() (pressure force) or fm.first().second() (viscous force)
Code:
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...


/Stefan
SD@TUB is offline   Reply With Quote

Reply

Tags
forces, solver

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
Forces in OF15 richard OpenFOAM Running, Solving & CFD 180 July 9, 2018 10:54
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 05: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 06:43.