|
[Sponsors] |
Reading forces from previous time step within solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 14, 2010, 06:58 |
Reading forces from previous time step within solver
|
#1 |
Member
Stefan
Join Date: Jan 2010
Location: Kiel, Germany
Posts: 81
Rep Power: 16 |
Hello FOAMers,
what would be the best way of reading forces from previous time step 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 walls (using "libforces.so"). In forces.C the data of interest accessed by: Code:
... fm.first().first() (pressure forces) or fm.first().second() (viscous forces) fm.second().first() (moment of pressure forces) or fm.second().second() (moment of viscous forces) ... return fm; ... fm.write(); Code:
scalar Fp = fm.first().first(); scalar Fv = fm.first().second(); I'm not familiar with the code conventions of OF and new to object oriented programming in C++! Any advice is much appreciated... /Stefan |
|
Tags |
forces, header, solver |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic moving mesh | Pei-Ying Hsieh (Hsieh) | OpenFOAM Running, Solving & CFD | 64 | June 7, 2012 10:04 |
Reading old time step | markc | OpenFOAM Running, Solving & CFD | 8 | July 22, 2008 15:11 |
Doubt on Implicit Methods | analyse In India | Main CFD Forum | 10 | March 9, 2007 03:01 |
AMG versus ICCG | msrinath80 | OpenFOAM Running, Solving & CFD | 2 | November 7, 2006 15:15 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 18:07 |