CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   animation of transient simulation using batch file (https://www.cfd-online.com/Forums/fluent/46347-animation-transient-simulation-using-batch-file.html)

Markus October 16, 2007 11:54

animation of transient simulation using batch file
 
Hi,

I'm conducting several transient simulations in fluent 6. I've already written a batch file which works just fine, except for the export of the jpeg-files. I used the /display/set/.. and /display/contours... commands like in tui to set the display windows. If I run the simulation there's just one exported jpeg-file. How can I set the batch file in order that it exports the animations each 2nd time step??

My batch file:

/rcd "/dummy.cas" yes

/define/user-defined/interpreted-functions "/dummy.c" "cpp" 10000 no

/define/user-defined/execute-on-demand "on_demand_fin"

/display/set/hardcopy/driver/jpeg

/display/set/hardcopy/invert-background? yes

/display/set/hardcopy/x-resolution 640

/display/set/hardcopy/y-resolution 480

/display/set/hardcopy/landscape? yes

/display/set/hardcopy/color/color

/display/set-window 1

/display/set/contours/clip-to-range? yes

/display/contour velocity-magnitude 0 1

/display/view/camera/zoom-camera 5

/display/hard-copy "dummy_%t_%n.jpg"

/solve/set/time-step 0.025

;number of physical time steps, number of iterations per time step

/solve/dual-time-iterate 1200 200

/exit yes

Cheers! Markus


bashu October 17, 2007 10:30

Re: animation of transient simulation using batch
 
You can use 'solve' -> 'execute-command' and define two commands; first to plot every 'n' iteration and second to create a hard copy.


All times are GMT -4. The time now is 07:45.