CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2014, 09:33
Default UDF: saving multiple files
  #1
Member
 
Join Date: Nov 2013
Posts: 43
Rep Power: 12
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
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
Persil is offline   Reply With Quote

Old   March 3, 2014, 10:17
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
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

Reply

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 16:22
Calculating YPLUS and Compiling Multiple C files sanjibdsharma OpenFOAM Programming & Development 1 August 11, 2009 06:56
UDF for reading dat files mrestrepo30 FLUENT 0 July 8, 2009 09:10
rotary vane pump udf files R.SRIHARI Main CFD Forum 1 February 27, 2009 09:25
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51


All times are GMT -4. The time now is 16:03.