CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ICEM] Scripting language version for ICEM 14.0 on win 7 64 bit (https://www.cfd-online.com/Forums/ansys-meshing/102061-scripting-language-version-icem-14-0-win-7-64-bit.html)

Far May 21, 2012 10:13

Scripting language version for ICEM 14.0 on win 7 64 bit
 
Dear Frends.

I would to work on scripting and don't know which version of tcl/tk to use for the ICEM 14.0 on win 7 64 version. Any web/ftp link to installer would be very much helpful.

I am also looking for some simple examples as well. :cool:

Thanking you in advance.

CRT May 21, 2012 12:19

Hi far,

Iīve been working a bit with the scripting, I canīt tell you which version of tcl/tk is used in ICEM 14.0 However i can tell you that I could use useful functions like lappend, lindex, u can find a list of command on:
http://www.tcl.tk/man/tcl/TclCmd/contents.htm
I Just tried to find what i need and test if it works. I had a lot of trouble with the loops, so I couldnīt write a while into another while.
you can also take information from http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html and also from the programmers guide.

I hope that someone else with more experience could help you.

Regards,
carles

Far May 21, 2012 12:22

Before going to use the ICEM' tck/tk, should I learn the general tcl/tk?

CRT May 21, 2012 14:09

It will be useful for sure, but one to work with the scripting, at least, to start with the scripting one just need to know the basic.

If you plan to work in a complex case, it's better to work previously with simple cases, to know the possibilities and limits of the scripting and plan your work properly from the beginning.
The week points that i found are, as i told you the problem with the loops, that maybe could be solved running a external program based on C++ ,I don't really know. In addition with some functions of openFoam that i couldn't use with variables so I should find an alternative way.


All times are GMT -4. The time now is 21:31.