CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Help using FLUENT in batch mode: script in the Journal file (https://www.cfd-online.com/Forums/fluent/99879-help-using-fluent-batch-mode-script-journal-file.html)

kiranczende May 23, 2019 01:39

Thank you very much
 
Quote:

Originally Posted by LuckyTran (Post 723144)
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.

Thank you very much

Tait10 November 2, 2019 09:54

Currently moving from my own computer to HPC. Learning a lot about bash scripts and have run into a couple of barriers. Didn't want to start a new thread as this one seems pretty comprehensive.

When writing a .dat file, it appears to only give me the last timestep saved in that .dat file. Do I need to write a new .dat file for every timestep along the way in order for it to save every timestep? I am using TecPlot AS my post-processor if that helps. If this is the case, is there another command for that that doesn't end with me using 6000 lines of code in one .jou file?

Do I also need to write a .cas file along with the .dat file? No moving mesh so I wouldnt have thought it needed it on every ts, just at the end. .jou file posted below for you to have a look, cheers in advance.

; Read case file
rc FFF.1-Setup-Output.cas.gz
; Initialize the solution
/solve/initialize/hyb-initialization
; the time-step size as 0.01 (seconds)
/solve/set/time-step 0.01

;No of it
;Max it per time step
/solve/dual-time-iterate
1000
20
; Write data file (compressed, iteration number included in file name)
wd initial_testing_output_ts1.gz

;No of it
;Max it per time step
/solve/dual-time-iterate
1000
20
; Write data file (compressed, iteration number included in file name)
wd initial_testing_output_ts2.gz
; Exit FLUENT
exit
yes

bineet_aero November 26, 2019 07:19

standard initialization
 
Quote:

Originally Posted by diamondx (Post 354692)
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


Hii, How can be specifically initialise from inlet (standard initilization) ? thanks a lot

AlexanderZ November 26, 2019 23:23

Code:

solve initialize initialize-flow OK


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