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

Checking time of a simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By HPE
  • 1 Post By HPE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2020, 13:08
Default Checking time of a simulation
  #1
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8
joshmccraney is on a distinguished road
Hi all!

When running a simulation, say something like this:
Code:
mpirun -np 16 interFoam -parallel > log.interFoam &
the terminal does not display an output. So how can I tell what time the simulation is at (not clocktime, but the simulation time)?
joshmccraney is offline   Reply With Quote

Old   April 14, 2020, 14:04
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Hope understood your question correctly.

You direct the standard stream (excluding errors?) into the file `log.interFoam` by using `>` operator.

If you would like to see the accumulating content of `log.interFoam`, open another terminal at the same location, and do `tail -f log.interFoam`, which will output whatever recorded into the log file to the screen.

If you only would like to see the output, but not to save it to a file, just `mpirun -np 16 interFoam -parallel` will output to the screen.
joshmccraney likes this.
HPE is offline   Reply With Quote

Old   April 14, 2020, 14:10
Default
  #3
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8
joshmccraney is on a distinguished road
Perfect and thanks!

Followup: if I want to kill the process, typically I would type ctrl+c. How would I do it for this?
joshmccraney is offline   Reply With Quote

Old   April 14, 2020, 16:39
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Yes, that would do. You can also change the `endTime` settings in `controlDict` if you would like to have an early exit.
joshmccraney likes this.
HPE is offline   Reply With Quote

Reply


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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
HiFiLES installation problem Eric Brant SU2 0 October 31, 2016 20:11
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 07:09


All times are GMT -4. The time now is 03:05.