CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

TUI 'if' statement depending on Total Wallclock time?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2019, 08:38
Default TUI 'if' statement depending on Total Wallclock time?
  #1
Member
 
Dave
Join Date: Mar 2019
Posts: 33
Rep Power: 3
bloodflow is on a distinguished road
I need to be able to write a data file using TUI after a certain wallclock time has passed. I believe 'if' statements in TUI are possible As discussed here, but I don't know how to get the total-wallclock time in this form from TUI.

I tried /paralell/timer/usage which does print the total time but only at the end:

PHP Code:
Performance Timer for 221 iterations on 100 compute nodes
  Average wall
-clock time per iteration:              0.016 sec
  
Global reductions per iteration:                       54 ops
  
Global reductions time per iteration:               0.000 sec (0.0%)
  
Message count per iteration:                        72754 messages
  Data transfer per iteration
:                       34.023 MB
  LE solves per iteration
:                                4 solves
  LE wall
-clock time per iteration:                   0.009 sec (55.7%)
  
LE global solves per iteration:                         2 solves
  LE 
global wall-clock time per iteration:            0.001 sec (8.2%)
  
LE global matrix maximum size:                       236
  AMG cycles per iteration
:                           5.507 cycles
  Relaxation sweeps per iteration
:                      194 sweeps
  Relaxation exchanges per iteration
:                     0 exchanges
  LE early protections 
(stallper iteration:           0.059 times
  LE early protections 
(divergenceper iteration:      0.000 times
  Time
-step updates per iteration:                     0.09 updates
  Time
-step wall-clock time per iteration:            0.000 sec (2.1%)

  
Total wall-clock time:                              3.506 sec 
Or I can generate the cpu time with

PHP Code:
/paralell/timer (solver-cpu-time
But cannot find a similar command for the total time. The only way I can think to do this is to at certain intervals, write the usage summary to a text file. Then in a different linux script, write a file (kill.txt) when the time is a above a certain threshold. Then have an if statement in my TUI which writes the data file when (kill.txt) exists which sounds just awful and dont know if the TUI even supports that.

Can someone suggest a way to write a data file after a certain wall clock time?
bloodflow is offline   Reply With Quote

Old   August 25, 2019, 23:21
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,569
Rep Power: 21
AlexanderZ will become famous soon enough
using scheme language you can read/write files and have whole functionality of TUI

best regards
AlexanderZ is offline   Reply With Quote

Reply

Tags
data, if-statement, tui, wallclock

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores puneet336 OpenFOAM Running, Solving & CFD 11 April 7, 2019 01:58
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 23:29
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 14:40
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 57 February 1, 2015 09:25
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 08:56


All times are GMT -4. The time now is 10:14.