CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   run f;uent job in batch mode? (http://www.cfd-online.com/Forums/fluent/31749-run-f-uent-job-batch-mode.html)

jx July 1, 2003 14:08

run f;uent job in batch mode?
 
Dear all, could any of you light me up how to run fluent in batch mode? I want to run my jobs on a server where interactive run is discouraged, and X is not even available.

Thanks.

Alex Munoz July 1, 2003 15:49

Re: run f;uent job in batch mode?
 
Hi

Fluent offers a guide regarding this issue, However, I will give you some hints.

First at all, you need four files(submit, myjournal.jou, mycase.cas and mycase.dat) I call it "submit" because I have to submit my job to a PBS server, I don't know if you use the same administrator. However, I provide my submit file to you.

I will explain some of the detail. replace mywork for the name of your work replace mye-mail@acme.com for your e-mail name replace the walltime 24h for the time that you need replace the memory requirement for your case replace ncpus if you require more than one cpu replace /PBSspace/username for the directory where you launch your work replace /usr/local/Fluent.Inc/bin/fluent for the location of fluent replace myjournal.jou for your journal filname replace output.out for your output filename the output file record the error in your calculation. ================================================== submit ================================================== = #!/bin/ksh #PBS -N mywork #PBS -m bea #PBS -M mye-mail@acme.ca #PBS -l walltime=24:00:00 #PBS -l mem=1000mb #PBS -l ncpus=1 export HOME=/PBSspace/username cd /PBSspace/username /usr/local/Fluent.Inc/bin/fluent 3d -g < myjournal.jou > output.out 2>&1 ================================================== == The following file is a journal file for unsteady case replace mycase.cas for your name file case replace mycase.dat for your name file data replace 100 for the number of time step that you need replace 25 for the number of iteration per step that you need replace mycase1.cas fro the file case name to write replace mydata1.cas for the file data name to write ================================================== == myjournal.jou ================================================== == ; Read case data file rc mycase.cas rd myfile.dat ;Calculate n iterations /solve/dual-time-iterate 100 25 yes ;Write case data file wc mycase1.cas wd myfile1.dat ;Exit Fluent exit yes ================================================== ==== The following is a journal file for steady simmulation replace the content as above

================================================== ==== journal file steady ================================================== ==== ; Read case data file rc mycase.cas rd myfile.dat ;Calculate n iterations it 100 ;Write case data file wc mycase1.cas wd myfile1.dat ;Exit Fluent exit yes ================================================== ====

Finally

type PBS sub submit or other command that will be specified for your administrator

type PBS stat to follow the status of your work

you will recieve e-mails regarding the time when your work start, finish or is interrupt

I sugguest that you read the PBS guide user!!

Good luck

Alex Munoz


Ataki July 1, 2003 16:59

Re: run f;uent job in batch mode?
 
Thank u Alex I 'll try it!

jx July 1, 2003 17:36

Re: run fluent job in batch mode?
 
As this forum php automately removes all single-line-breaks, it is hard to read your post. I managed to understand the shell script. I guess a semi-column sign (;) in the jorunal file leads a line of comments, but where to break them?

Or, what partion of fluent guide addresses this issue?

Thanks. I'll try it out.

Alex Munoz July 1, 2003 21:59

Re: run fluent job in batch mode?
 
Hi

You have to figure out for yourself how to read the infromation. I think I did enough for you!!!

Don't you think???

Alex

jx July 2, 2003 11:29

Re: run fluent job in batch mode?
 
Sure, thanks. Now I am doing it. Hopefully I'll get it work.


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