|
[Sponsors] |
October 26, 2007, 12:24 |
Scheme scripting for transient flow
|
#1 |
Guest
Posts: n/a
|
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 |
|
October 26, 2007, 12:40 |
Re: Scheme scripting for transient flow
|
#2 |
Guest
Posts: n/a
|
Answer is simple: I can mix tui and scheme commands in a journal file.
sorry for your attention |
|
October 29, 2007, 06:24 |
Re: Scheme scripting for transient flow
|
#3 |
Guest
Posts: n/a
|
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 |
|
October 29, 2007, 20:20 |
Re: Scheme scripting for transient flow
|
#4 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Compressible flow, no data at the outlet | mireis | FLUENT | 6 | September 3, 2015 03:10 |
Scheme file for sinusoidal channel flow | elobb | FLUENT | 0 | November 24, 2009 11:27 |
2D scheme for two-phase flow is needed | Oleg | Main CFD Forum | 3 | June 19, 2002 11:31 |
mass flow inlet | Denis Tschumperle | FLUENT | 7 | August 9, 2000 03:19 |