|
[Sponsors] |
June 18, 2014, 05:43 |
wall clock time for each processor
|
#1 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear All,
I am trying to know the wall clock time for each processor. For instance, the following code: Code:
// --- PIMPLE loop while (pimple.loop()) { #include "UEqn.H" #include "YEEqn.H" // --- Pressure corrector loop while (pimple.correct()) { #include "pEqn.H" } if (pimple.turbCorr()) { turbulence->correct(); } } Code:
#include "UEqn.H" Code:
runTime.elapsedClockTime() Does anybody know something about how to output the wall clock time for each processor? OFFO |
|
June 23, 2014, 06:47 |
|
#2 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
In Openfoam, I found that we can use the following two functions to the wall clock time and cpu time:
Code:
time_t Foam::clock::clockTimeIncrement() const double Foam::cpuTime::cpuTimeIncrement() const Code:
...... runTime.cpuTimeIncrement(); runTime.clockTimeIncrement(); ...... Do you have some suggestions if I indeed to extract the both wall clock time and cputime? Thank you very much. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 91 | December 21, 2022 04:50 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 18:45 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 14:09 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 05:12 |