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

Scheme Programing in FLUENT ! How to use a variable in an Loop ?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 10, 2017, 04:06
Default Scheme Programing in FLUENT ! How to use a variable in an Loop ?
  #1
New Member
 
Markus Lücking
Join Date: Jan 2017
Posts: 8
Rep Power: 2
Malue is on a distinguished road
Hello,

I would like to use a string-variable in a do-loop !

; the list I would like to use in the loop
(define myList '(2 4 6))

; the loop
(do ((x 1 (+ x1))) ((> x2)

(ti-menu-load-string (format #f "define/materials/change-create/RPE RPE n n y (list-ref myList ~a) " x))

)


ERROR message : (list-ref myList 2) Invalid string/symbol.

Thanks a lot for your help !!!
Malue is offline   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
How to set as input parameter in Fluent a variable existing outside it? didimad FLUENT 1 March 3, 2015 12:10
modify a intern variable of Fluent with scheme and UDF fanch33 Fluent UDF and Scheme Programming 3 March 2, 2015 12:01
Scheme programing, variable definition Leonlow Fluent UDF and Scheme Programming 1 September 3, 2014 19:21
How to get a value from a data file bound to a variable in Scheme? Shirock Fluent UDF and Scheme Programming 2 August 31, 2011 06:04
Accessing FLUENT Thread-Variable throught Scheme BastiL FLUENT 0 July 5, 2008 07:58


All times are GMT -4. The time now is 11:33.