|
[Sponsors] |
December 8, 2021, 16:27 |
How to see total elapsed time of simulation?
|
#1 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9 |
Hello all
Is there a way for me to see how long it's taken to run sims? After executing the command mpirun -np 16 interFoam -parallel the time pops up in the terminal. But if I close the terminal I'll lose the total runtime. Is there a way to see this, like in a printed file? |
|
December 8, 2021, 20:27 |
|
#2 |
New Member
Faro Schäfer
Join Date: Nov 2021
Posts: 10
Rep Power: 6 |
You could redirect the output to a file like so:
Linux: Code:
mpirun -np 16 interFoam -parallel > log.txt & Windows: Code:
START /B mpirun -np 16 interFoam -parallel > log.txt Explanation:
|
|
December 30, 2021, 22:12 |
|
#3 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9 |
Thanks so much for the reply! Quick question: if a run this command, then exit the simulation and then resume, will the time be total elapsed or just the time since I re-executed the simulation
|
|
January 5, 2022, 13:26 |
|
#4 | |
New Member
Join Date: Sep 2019
Posts: 17
Rep Power: 7 |
Quote:
The time in the logs will always be for each separate call of the solver. The symbol > will overwrite the log file after each call. If you want to append to the log file instead, use >>. Alternatively, you can just change the name of the log each run (e.g., command > log1, command > log2). |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epyc 7551 vs 6850K; Ansys Mechanical Bench | Duke711 | Hardware | 24 | March 26, 2020 11:16 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 14:12 |
Error in run Batch file | saba1366 | CFX | 4 | February 10, 2013 02:15 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |