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/102060-scripting-language-version-icem-14-0-win-7-64-bit.html)

Far May 21, 2012 10:12

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.

PSYMN May 22, 2012 11:14

One of the fantastic ICEM CFD developers replied...

Quote:

He should start icemcfd and start Edit->Shell. In the shell window he should type "set" (see below my output of tcl/tk related environment variables using version 14.5)

TCL_LIBRARY=C:/Program Files/ANSYS Inc/v145/icemcfd/win64_amd/lib/tcl8.4.11
TK_LIBRARY=C:/Program Files/ANSYS Inc/v145/icemcfd/win64_amd/lib/tk8.4.11
TK_TABLE_LIBRARY=EMBEDDED_RUNTIME
TK_TABLE_LIBRARY_FILE=tkTable.tcl

Far May 22, 2012 11:41

Thanks simon.

1. Should I start using ICEM scripting directly or first learn tcl/tk version 8.4.11?

2.Can I use shell for executing the tcl/tk commands? For example if I want to split the block through text command instead of GUI, can I use this shell to give command and get effect in my running project?

Far May 22, 2012 13:02

Any planes to use the python for scripting. As I find python much better and easier than the tcl/tk

PSYMN May 22, 2012 13:44

I always tell people to start with a replay script... then enhance it from there. If you want to know about a particular ICEM CFD command, you can look it up in the programmers guide (under Help) when you need it. If you want to do something fancy with tcl/tk (such as add an if/then loop), you can look that up when you need it. I don't think that much has changed for most of those commands for decades, so it is not very sensitive to the version... I don't think you should put your time into going and learning tcl/tk as an end unto its self... Or just going thru the programmers guide to learn it all... Learn as you create the script you want to use and let the work teach you how... At least that works best for me.

I think you can execute from the shell, but I usually just do it from the message window or the replay control, or I run the whole thing in batch using the ICEMCFD -batch command...

There are no plans to change the scripting language of ICEM CFD. It was born on tcl/tk and changing it would not make financial sense, not to mention our existing customers would riot. :eek:

However, Workbench (WB) is scripted with python. Our future meshing technology will be based on/in WB and will also be scriptable with Python.

Far June 8, 2012 05:56

Some important ICEM command are listed here http://www.kxcad.net/ansys/ANSYS_ICE...nfunctions.htm

http://www.kxcad.net/ansys/ANSYS_ICE...cemcfd_pguide/

Form commands http://www.kxcad.net/ansys/ANSYS_ICE...nfunctions.htm

blocking commands http://www.kxcad.net/ansys/ANSYS_ICE...ngcommands.htm

external command http://www.kxcad.net/ansys/ANSYS_ICE...alcommands.htm

Geometry functions
http://www.kxcad.net/ansys/ANSYS_ICE...yfunctions.htm

boundary conditions http://www.kxcad.net/ansys/ANSYS_ICE...nfunctions.htm

file commands http://www.kxcad.net/ansys/ANSYS_ICE...efunctions.htm

hope you find it useful

Sandro23 May 22, 2013 15:51

Thanks for thoses links. There are very useful.

Regards,

Antoine.

AdamAL November 19, 2013 15:12

Quote:

Edit->Shell type: set
Gives a lot of output. Slightly faster and more to the point, though less informative: In ICEM message window type

info tclversion
-> Result: 8.4

FJSJ July 16, 2014 07:15

Hi All,

is there any possibility to fix up all the above links about scripting commands? I remember that not long ago they were working.

Thank you in advance!

HannesJo August 26, 2014 04:28

I am also very interested in the links...I hope somebody can recover this website. I don't understand why there is only so little information about tcl scripting on the web...it's avery powerful tool for meshing

Far August 26, 2014 05:46

yes links are down. May be some one have them. Another way is to google TCL and ICEM CFD key words to find more references


All times are GMT -4. The time now is 18:22.