FLUENT - Write case/data with flow time in the name of the file.
If the flow time is 8.56 seconds, then I want to write a filename with foo_8.56.cas.gz and foo_8.56.dat.gz ;;; At the end of these instructions are scheme commands which you should cut and paste into a file named "wcd_time.scm." ;; Then issue the command (load "wcd_time.scm") at the FLUENT GUI. This will define 3 commands: (wcd-time base) This writes out the case and data (wc-time base) This writes out just the case (wd-time base) This writes out just the data If you issue the command (wcd-time "foo_") and the flowtime = 8.56, then you'll get foo_8.56.cas.gz and foo_8.56.dat.gz ;; BEGINNING OF SCHEME FILE wcd_time.scm ;; ;; Write case and data with time (define wcd-time (lambda (base) (write-case-data (string-append base (number->string (rpgetvar 'flow-time)) ".gz")))) ;; Write data file with time (define wd-time (lambda (base) (write-data (string-append base (number->string (rpgetvar 'flow-time)) ".dat.gz")))) ;; Write case file with time (define wc-time (lambda (base) (write-case (string-append base (number->string (rpgetvar 'flow-time)) ".cas.gz")))) |
||
|