CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   icem-cfd-scripting problem... (https://www.cfd-online.com/Forums/cfx/27042-icem-cfd-scripting-problem.html)

tushar February 19, 2009 01:22

icem-cfd-scripting problem...
 
Actually i want to run the FOR loop, for making my script file available for any kind of data input.... ok...i elaborate my problem.....i am making the six copies of blades by rotation, now this is specific...i want to write the general script which can run for any 4,6,10 any copies... this can be done in for loop...but i tried and em not getting ... so calling for any help from u guys....

regards... tushar

hdj February 19, 2009 01:52

Re: icem-cfd-scripting problem...
 
ICEM uses tk language. The For-loop looks like this:

set strRotorPt "ROTORPT"

for {set i 1} {$i<$rotorPt+1} {incr i} { \

set str1 $strRotorPt; \

set str2 rotorPt; \

append str2 $i; \

set [append str1 $i] [ic_geo_cre_pnt ROTOR $str1 [set $str2]] \

}

tush February 19, 2009 03:54

Re: icem-cfd-scripting problem...
 
where did u get these commands..... i mean is there any good e-book on internet.... i want 2 learn more abt these........

Andreas February 19, 2009 09:49

Re: icem-cfd-scripting problem...
 
Hey Tush,

those are simple Tcl-Commands. Just look for Tcl programming lanuage on the internet. The book by Welch is pretty good, I think it is called "Practical Programming in Tcl and Tk".

tush February 20, 2009 01:06

Re: icem-cfd-scripting problem...
 
thanks i got da book.....


All times are GMT -4. The time now is 09:37.