|
[Sponsors] |
[ICEM] Question about the use of ICEM tcl scripting |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2012, 16:51 |
Question about the use of ICEM tcl scripting
|
#1 |
Senior Member
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15 |
Hi,
I'm using the ICEM tcl scripting right now. But there are still something about it not clear to me. The tcl scripting is able to record all my commands at ICEM, so that if I have an idea about changing the geometry to improve my fluid dynamics behavior, I can change it very quickly. But my project geometry is complex and there are a lot of points. Sometimes if I intend to change the diameter of a circle of my geometry, it takes me a lot of time to find out the correspondent points and change several points very carefully. I'm wondering is there any way that I can parameterize my geometry like defining the diameters of the circles by parameters so that I can change them easily? Best regards and many thanks, lnk |
|
July 13, 2012, 09:43 |
|
#2 | ||||
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
Yes... You can read about this in the programmers guide. (under the Help menu)
In the commands you can use a $variable. At the top of the script, you could "set variable" to some value... For instance, at the top of the window you could type the following... Quote:
you could then use these in expressions to create other parameters (if you want) Quote:
Quote:
Any command you find in the replay can have any number replaced with a $variable or even a $array like this next example. ic_geo_cre_bsp_crv_n_pnts HELIX "" $pnt_list 0 Just for fun, here is another script. This one makes a helix. The instructions at the start tell you where to put this file and then how to run it from the ICEM CFD message window. You could also add this to the UI with a little more effort. In this one, you set all the initial variable values as you launch the script... (that proc line), and then other variables are calculated from those and used in a loop to generate the points and finally the helix. Quote:
__________________
----------------------------------------- Please help guide development at ANSYS by filling in these surveys Public ANSYS ICEM CFD Users Survey This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)... CFD Online Users Survey |
|||||
July 13, 2012, 09:51 |
R14.5 has checkbox parameters...
|
#3 |
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
One other fun bit of information...
In R14.5 (due out later this year), we have added the ability to just click a checkbox to parameterize ICEM CFD (like you would in DM or ANSYS Meshing)... CreateParameter_03.jpg You can even use them to create blocking edge parameters CreateParameter_21.jpg These parameters are then driven by the Workbench Parameter manager. Of course, this only works when ICEM CFD is launched from within Workbench... ICEM_ADDIN_21.jpg CreateParameter_21.jpg
__________________
----------------------------------------- Please help guide development at ANSYS by filling in these surveys Public ANSYS ICEM CFD Users Survey This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)... CFD Online Users Survey |
|
July 13, 2012, 09:53 |
|
#4 | |
Senior Member
|
Quote:
|
||
July 13, 2012, 10:42 |
|
#6 |
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
Oh no, TCL scripting is a very important part of ICEM CFD... Users would RIOT if we ever threatened to take it away.
This new parametric ability is more about ease of use and connection with the Workbench Parameter manager. TCL scripting still offers more flexibility and power. In fact, you can also define parameters in Workbench for use in ICEM CFD replay scripts (instead of setting the variable in the script, it is driven by the workbench parameter manager). We are working on a tutorial right now and will release it with the software.
__________________
----------------------------------------- Please help guide development at ANSYS by filling in these surveys Public ANSYS ICEM CFD Users Survey This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)... CFD Online Users Survey |
|
July 13, 2012, 14:37 |
|
#7 | |
Senior Member
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15 |
Quote:
May I ask if I have iterative geometry, could I make a iterative loop for it? How? And since the curve and points name are not iterative, how to solve that problem? Best regards and many thanks, lnk |
||
July 13, 2012, 15:49 |
|
#8 |
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
Yes, you can.
I suggest you start simple and grow from there. Take a look into the programmers guide for more help. There are many things you can do once you understand the basics.
__________________
----------------------------------------- Please help guide development at ANSYS by filling in these surveys Public ANSYS ICEM CFD Users Survey This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)... CFD Online Users Survey |
|
January 16, 2013, 06:42 |
|
#9 | |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
Quote:
|
||
January 16, 2013, 10:24 |
|
#10 |
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
I showed a live demo of how to turn an ICEM CFD script into one that uses Workbench Parameters during a webinar last Thursday. You can find the recording on the ANSYS website (Here and search for ICEM ) (or here is the download link .
I will re-record it for Youtube at some point... You can also find the instructions if you go into the workbench help (no the ICEM CFD help) and do a search for ICEM CFD... Read down the ICEM CFD Component page until you find the Custom Input Parameter section. It explains the process there.
__________________
----------------------------------------- Please help guide development at ANSYS by filling in these surveys Public ANSYS ICEM CFD Users Survey This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)... CFD Online Users Survey |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Node Number vs. Node_ID & ICEM vs. CFX | Araz | ANSYS Meshing & Geometry | 1 | April 25, 2011 12:03 |
question on ICEM CFD Tetra | peiyong wang | CFX | 2 | September 3, 2008 19:35 |
ICEM CFD 11 Question | Raj | CFX | 2 | June 25, 2008 03:11 |
ICEM -CFX a basic question | Al Mazdeh | CFX | 2 | April 5, 2008 12:51 |
ICEM 10 mesh scale foe CFX | Korsh Mik | CFX | 2 | October 7, 2005 10:07 |