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

Help using FLUENT in batch mode: script in the Journal file

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2019, 02:39
Default Thank you very much
  #21
New Member
 
Kiran
Join Date: Oct 2017
Posts: 4
Rep Power: 9
kiranczende is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
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
kiranczende is offline   Reply With Quote

Old   November 2, 2019, 10:54
Default
  #22
New Member
 
ZT
Join Date: Nov 2019
Posts: 14
Rep Power: 7
Tait10 is on a distinguished road
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
Tait10 is offline   Reply With Quote

Old   November 26, 2019, 08:19
Default standard initialization
  #23
Member
 
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13
bineet_aero is on a distinguished road
Quote:
Originally Posted by diamondx View Post
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
bineet_aero is offline   Reply With Quote

Old   November 27, 2019, 00:23
Default
  #24
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Code:
solve initialize initialize-flow OK
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
Changing the Max level of Refine in a journal file in batch mode (without GUI)? tohid FLUENT 0 April 18, 2011 21:24
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


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