FLUENT 6 - writing residual plots when running in batch mode


When running FLUENT in batch mode one may wish to monitor the solution progress by viewing the residual history and monitor plots.
Monitoring the progress of a FLUENT simulation run in batch mode can be easily done by periodically writing image files containing residuals and monitors. The following section from a FLUENT journal file demonstrates how this can be accomplished. Note that writing image files while running in batch mode requires a null driver to be specified for the graphics. This is done using the -gu -driver null options when starting FLUENT. For example,

fluent 3d -gu -driver null -i batch_journal_file.jou &


Journal commands:

; set up hardcopy attributes (modify as desired)
display set hard-copy color-mode color
display set hardcopy driver jpeg
display set hardcopy landscape?
no
display set hardcopy invert-background?
yes
;
; set up residual plotting
solve monitors residual plot?
yes
solve monitors residual window
0
;
; iterate
solve iterate 1000
;
; write image file of residuals
display set-window
0
display hard-copy
Residuals.jpg
;

Options:

1. Usually it is desirable to write residual plots periodically.

; iterate
solve iterate 500
;
; write image file of residuals
display set-window
0
display hard-copy
Residuals_1.jpg
;
; iterate
solve iterate 500
;
; write image file of residuals
display set-window
0
display hard-copy
Residuals_2.jpg
;
; iterate
solve iterate 500
;
; write image file of residuals
display set-window
0
display hard-copy
Residuals_3.jpg
;

2. Images of convergence monitors can also be created. For example,

; create a point to monitor the velocity
surface point-surface
point-1
-0.02
0.15
0.1
;
; set up a convergence monitor
solve monitors surface set-monitor
point-monitor-1
phase-1
velocity-magnitude
point-1
()
yes
1
yes
yes
point-1-vel-mag.dat
yes
"Vertex Average"
;
; write image file
display set-window
1
display hard-copy
Monitor_1.jpg





Show Form
No comments yet. Be the first to add a comment!