CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

how to use ProfilingSummary in openFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2023, 13:40
Default how to use ProfilingSummary in openFOAM
  #1
New Member
 
Kate Wilson
Join Date: Jun 2023
Posts: 2
Rep Power: 0
sugarbeer is on a distinguished road
Hi, I want to do profiling for solver and assembler. I found that in OpenFOAM v2212, there is a post processing command called profilingSummary. The document is attached.

I am using it like this:

(1) copy one example to my path:

cd $FOAM_RUN
cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .

(2) add the following key words in conreolDict:

profiling
{
active true;
cpuInfo true;
memInfo true;
sysInfo true;
}

(3) run the following command:

cd pitzDaily
blockMesh
simpleFoam
profilingSummary

The profilingSummary is supposed to generate profiling information at the time step marked with writeInterval. If it works, it should generate profiling files in postProcessing/profiling/[YourTimeStep]/profiling. But using my command above, it did not work. I am new to openFOAM, has anyone used profilingSummary before and know how to use it? By the way, where can I check which time steps are marked with writeInterval?

Furthermore, what are the common methods to do profiling in OpenFOAM? Is there any tool besides suing OpenFOAM profilingSummary?
Attached Images
File Type: png Screen Shot 2023-06-06 at 00.57.21.png (143.5 KB, 4 views)
sugarbeer is offline   Reply With Quote

Old   June 15, 2023, 10:44
Default
  #2
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 93
Rep Power: 14
einstein_zee is on a distinguished road
Hi Kate,

I haven't heard about this so I was curious to test it out. Your workflow looks okay however, in the end you are not actually running your case in parallel! and If you try to run profilingSummary it will through you an error that the processor directories don't exist. So try to run it in parallel.

1. cd pitzDaily
2. blockMesh
3. decomposePar
4. mpirun -np <no. of procs.> simpleFoam -parallel
5. profilingSummary

Note that when you do step 4 there will be a "profiling" file generated in each processor time directories (processor#/timeDirectory#/uniform/profiling). When you do step 5, there will be a directory called "profiling" inside your "postProcessing" directory with all the time directories you saved for your simulation. Then you can access them.

By the way, for testing this out there is a case already in OF tutorials of v2212. Here is the address OpenFOAM-v2212/tutorials/lagrangian/reactingParcelFoam/verticalChannelLTS. Note that this one is not designed for parallel run so you need to adapt it(copy and paste a decomposeParDict into system directory). Hope this helps...
einstein_zee is offline   Reply With Quote

Reply

Tags
profiling


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
How to develop OpenFOAM with CMake and popular IDEs cosscholar OpenFOAM Programming & Development 0 March 16, 2022 15:17
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 16:34.