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

How to run Fluent on the background

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2001, 12:27
Default How to run Fluent on the background
  #1
Jie
Guest
 
Posts: n/a
Hello, Sir,

For the reason the simulation will take a long time in a common computer, I have to run the simulation on a super computer.

ssh2 super_computer_name ; Fluent

My question is whether I can run the program on the background of the super computer. Then I logouted my machine. After several hours, I login my machine to take a look at the program. How can I get the results from background of the supercomputers to foreground of my computer?

Thanks very much.

Jie

  Reply With Quote

Old   September 5, 2001, 13:02
Default Re: How to run Fluent on the background
  #2
Cindy Campbell
Guest
 
Posts: n/a
You can do this by running a batch file on the mainframe computer. If you look in the user manual, there are instructions for writing and running batch files, and using text interface, depending on the type of computer system fluent is on. For me, ours is on a unix machine, so that is what I know. Would you like to see a sample?
  Reply With Quote

Old   September 6, 2001, 13:20
Default Re: How to run Fluent on the background
  #3
Clinton Lafferty
Guest
 
Posts: n/a
Typically, I would have FLUENT write out a results file every 50 to 100 iteration (under write>auto-save ??). Also dump everything that would go to the screen to a file using something like run.exe > out.log. While your job is running (on the supercomputer) copy the latest result and log files from the computer's hard drive (scratch space) to your local or working directory. This methods will allow your job to keep running. It has been a while since I have worked with on an SGI Origin array, so I cannot remember the exact commands. As Cindy mentioned put everything in a text script file.
  Reply With Quote

Old   September 6, 2001, 15:53
Default Re: How to run Fluent on the background
  #4
Jie
Guest
 
Posts: n/a
Yes, Can you give me an example? My machine is also a unix machine. Thanks.
  Reply With Quote

Old   September 6, 2001, 18:20
Default Re: How to run Fluent on the background
  #5
Jie
Guest
 
Posts: n/a
Hello,

I set auto-save to 10 interations. But the problem said that save errors existed.

Jie
  Reply With Quote

Old   September 6, 2001, 20:24
Default Re: How to run Fluent on the background
  #6
Cindy Campbell
Guest
 
Posts: n/a
Here is and example of an input text file for a case name of 3Dtank.cas, which I have called 3Dtankin.txt:

-

file/read-case-data 3Dtank.cas

solve/monitors/residual/plot no

solve/monitors/residual/print yes

it 50

wd 3Dtank.dat

yes

it 50

wd 3Dtank.dat

yes

exit

-

I run it in the background from the command prompt on the unix machine using the following:

fluent 3d -gu <3Dtankin.txt>& 3Dtankou.txt &

I chose the output file name to be 3Dtankout.txt. The -gu in the command line will make sure it doesn't try to turn on the graphics. It doesn't like to do that in batch mode, so you would get error messages. I make sure the residual plotting is off, since that needs graphics, and turn on printing so the output file has something I can see. You can put other commands in your text file depending on what you want it to do. If you are familiar enough with the menus, the text commands pretty much follow the same structure, with a "/" between subdirectories. It also recognizes shortcuts. wd stands for write-data, it stands for iterate. The "yes' is to answer the question fluent would have at that point, which is "3Dtank.dat already exists. OK to overwrite?" Let me know how it goes.
  Reply With Quote

Old   September 6, 2001, 23:54
Default Re: How to run Fluent on the background
  #7
Jie
Guest
 
Posts: n/a
Thank you very much. Let me try.

it 50

wd 3Dtank.dat

yes

it 50

wd 3Dtank.dat

yes

Is '50' the times of interations for saving files? Thanks very much.

------Jie

  Reply With Quote

Old   September 7, 2001, 00:46
Default Re: How to run Fluent on the background
  #8
Jie
Guest
 
Posts: n/a
hello,

If I want to run for 5000 interations and save data every 100 interations. How can I write the code.

Thanks very much.

---Jie
  Reply With Quote

Old   September 7, 2001, 11:04
Default Re: How to run Fluent on the background
  #9
Kang
Guest
 
Posts: n/a
You need to set it in File/Autosave, put 100 for the case or data file or both, then save the case file and the rest is the same: it 5000

In UNIX, you need to make sure the file name you put in the Autosave filename field has the correct path. If you only put a filename there it will use the default/current path to save the file.
  Reply With Quote

Old   September 7, 2001, 23:41
Default Re: How to run Fluent on the background
  #10
Cindy Campbell
Guest
 
Posts: n/a
You could say

it 100

wd outputfilename.txt

yes

and do that 50 times. If I have that many iterations to do, I usually iterate longer between saves, like maybe 200 or 300. I have not had much luck myself with the autosave feature, but this works well enough for me. Everytime you say wd it is saving the data.
  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
Cannot run fluent 12 kbaker ANSYS Meshing & Geometry 6 February 20, 2011 19:11
few quesions on ANSYS ICEMCFD and FLUENT Prakash.Paudel ANSYS 0 August 12, 2010 13:07
Record Run Times in Fluent Ravi FLUENT 3 October 7, 2008 23:41
resume and run fluent for another timestep via a c greg FLUENT 2 June 30, 2005 06:01
how to run fluent 5.4 in background l.g.patil FLUENT 5 February 1, 2002 13:06


All times are GMT -4. The time now is 01:36.