Two conditions in Fluent journal files
I have an FLUENT journal file I use for post-processing.
The journal reads in cas and dat files I auto-saved and performs a certain action.
the files are in the format
so basically a number increasing in increments of 10. This causes probelms when I read the file.
Any ideas? Thanks
why didn't you use another program (journal generator) for this purpose? (Any other languages which can generate expanded journal file; I usually use FORTRAN)
the problem ist not the generation of the journal file itself.
it needs to be in the scheme language for fluent to understand, doesn't it?
my problem is basically in the syntax of scheme in fluent. usually scheme understands (case) as well but fluent does not.
Paste the error message.
or just use casename as following:
actually i know this notation from other tools like ffmpg in linux. did not know this works in scheme. I will try it later today.
it finally worked. i had to define the basename outside of the loop and then construct the filename inside of the loop
(define (po);;name of the journal-function
(define basename "file-")
(define nstart 50);; time-step # for the 1st data set
(define nsave 10) ;; auto-save frequency
(define ndata 1) ;; # of data-sets
(do ((i nstart (+ nsave i)))((= i (+ nstart (* ndata nsave))))
(ti-menu-load-string(format #f "f rcd ~a~04d" basename i))
;;more other things
|All times are GMT -4. The time now is 07:02.|