Help using FLUENT in batch mode: script in the Journal file
Good morning,
i'm starting to use Fluent 12 in batch mode, and i have some problems. I use an interactive window to submit the batch command, so i think that is right working; anyway i post it here: bsub -n (number of cores) -q (queue name) -R (resource name) -R rusage[aa_r=1:aa_r_hpc=1:duration=1] -e ./errorfile_%J -o ./outputfile_%J fluent12.sh -ar 3ddp -g -i script_input_jou.txt I think the problem could be with the journal file; i wrote this command lines: file read-case-data name_of_case.cas solve iterate 1500 exit Is this script right? Another doubt i have is about the journal file extension: .jou or .txt? Thank you very much! |
danobis, here is a working example of a journal files (.jou), when you see a ";", it means i'm asking fluent to skip that command:
/file/read-case-data /home/maghazlani/Analysis/intake_test_3-1-23000.cas ;/define/operating-conditions/operating-pressure 0 ;/define/models/solver/density-based yes ;/define/models/energy yes ;/define/models/viscous/kw yes ;/define/boundary-conditions/modify-zones/zone-type 11 pressure-inlet ;/define/materials/change-create air air yes ideal-gas no no no no no no ;/define/boundary-conditions/pressure-inlet inlet yes no 101325 no 27357 no 300 no yes no no no yes 01 0.05268 ;/define/boundary-conditions/modify-zones/zone-type 10 pressure-outlet ;/define/operating-conditions/operating-pressure 0 ;/adapt/adapt-to-gradients pressure curvature 0 0.7 0.3 yes 100 ;/adapt/set/max-number-cells 2000 ;/solve/initialize/compute-defaults/pressure-inlet 11 ;/solve/initialize/repair-wall-distance yes ;/solve/initialize/initialize-flow ;/adapt/mark-inout-hex yes no 0.000515079 0.205496 0.0156082 0.0451296 -0.000208354 -0.0265887 ;/file/auto-save/data-frequency 20000 ;/mesh/polyhedra/convert-domain yes yes ;/solve/set/under-relaxation/k 0.5 ;/solve/set/under-relaxation/epsilon 0.5 ;/solve/set/under-relaxation/turb-viscosity 0.7 ;/solve/set/under-relaxation/solid 0.7 ;/solve/set/limits 1 5e10 1 5000 1e-14 1e-20 100000 0.05 /solve/iterate 24000 ;/display/set/contours/surfaces 0 () ;/display/set/picture/color-mode color ;/display/set/picture/driver jpeg ;/display/set/contours/n-contour 99 ;/display/set/contours/filled-contours yes ;/display/contour mach-number ;/solve/monitors/surface/set-monitor mass-flow "Mass Flow Rate" 0 () no no yes massf 1000 ;/display/views/restore-view left ;/display/views/auto-scale ;/display/views/camera/zoom-camera 2 ;/display/save-picture /home/maghazlani/Analysis/screenshot-mach-extended_5-4000.jpeg /file/write-case-data /home/maghazlani/Analysis/intake_test_3-1-47000.cas |
If this doesn't work, problem is from that script that you're using to submit the job. come back to me later to let me know if it works or not
|
Thanks very much, Ali.
I tried that script you send me, but it doesn't work. The script i used is: /file/read-case-data /afs/private/k120mixDDA_SG0lambda21.cas /solve/iterate 1500 /file/write-case-data /afs/private/k120mixDDA_SG0lambda21.cas exit and it gives this errorfile: nk = 8: Process affinity not being set. Machine is already loaded. Note: Rank = 6: Process affinity not being set. Machine is already loaded. Note: Rank = 0: Process affinity not being set. Machine is already loaded. Note: Rank = 5: Process affinity not being set. Machine is already loaded. Error: eval: unbound variable Error Object: 1500 Error: eval: unbound variable Error Object: /file/write-case-data Error: eval: unbound variable Error Object: k120mixdda_sg0lambda21.cas Error: eval: unbound variable Error Object: *eof* |
so at that point, you could run fluent right ? usually when i run fluent in parallel i get the error "machine is already loaded" when i try to run fluent in a pc where fluent is already loaded . also for the process affinity problem that comes from your nodes. check the setting in your cluster, make sure the file is not too big too handle, add more nodes if you can. this is what i use to launch fluent :
./fluent 3ddp -gu -i -t42 -ssh < /home/maghazlani/Analysis/test.jou > /home/maghazlani/Analysis/outputfile-test |
Quote:
I also have some problems with my journal file. I want to save hardcopys of the contour plot of the phases, (water and air), with 10 levels. The following is what I have so far. Can you tell me whats wrong? /display/set/contours/water 0 1 /display/set/picture/color-mode color /display/set/picture/driver jpeg /display/set/contours/n-contour 10 /display/set/contours/filled-contours yes /display/save-picture /xxx/xxx/xxx/xxx/case10_2.jpeg Thanks! /Jen |
Hello,
About journal file I think the extension doesn't really matter. But I'm not sure about end of your script. I for example used fluent_journal.jou like that: /file/read-case-data/ name_of_case.cas /solve/iterate 1000 /file/write-case-data name_of_case_end.cas exit yes exit I used it yesterday ant it worked perfectly fine. However I put submission and journal scripts in the root folder so had no issue with filepath. |
Quote:
|
Quote:
/Jen |
you just press enter and start typing in the console command in the bottom right
|
Hello everyone!
I am submitting a job to a cluster and thus I am creating a journal file for this. I have created a journal file which reads the case and data file. But one problem is that the case file has a CHEMKIN mechanism which has been imported from my local workstation. So when I submit the journal file to the cluster, the cluster will not be able to recognize the file path from where the chemkin mechanism was read. So I want to re-import the mechanism file to mitigate the above problem. My question is what is the command line to import CHEMKIN mechanism file? I tried: file import chemkin-mechanism and then the absolute path to the mechanism files in the TUI for testing, but it doesn't recognize the command. Can anyone tell how this can be done? EDIT: I found the solution. It was simple. file import chemkin-mechanism "decane" "/PATH/Mechanism_decane.che" "/PATH/thermo_decane.db" n n Regards |
Hello
Could I have a look at your journal file as I am having the same issue |
Hello
I would like to know when do I have to use only "/" at the beginning of a line and when do I need ";/"? What is the difference? I'm also not sure why some of the parameters are changed and others not. Like if I use /solve/dual-time-iterate 2 50 the Number of Time Steps is not visable changed to 2 and same for Max Iterations which should be 50. While if I use /define/models/multiphase/model eulerian the model is changed to eulerian. How come? Thanks for help or advice Chris |
Quote:
|
cluster
how can i submit a fluent unsteady job to a cluster as i am new to this.
also what types of files are need to be uploaded |
Quote:
It's the same for unsteady as stead. You need the .cas (and usually also a .dat unless you initialize it in your journal) and a journal file (the .jou). There are examples of a .jou in this thread. The way you submit the job to your cluster depends on the setup. Here you will need help from the cluster admin. |
Hi,can you please tell me about these highlighted lines as I do not know about these
rc fluent.cas
rd fluent.dat solve/set/ri 1 file/auto/data 10 solve/set/time-step 0.001 solve/set/cour 200 solve/dual 100000 30 file/write-case-data-path name-fluent.cas exit yes |
Quote:
In GUI ANYSYS Fluent I run simulation shortly about 1 second to get the .dat file for in the Input file of batch mode. Is it write way to get the .dat file? I confused that in the journal file where I can set up the running time (iteration: 2 weeks) on the batch mode? here is my journal file. ;fluent simulation input file ;read case file rc input.cas rc input.dat ;initialize the solution solve initialize initialize-flow ;calculation the iteration solve/set/time-step 0.01 ;write data file wd output.dat wd output.cas ;exit fluent exit ;confirm exit to prompt yes |
hi hocon
after command solve/set/time-step 0.01
/solve/dual-time-iterate 4400 300 where 4400 is number of time step which is nothing but total time (physical) and 300 is iterations per time step. |
Thank you very much
|
All times are GMT -4. The time now is 13:22. |