|
[Sponsors] |
March 3, 2014, 10:33 |
UDF: saving multiple files
|
#1 |
Member
Join Date: Nov 2013
Posts: 43
Rep Power: 13 |
hello guys,
with this UDF I want to save 42 interpolation files of a case that will be rotated by a certain angle every loop. The problem is, that when rading the journal it only saves vane1.ip and does not continue the loop... is there a syntax error somewhere or any other mistake? ; (define string0 " ..................... ROUND ") (define string1 "vane") (define string2 ".ip" ) ; ; ; ; ;======== write interpolation ; ; f inter zs vane_fluid f inter w-d vane1.ip yes ; ; ; (do ((i 2 (+ i 1))) ((> i 42)) (begin (define zahl (number->string i)) (define round (string-append string0 zahl "/42" )) (define file (string-append string1 zahl string2)) (display "\n\n\n\n") (display round) (display "\n\n") (ti-menu-load-string (format #f " gr rot 8.571428571 0 0 0 -1 0 0 ")) (display "\n\n\n\n") (display round) (display "\n\n") (ti-menu-load-string (format #f " f inter w-d vane~d.ip yes " i)) ) ) ; any help is appreciated, thx |
|
March 3, 2014, 11:17 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
For future reference: this is not a UDF, but a scheme script. You still asked the question at the right place .
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
controlDict 'forces' function: multiple output files? | lordvon | OpenFOAM | 0 | January 10, 2011 17:22 |
Calculating YPLUS and Compiling Multiple C files | sanjibdsharma | OpenFOAM Programming & Development | 1 | August 11, 2009 07:56 |
UDF for reading dat files | mrestrepo30 | FLUENT | 0 | July 8, 2009 10:10 |
rotary vane pump udf files | R.SRIHARI | Main CFD Forum | 1 | February 27, 2009 10:25 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |