CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ANSYS Meshing & Geometry (
-   -   ICEM in batch mode possible? (

Robert@cfd July 22, 2011 10:09

ICEM in batch mode possible?
Hi guys,

I am working on an ICEM 11.0.1 which is installed on a cluster and this cluster of course has no graphic power. Therefore it would be great, if I could create and write my mesh in batch-mode without showing any cells (because this takes long time to send through the network). I already wrote some replay-scripts.

Is this possible?

I am thankful for any help!

PSYMN July 23, 2011 13:39

Yes, people do it all the time... Some users have never (or rarely) seen the UI :(

You can record your process using replay scripting or just record a journal of what you do...

You can edit that script, add if/then loops, etc. It is all done in tcl and you can find the programmers guide under the help menu.

Some users just write the script from scratch, but I usually record and edit.

When you want to run it, just start ICEM CFD and point to the script... It is all detailed in the programmers guide, but...


C:/icemcfd -b myscript.tcl
should do the trick...

PSYMN July 23, 2011 13:43

I notice you are from Germany...

The ICEM CFD Tech support guys in the ANSYS Hanover office are really top notch at ICEM CFD scripting...

Also, have you seen my demo on youtube...? It is three parts, but does also cover scripting. This link is to the first of the three parts... In the third part, you see me replay it in the UI... But working without the UI, in batch (-b) mode could also have been done...

The 2D car tutorial also covers this well... But I think the focus on scripting was increased at version 12 or 13, so get those from the customer portal if you have access.

jsm July 25, 2011 13:57

Hello Simon,

Sorry to disturb this thread.

I am beginner in scripting and I want to learn about scripting automation. I have one question about scripting in Ansys. In workbench, python language is used for scripting. ICEM CFD uses tcl scripting. Could you please inform me which one will be focussed in future and worth to learn.

Thanks in advance,

PSYMN July 26, 2011 14:26

There are no plans to replace ICEM CFD scripting with Python... ICEM CFD has been built around TCL, so I can't imagine replacing that. No tool lasts forever, but we have planned for at least the next 5 years and while we are sharing ICEM CFD technology with the ANSYS Meshing tool, there are no plans to sunset ICEM CFD (many thousands of users and growing every quarter). In other words, if you want to script ICEM CFD, it is worth learning tcl. We have customers who are still running ICEM CFD scripts they wrote over a decade ago, so the ROI has been very huge for their efforts.

On the other hand, Workbench is very central to the ANSYS vision and it is solidly based on Python.

So, I guess the answer to what language you should learn is tightly coupled to what you want to script.

jsm July 28, 2011 04:16

Hello Simon,

Thanks for your reply. Then I will focus on ICEM CFD scripting.


Robert@cfd July 29, 2011 08:58


Originally Posted by PSYMN (Post 317203)
When you want to run it, just start ICEM CFD and point to the script... It is all detailed in the programmers guide, but...


C:/icemcfd -b myscript.tcl
should do the trick...

thank you very much, I didnt know that there is a guide to programming :)

Btw I have to type "icemcfd -batch myreplay.rpl"

PSYMN July 29, 2011 10:41

Oh yes you are correct. -batch

The programmers guide can be found under the Help menu in ICEM CFD. There is also an HTML version of it in the install.

As developers add new features, they always add the command and argument info to the programmers guide.

Old features and scripts should work with newer versions of the software.

All times are GMT -4. The time now is 04:53.