|
[Sponsors] |
January 9, 2017, 07:17 |
How to use a string in an Do-loop
|
#1 |
New Member
Markus Lücking
Join Date: Jan 2017
Posts: 10
Rep Power: 9 |
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 !!! |
|
|
|
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 |