CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2015, 17:21
Default Time Profiling the Parts of the Solver
  #1
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
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]
mbookin likes this.
lordvon is offline   Reply With Quote

Old   May 8, 2017, 04:51
Default
  #2
New Member
 
vin
Join Date: Nov 2010
Posts: 9
Rep Power: 15
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

Reply

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
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 36 September 23, 2023 09:22
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 10:08
Sudden jump in Courant number NJG OpenFOAM Running, Solving & CFD 7 May 15, 2014 14:52
time step directories naming issue Andrea_85 OpenFOAM 3 April 3, 2014 09:38
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 05:35


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