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

Pausing Fluent in batch

Register Blogs Community New Posts Updated Threads Search

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2008, 12:20
Default Pausing Fluent in batch
  #1
Giles
Guest
 
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, 18:48
Default Re: Pausing Fluent in batch
  #2
student
Guest
 
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

!sleep(15)

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

!my_program_that_does_something

It all works

wc34071209 likes this.
  Reply With Quote

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

Old   February 23, 2008, 15:13
Default Re: Pausing Fluent in batch
  #4
Carlos
Guest
 
Posts: n/a
Hi,

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.

Carlos.
  Reply With Quote

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

(cx-pause)

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
Default
  #6
los
Member
 
Tiago Macarios
Join Date: Mar 2009
Posts: 35
Rep Power: 17
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:

pb=fopen("your_file","r");

while (pb==NULL){
pb=fopen("your_file","r");
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

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
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 13 December 28, 2020 04:16
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 13:14
Batch File fo Fluent & Fieldview Oliver FLUENT 0 July 14, 2000 13:12


All times are GMT -4. The time now is 02:56.