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

Stopping a Fluent batch job AND saving the data! Possible?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Chetan Polavaram

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2000, 04:46
Default Stopping a Fluent batch job AND saving the data! Possible?
  #1
Volker Pawlik
Guest
 
Posts: n/a
Hi Fluent Users, sometimes I run Fluent in a batch job, i.e. I use the ability of Fluent to read journal or log files instead of interactive commands by the 'i-' option, the option of switching off gaphics '-g' and the display diversion function ('>') of UNIX. This gives me the opportunity to have a look on the progress of the calculation from a remote login.

Unfortunately it happens sometimes that the number of iterations was set to high in order to have finished next morning. This leads to my question:

Does someone know how to stop a fluent process / fluent batch job AND to save the data, i.e. not to loose the results of one night or a weekend? Sometimes kill -1 on the cortex process works. Fluent then writes the case as #FLUENT# and the data as #FLUENT#.dat.

Thank you already for answering.
  Reply With Quote

Old   April 10, 2000, 23:57
Default Re: Stopping a Fluent batch job AND saving the data! Possible?
  #2
Chetan Polavaram
Guest
 
Posts: n/a
Hi,

In the journal file you can add statements such that the fluent files are saved after a specified number of iterations after which iterations are resumed again. Example of a .jou file to run test.cas two times with 20 iterations each time.

file

read-case-data

test.cas

/solve

iterate

20

quit

/file

write-case-data

y

/solve

iterate

20

quit

/file

write-case-data

y

quit

quit

exit

This saves the case after 20 iterations and resumes iterating again. So if you need to run more iterations change the number of iterations or save and iterate a couple of times by copying the portion and pasting where necessary.

iterate

20

quit

/file

write-case-data

y where required.

Chetan
souhail likes this.
  Reply With Quote

Old   April 14, 2000, 12:22
Default Re: Stopping a Fluent batch job AND saving the data! Possible?
  #3
Anders Jerhamre
Guest
 
Posts: n/a
To check your job (i.e. to save and continue the run) create a file named check-fluent in your /tmp directory.

To save and exit, create a file named exit-fluent .

This should work if you don't run through any queue system. Queue systems normally have the check-batch-job option and this is what I have to use right now.

Anders
  Reply With Quote

Old   April 17, 2000, 07:01
Default Re: Stopping a Fluent batch job AND saving the data! Possible?
  #4
Volker Pawlik
Guest
 
Posts: n/a
How do I have to create those files?
  Reply With Quote

Old   April 25, 2000, 04:39
Default Re: Stopping a Fluent batch job AND saving the data! Possible?
  #5
Anders Jerhamre
Guest
 
Posts: n/a
Use the command touch exit-fluent which creates a file named exit-fluent without any content.
  Reply With Quote

Old   May 10, 2000, 04:30
Default Re: Stopping a Fluent batch job AND saving the data! Possible?
  #6
Volker Pawlik
Guest
 
Posts: n/a
Where does fluent save the data+case file? Into my tmp-directory?
  Reply With Quote

Old   May 10, 2000, 11:49
Default Re: Stopping a Fluent batch job AND saving the data! Possible?
  #7
Volker Pawlik
Guest
 
Posts: n/a
No answers necessary, I found it out by myself: Inside the working directory form where the job was submitted a dat and cas file whose name includes the actual number of iterations is saved.

Very nice! Thanks a lot Anders Jerhamre.
  Reply With Quote

Old   May 22, 2014, 23:30
Default
  #8
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15
Svetlana is on a distinguished road
need to save data and stop fluent; autosave is not enabled. looking for guides / tutorials
Svetlana is offline   Reply With Quote

Old   November 26, 2019, 05:14
Default
  #9
New Member
 
Carles Sagués Mitjana
Join Date: May 2016
Posts: 8
Rep Power: 10
Carles_SM is on a distinguished road
Dear experts,

Submitting FLUENT 19.1 jobs on PBS qeueing system with scripts.
Is there a way to stop ongoing simulation and save .dat file?

I have tried creating a file in the same folder as the out.log file gets updated.
File names used:
exit-fluent (as suggested in http://jullio.pe.kr/fluent6.1/help/html/ug/node62.htm)
checkpoint-exit (but I think this works for SGE queueing system)

but job still runs...

Any ideas?

Regards,
Carles_SM is offline   Reply With Quote

Old   November 26, 2019, 13:22
Default
  #10
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,753
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The check-fluent trick should work still on PBS, it's not SGE specific. Make sure you put it in the right place though. Are you able to find the cleanup file in the same dir?


If you are running Fluent thru workbench, the location might be different (where the .set file is).
LuckyTran is offline   Reply With Quote

Old   November 27, 2019, 09:28
Default
  #11
New Member
 
Carles Sagués Mitjana
Join Date: May 2016
Posts: 8
Rep Power: 10
Carles_SM is on a distinguished road
LuckyTran,

Working outside of Workbench.
Job is splitted on several compute nodes.
I create the files (tried with check-fluent and exit-fluent) where a file named
cleanup-fluent-***.sh is written and where I am able to follow the out.log evolution...
Carles_SM is offline   Reply With Quote

Old   December 25, 2020, 02:09
Default
  #12
New Member
 
Andrew
Join Date: Feb 2014
Location: Russia
Posts: 20
Rep Power: 12
Antech is on a distinguished road
I usually enable periodic auto-save with my custom Fluent start script (we use Torque queue system so it's too inconvenient to launch the job manually every time). But, when the calculation is slow (i.e. skeletal/detailed chemistry), it would be better to save-and-exit after any iteration. I tried to create an empty exit-fluent file in run directory (where the case and data files are) without any effect (I checked that exit-fluent file is there and has correct name with file manager). Fluent version is 16.2. So it looks like this trick will only work for particular Fluent versions.
Antech is offline   Reply With Quote

Old   December 25, 2020, 15:20
Default File location in /tmp
  #13
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15
Svetlana is on a distinguished road
Quote:
Originally Posted by Antech View Post
I usually enable periodic auto-save with my custom Fluent start script (we use Torque queue system so it's too inconvenient to launch the job manually every time). But, when the calculation is slow (i.e. skeletal/detailed chemistry), it would be better to save-and-exit after any iteration. I tried to create an empty exit-fluent file in run directory (where the case and data files are) without any effect (I checked that exit-fluent file is there and has correct name with file manager). Fluent version is 16.2. So it looks like this trick will only work for particular Fluent versions.

Thought it's a file in /tmp, not in run directory
Svetlana is offline   Reply With Quote

Old   December 28, 2020, 05:16
Default
  #14
New Member
 
Andrew
Join Date: Feb 2014
Location: Russia
Posts: 20
Rep Power: 12
Antech is on a distinguished road
Thanks, touch /tmp/exit-fluent did the trick!
Antech 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



All times are GMT -4. The time now is 03:06.