FLUENT 6 - How to annotate your graphical plots without using the GUI (useful for batch runs)
Annotating your graphical plots is a manual operation through the GUI. However, if you are running a calculation in batch mode and are saving graphical plots during the run, you may need to automate the annotation process without using the GUI. This solution provides a Scheme file that can help you achieve this. The following Scheme function can help you annotate your graphical plots during the FLUENT calculation. Load the following scheme file & call this function by executing a command after a contour or vector plot has been displayed. Go to Solve->Execute Commands Switch on 1 command. Under command, type within parenthesis as shown below: (set-annotate) The following example function displays the flowtime in the graphics window top-left corner in front view. The command which displays annotation is: (cx-annotate '() '(-0.8 0.8 0) "v<" (format #f "~d sec" a)) The three numbers in the arguments represent the coordinates (Each coordinate of the graphics window ranges from -1 to 1) The fourth argument should be the string which needs to be displayed. The remaining commands set various font properties **************************************************************************************** (define set-annotate (lambda() (with-output-to-file "junk" (lambda () ; ADD POSTPROCESSING COMMANDS (define a (rpgetvar 'flow-time)) (ti-menu-load-string "dis c-ann") (cx-use-window 0) (cxsetvar 'annotate/font/size "24") (cxsetvar 'annotate/font/wt "Medium") (cxsetvar 'annotate/font/slant "Regular") (cxsetvar 'annotate/color "foreground") (cxsetvar 'annotate/font/name "helvetica") (cx-annotate '() '(-0.8 0.8 0) "v<" (format #f "~d sec" a)) (cx-changed 'scene-list) ; SAVE HARDCOPY )) ) ) |
||
|