CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Scheme scripting for transient flow

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2007, 11:24
Default Scheme scripting for transient flow
  #1
john deas
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
  Reply With Quote

Old   October 26, 2007, 11:40
Default Re: Scheme scripting for transient flow
  #2
john deas
Guest
 
Posts: n/a
Answer is simple: I can mix tui and scheme commands in a journal file.

sorry for your attention
  Reply With Quote

Old   October 29, 2007, 06:24
Default Re: Scheme scripting for transient flow
  #3
John Deas
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
  Reply With Quote

Old   October 29, 2007, 20:20
Default Re: Scheme scripting for transient flow
  #4
Javier Larrondo
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
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressible flow, no data at the outlet mireis FLUENT 1 July 28, 2010 05:22
Scheme file for sinusoidal channel flow elobb FLUENT 0 November 24, 2009 11:27
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
2D scheme for two-phase flow is needed Oleg Main CFD Forum 3 June 19, 2002 10:31
mass flow inlet Denis Tschumperle FLUENT 7 August 9, 2000 02:19


All times are GMT -4. The time now is 18:00.