|
[Sponsors] |
June 5, 2023, 14:40 |
how to use ProfilingSummary in openFOAM
|
#1 |
New Member
Kate Wilson
Join Date: Jun 2023
Posts: 2
Rep Power: 0 |
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? |
|
June 15, 2023, 11:44 |
|
#2 |
Member
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 94
Rep Power: 15 |
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... |
|
Tags |
profiling |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
How to develop OpenFOAM with CMake and popular IDEs | cosscholar | OpenFOAM Programming & Development | 0 | March 16, 2022 16:17 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |