CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Pausing Fluent in batch

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

Like Tree3Likes
  • 1 Post By student
  • 2 Post By Bocliff

LinkBack Thread Tools Display Modes
Old   February 22, 2008, 13:20
Default Pausing Fluent in batch
Posts: n/a
Hiya Im runnign Fluent in batch mode using a journal file, and would like to temporarily pause the process (for say 2mins ) between two commands in the journal to allow an external program to do some nifty work and create a file that Fluent needs for the next step. Im looking for somethign similar to matlab's "pause" command, or often "wait" in many codes. Any ideas?

Many thanks.
  Reply With Quote

Old   February 22, 2008, 19:48
Default Re: Pausing Fluent in batch
Posts: n/a
in journal you can run a shell command but the first character should be !

So to make fluent stop for few seconds , for example 15 sec use


or you can write your own C program and ask fluent to run it


It all works

wc34071209 likes this.
  Reply With Quote

Old   February 22, 2008, 22:34
Default Re: Pausing Fluent in batch
Posts: n/a
thanks for the help, ill check that plan out.
  Reply With Quote

Old   February 23, 2008, 16:13
Default Re: Pausing Fluent in batch
Posts: n/a

If you are using batch mode then you can just use a script file, which is controlled by a run file. I run batch jobs using up to 32 processors and the script just contains commands like:

rc file.cas /read case it 1500 /iterate 1500 wd file.dat /write data file

You can use this if you know when you're likely to be stopping the simulation (say every 200 iterations) and writing a corresponding file. Have a look at the fluent manual if you want to use this method.

  Reply With Quote

Old   June 18, 2009, 11:37
Default use cx-pause
New Member
Bocliff Sutter
Join Date: Jun 2009
Posts: 7
Rep Power: 10
Bocliff is on a distinguished road
You can pause by putting this in your journal file:


And it will wait for you to hit the return key.

If you want it to just pause for some time you can specify the time instead:

(cx-pause 5)

where the specified number is the time to wait in seconds.

Bocliff Sutter
--The powerful roar of the dragon is empty. The iridescence colors of the rainbow are only illusions.
3DmaniacSLDWRKS and tolgacfd like this.
Bocliff is offline   Reply With Quote

Old   June 18, 2009, 23:15
Tiago Macarios
Join Date: Mar 2009
Posts: 35
Rep Power: 10
los is on a distinguished road
I had to do exactly the same once, what I did was using a loop in C to find the file that fluent should be waiting. I think it was something like this:


while (pb==NULL){
system(pause nn);

This way fluent checks if the file is ready at a certain nn time interval.

Hope it helps.
los is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 7 May 22, 2014 22:30
Master node in parallel computing only distirubtion syadgar FLUENT 1 September 8, 2009 16:41
On Bug of Fluent 12.0 lzgwhy FLUENT 0 August 26, 2009 06:41
problem with fluent in batch mode Pat FLUENT 2 February 13, 2003 14:14
Batch File fo Fluent & Fieldview Oliver FLUENT 0 July 14, 2000 13:12

All times are GMT -4. The time now is 21:35.