CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ANSYS

Icem programming

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 27, 2012, 05:34
Default Icem programming
  #1
New Member
 
Join Date: Mar 2011
Posts: 20
Rep Power: 6
helios is on a distinguished road
Hi i have a problem to clarify: i have to write an icem macro which recoursively meshes my domain rounding an airfoil profile in a range of incidence angles. Could i do it programming with APDL language?

Thanks to all
helios is offline   Reply With Quote

Old   October 1, 2012, 04:07
Default
  #2
New Member
 
Mariano
Join Date: Jan 2012
Posts: 19
Rep Power: 5
MarTar is on a distinguished road
You can record a session during the construction of your first mesh. When you will mesh other airfoils you have to run the session recordered to get the new mesh.

There is only one shrewdness: you must use the same names for all the parts of your geometry, otherwise the session file will not be able to recognize geometry part and mesh creation will fail or will completed not in a proper manner.

I hope to be helpful!
MarTar is offline   Reply With Quote

Old   October 1, 2012, 18:22
Default
  #3
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 16
stuart23 will become famous soon enough
Helios,

The programming language used by ICEM is not the same an Ansys APDL. The ICEM programming language interpreter is Tcl/Tk but with hundreds of other ICEM functions. The ICEM functions begin with "ic_". You will find lots of information in the ICEM programmers guide.

Stu
__________________
http://bc247.wordpress.com
stuart23 is offline   Reply With Quote

Old   October 2, 2012, 07:34
Default
  #4
New Member
 
Join Date: Mar 2011
Posts: 20
Rep Power: 6
helios is on a distinguished road
thanks at all but my proble is to take a macro recorded before with all the operation i have to do and in angle of attack function automatically rotate the airfoil profile to remesh all with an "if cycle" or an "for cycle". by the way i'll follow stuart's advise and i'll see better in the ICEM programmers guide. Can i find it in the Icem help?? thanks again
helios is offline   Reply With Quote

Old   October 2, 2012, 07:58
Default
  #5
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 16
stuart23 will become famous soon enough
Helios,

Have a look at the following websites for some pointers:

If statements:
http://wiki.tcl.tk/1042

For loops:
http://wiki.tcl.tk/1015

foreach loops (similar to for loops, but loops through each item in a list, I ind these REALLY handy in ICEM)
http://wiki.tcl.tk/1018

For other tcl/tk commands, the wiki.tcl.tk website is quite useful, otherwise just try google. For ICEM specific commands, check the ICEM programmers guide.


Stu
__________________
http://bc247.wordpress.com
stuart23 is offline   Reply With Quote

Old   October 3, 2012, 05:35
Default
  #6
New Member
 
Join Date: Mar 2011
Posts: 20
Rep Power: 6
helios is on a distinguished road
thanks Stuart you were very helpful for me
helios is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PEM Fuel cell module meshes. ICEM vs workbench aarvay FLUENT 20 August 5, 2015 21:04
[ANSYS Meshing] Workbench 13: Structured Hexa Meshes rooftop ANSYS Meshing & Geometry 18 May 13, 2014 03:57
[ICEM] Meshing adjacent wall geometry and simple ICEM questions everdimension ANSYS Meshing & Geometry 25 June 20, 2012 04:25
Design Modeler to ICEM..... Joe CFX 0 January 24, 2008 04:39
Programming language for ICEM CFD? Michael B CFX 2 January 11, 2007 10:06


All times are GMT -4. The time now is 11:39.