CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Scheme scripting for transient flow (https://www.cfd-online.com/Forums/fluent/46424-scheme-scripting-transient-flow.html)

john deas October 26, 2007 11:24

Scheme scripting for transient flow
 
Hi, I found that

(iterate x) allows me to compute x iterations. How can I advance in time to do something like

(dual-time-iterate 1 10) for example ?

thanks,

JD

john deas October 26, 2007 11:40

Re: Scheme scripting for transient flow
 
Answer is simple: I can mix tui and scheme commands in a journal file.

sorry for your attention

John Deas October 29, 2007 05:24

Re: Scheme scripting for transient flow
 
In fact my problem remain: I can not include journal command inside a scheme loop, like in:

(define (doit x x-max dx)

(if (<= x x-max)

(begin

solve/dual-time-iterate 1 2

(doit (+ x dx) x-max dx)

)

) ) (doit 1 10 1)

So if anyone as an idea about it it would be much appreciated.

thanks

Javier Larrondo October 29, 2007 19:20

Re: Scheme scripting for transient flow
 
Use... (ti-menu-load-string "solve/dual-time-iterate 1 2")

Also if you have variables like a=1 and b=2 you can use

(ti-menu-load-string (format #f "solve/dual-time-iterate ~d ~d" a b))

the last one is very useful when you integrate scheme and tui.

Cheers,

Javier


All times are GMT -4. The time now is 01:58.