|
[Sponsors] |
cfx5solve from the command line: how to monitor the current run? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 19, 2010, 09:46 |
cfx5solve from the command line: how to monitor the current run?
|
#1 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
Hi,
Does anyone know how to monitor the current run when running the program from the command line? Basically, I'd like to see the .out file being created, just like when I use the GUI. I did not find any optional argument in the help...yes, -monitor allows to monitor a finished run, but there's nothing for the current computation. Thanks! |
|
February 20, 2010, 06:11 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143 |
Fire up the solver manager and click on monitor run in progress. Now you have control over this run and can view, stop or edit it same as a run you started from solver manager.
|
|
February 20, 2010, 10:03 |
|
#3 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
I'll try that, thanks...but it's too bad we can't monitor from the command window.
|
|
February 20, 2010, 11:13 |
|
#4 |
Senior Member
Join Date: Apr 2009
Posts: 531
Rep Power: 20 |
The out file is just a text file. On Linux you'd use:
tail -f file.out to monitor it. Maybe DOS has an equivalent. |
|
February 22, 2010, 06:23 |
|
#5 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17 |
I am going to give away a secret here...if you are used to and like Linux (and tail...) go download this collection of unix tools for (any windows):
http://sourceforge.net/projects/unxutils/ Just put them anywhere and update your PATH in your environment variables, and you are almost back to good old Linux... /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
February 25, 2010, 10:48 |
|
#6 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
Thanks Glenn and stumpy, both your suggestions were useful.
I'm running on Linux now, so tail is working, but you have to combine it with a sleep so the out file has the time to be created before it is tailed. Running cfx5solve -monitor is great too. But both solutions have a problem: they do not exit automatically when the job is complete...to exit tail, one must press Ctrl-Z. And to exit CFX-Solve, one must hit enter or the OK button...or maybe it could exit on its own if I switch on some option somewhere?! I'd be glad to hear about that... Edit (small detail): I'd like the monitoring tool to exit once the run is finished so my general script (which runs cfx5solve) can go on. Last edited by zboud; February 25, 2010 at 12:14. |
|
March 3, 2010, 11:32 |
|
#7 |
Senior Member
|
Within Windows, create a .bat file will solve this problem.
Just input the same number of commands as your models are, for example: There are three models to be run,file1,file2 and file3. The command will be as follow. cfx5solve -def [file1.def] -moniter cfx5solve -def [file2.def] -moniter cfx5solve -def [file3.def] -moniter Then take a cup of coffee, and waiting for the results... :-) Last edited by rikio; March 3, 2010 at 11:33. Reason: Operating System |
|
March 3, 2010, 11:40 |
|
#8 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
cfx5solve -def [file1.def] -monitor does not work: you have to precise what to monitor.
And using those commands, you'll have to exit the solver manually after each run. I think the best solution is to use the cfx5mondata command, and use gnuplot to plot the convergence history. This way one can even save automatically the graphs at the end of the run |
|
March 3, 2010, 20:23 |
|
#9 |
Senior Member
|
I did so within Windows many times, and it works. No manually input needed to end a run. But "-monitor" was excluded from the command. :-)
Before run this batch process, path of the program need to be directed. Maybe it is different for Linux... |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hpw to run cfx5solve in batch | yusoff | CFX | 6 | January 2, 2013 10:26 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
Editing current run or definition file. | KM | CFX | 2 | October 12, 2007 18:46 |
Windows 64-bit, Distributed Parallel Run Issues... | Erich | CFX | 3 | March 28, 2006 17:36 |
Cycling a transient run | Chetan Mistry | Phoenics | 0 | March 3, 2004 10:50 |