CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Time Profiling the Parts of the Solver

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

Like Tree1Likes
  • 1 Post By lordvon

LinkBack Thread Tools Display Modes
Old   May 5, 2015, 16:21
Default Time Profiling the Parts of the Solver
Senior Member
Join Date: Sep 2010
Posts: 158
Rep Power: 8
lordvon is on a distinguished road
Sponsored Links
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][\url]

From 'Main Loop Time', we see that the 'while(' 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][\url]
mbookin likes this.
lordvon is offline   Reply With Quote
Sponsored Links

Old   May 8, 2017, 03:51
New Member
Join Date: Nov 2010
Posts: 4
Rep Power: 8
svinaya is on a distinguished road
Can U please let me know which version of OpenFOAM U are using.
svinaya is offline   Reply With Quote


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
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 22 January 24, 2017 19:13
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 12 March 21, 2016 14:05
Sudden jump in Courant number NJG OpenFOAM Running, Solving & CFD 7 May 15, 2014 13:52
time step directories naming issue Andrea_85 OpenFOAM 3 April 3, 2014 08:38
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 04:35

Sponsored Links

All times are GMT -4. The time now is 11:31.