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

How to terminate fluent batch jobs?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 10, 2004, 08:50
Default How to terminate fluent batch jobs?
  #1
Martin S. Rasmussen
Guest
 
Posts: n/a
We run fluent non-interactive on a Sun Gridengine by submitting our jobs batchwise and occasionally, we need to terminate a job. However, a simple termination kills the process without writting any of the results into a data file. Is there a simple way to terminate fluent and have a regular exit including the writting of a case and data file at the time of termination?

/Martin
  Reply With Quote

Old   August 10, 2004, 12:20
Default Re: How to terminate fluent batch jobs?
  #2
Bob
Guest
 
Posts: n/a
You can touch the file by touch /tmp/check-fluent and then rcp "casename" "username@workstationid". What I have to do after this is "ls" and it lists the case and data file at which iteration it was saved. I then I have to rcp that case and data using the same directory in which it gets saved into my home directory to be viewed in Fluent. After that you can kill the job. I hope this is understandable.
  Reply With Quote

Old   August 10, 2004, 15:23
Default Re: How to terminate fluent batch jobs?
  #3
Jason
Guest
 
Posts: n/a
You can make it a little easier.

In your input file for the batch run insert a line including the parenthesis:

(set! checkpoint/exit-filename "/directory/exit-fluent-####")

Where directory is the directory you're storing your case and data files, and #### is some representative name. They say you can use "./" to indicate the directory where the case and data currently are, but that doesn't always work so well for me. And exit-fluent-#### can really be anything you want, but this is the format that works well for me. Then, when you want to stop the iterations and end the process, just type (this works for HP unix workstations at least):

touch /directory/exit-fluent-####

It will save the case and data file after the current iteration, adding the iteration number to the file name, and the files will all be in the directory you specified in your input file.

Hope this helps

Jason
  Reply With Quote

Old   August 11, 2004, 09:39
Default Re: How to terminate fluent batch jobs?
  #4
Martin S. Rasmussen
Guest
 
Posts: n/a
I assume that set checkpoint/exit-filename "/directory/exit-fluent-#### should be placed in the shell script file that launches fluent and not in the journal file. Correct?

/Martin
  Reply With Quote

Old   August 11, 2004, 10:21
Default Re: How to terminate fluent batch jobs?
  #5
Jason
Guest
 
Posts: n/a
In the journal file.

Example:

;-----------------------------------

;Start of script

;-----------------------------------

; Set checkpoint - exit filename

(set! checkpoint/exit-filename "/disk0/exit-fluent-2d-airfoil")

; Read Case and data

rc /disk0/2d-airfoil.cas rd /disk0/2d-airfoil.dat

; Calculate 500 iterations

it 500

; Write Data

wd /disk0/2d-airfoil-final.dat

; Exit file

exit y

;-----------------------------------

;End of script

;-----------------------------------

Then, whenever you want it to save the case and data and exit fluent, type:

touch /disk0/exit-fluent-2d-airfoil

In the directory "/disk0/" there will now be three new files (for example if you stopped at iteration 52):

2d-airfoil0052.cas, 2d-airfoil0052.dat, and another file that I believe ends in .inp

The .inp file is supposed to be used to restart the processes, but I've never looked into it to see what it actually says.

Hope this helps. Jason
  Reply With Quote

Old   August 11, 2004, 12:01
Default Re: How to terminate fluent batch jobs?
  #6
Martin S. Rasmussen
Guest
 
Posts: n/a
Thanks, I got everything I needed and it runs smooth in all the configurations that I use. Also when I tried to set the check-filename. Thanks again - Martin
  Reply With Quote

Reply

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
Checking license server and batch jobs Ervin FLUENT 0 October 15, 2008 11:52
Fluent jobs in India Yash bhatt FLUENT 0 October 10, 2008 18:49
Jobs in cfd - fluent or cfx? jobman Main CFD Forum 6 July 5, 2006 15:02
problem with fluent in batch mode Pat FLUENT 2 February 13, 2003 14:14


All times are GMT -4. The time now is 13:40.