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

Scheme scripting for transient flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2007, 12: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, 12: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


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:56.