CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF: saving multiple files

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

LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2014, 10:33
Default UDF: saving multiple files
Join Date: Nov 2013
Posts: 43
Rep Power: 10
Persil is on a distinguished road
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
f inter w-d
(do ((i 2 (+ i 1))) ((> i 42))

(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
Persil is offline   Reply With Quote

Old   March 3, 2014, 11:17
Senior Member
Join Date: Nov 2013
Posts: 1,946
Rep Power: 24
pakk will become famous soon enough
For future reference: this is not a UDF, but a scheme script. You still asked the question at the right place .
pakk is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

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

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