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, 14:08
Default Checking time of a simulation
  #1
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9
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, 15: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: 931
Rep Power: 13
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, 15:10
Default
  #3
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9
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, 17: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: 931
Rep Power: 13
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 42 May 8, 2024 00:17
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
HiFiLES installation problem Eric Brant SU2 0 October 31, 2016 21:11
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09


All times are GMT -4. The time now is 00:07.