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

How to use a string in an Do-loop

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2017, 07:17
Default How to use a string in an Do-loop
  #1
New Member
 
Markus Lücking
Join Date: Jan 2017
Posts: 10
Rep Power: 9
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 for your help !!!
Malue is offline   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
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 11:04
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
[CAD formats] my stl surface is seen as just a line rcastilla OpenFOAM Meshing & Mesh Conversion 2 January 6, 2010 01:30
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 15:57


All times are GMT -4. The time now is 13:17.