CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Time Profiling the Parts of the Solver (https://www.cfd-online.com/Forums/openfoam-programming-development/152644-time-profiling-parts-solver.html)

lordvon May 5, 2015 16:21

Time Profiling the Parts of the Solver
 
Hello everyone,

I implemented a custom pimpleDyMFoam solver that simply keeps track of time spent in each part, such as mesh update, flux computation, U eqn, p eqn, and so on.

For the default 'propeller' case included in the tutorials, I found the time profile to be interesting (here are the major components):

Total Time (s): 165.791

Main Loop Time (%): 93.9977

Breaking down Main Loop Time (add up to ~94%):
Mesh Update Time (%): 15.9722
PIMPLE Time (%): 77.7616

Breaking down PIMPLE Time (add up to ~77.8%):
U Equation Time (%): 29.3238
p Equation Time (%): 38.0198
Turbulence Model Equation Time (%): 10.4093

A video of the details can be found here: [url]https://www.youtube.com/watch?v=FhQiv7HV_bg[\url]

From 'Main Loop Time', we see that the 'while(runTime.run())' condition takes about 6% of total run time! It was surprising.

Of course, if you decrease fvSolution tolerances you will skew the percentages toward the PIMPLE time.

Just thought you guys would want to know! The code can be found here: [url]https://github.com/lordvon/OpenFOAM_Tutorials/tree/master/TimeProfiling[\url]

svinaya May 8, 2017 03:51

Can U please let me know which version of OpenFOAM U are using.


All times are GMT -4. The time now is 13:03.