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

cfx5solve from the command line: how to monitor the current run?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2010, 09:46
Default cfx5solve from the command line: how to monitor the current run?
  #1
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 16
zboud is on a distinguished road
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!
zboud is offline   Reply With Quote

Old   February 20, 2010, 06:11
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   February 20, 2010, 10:03
Default
  #3
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 16
zboud is on a distinguished road
I'll try that, thanks...but it's too bad we can't monitor from the command window.
zboud is offline   Reply With Quote

Old   February 20, 2010, 11:13
Default
  #4
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 20
stumpy is on a distinguished road
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.
stumpy is offline   Reply With Quote

Old   February 22, 2010, 06:23
Default
  #5
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
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
MadsR is offline   Reply With Quote

Old   February 25, 2010, 10:48
Default
  #6
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 16
zboud is on a distinguished road
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.
zboud is offline   Reply With Quote

Old   March 3, 2010, 11:32
Default
  #7
Senior Member
 
Rikio
Join Date: Mar 2009
Location: SH, China
Posts: 182
Blog Entries: 1
Rep Power: 17
rikio is on a distinguished road
Send a message via Skype™ to rikio
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
rikio is offline   Reply With Quote

Old   March 3, 2010, 11:40
Default
  #8
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 16
zboud is on a distinguished road
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
zboud is offline   Reply With Quote

Old   March 3, 2010, 20:23
Default
  #9
Senior Member
 
Rikio
Join Date: Mar 2009
Location: SH, China
Posts: 182
Blog Entries: 1
Rep Power: 17
rikio is on a distinguished road
Send a message via Skype™ to rikio
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...
rikio is offline   Reply With Quote

Reply

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
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


All times are GMT -4. The time now is 11:55.