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

[ICEM] ic_extrude and variables...

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 17, 2010, 12:52
Default ic_extrude and variables...
  #1
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 8
zboud is on a distinguished road
Hi,

I have a problem when I try to script my mesh generation. I want to extrude by rotation a 2D grid. I recorded the process, and the recorded script works fine. But when I try to switch the parameters I chose when I recorded the script to variables defined earlier, I get an error.

So
ic_extrude map uns_sel_1 numlayers 2 dir rotate_nomerge space 1 space_func {} rpoint {-360 0 0} rdir {0 0 1} rangle 0.1 volf vol sidef side topf top curve {} curvedir 0 twist 0 del_orig 0 del_covered 1 degen_tol 0.00001 trans_rot_vec {0 0 1} spacing_transl_rot 0.0 project 0
is working,

but
set layerangle 0.1
[...]
ic_extrude map uns_sel_1 numlayers 2 dir rotate_nomerge space 1 space_func {} rpoint {-360 0 0} rdir {0 0 1} rangle $layerangle volf vol sidef side topf top curve {} curvedir 0 twist 0 del_orig 0 del_covered 1 degen_tol 0.00001 trans_rot_vec {0 0 1} spacing_transl_rot 0.0 project 0
is not.

What am I doing wrong?

If it helps, I use variables for other commands, and everything is working.

Thanks!
zboud is offline   Reply With Quote

Old   February 18, 2010, 10:46
Default
  #2
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 8
zboud is on a distinguished road
My mistake, I should just have read the ICEM CFD Programmer's Guide ... it was obvious, the answer is:

ic_extrude map uns_sel_0 numlayers 2 dir rotate_nomerge space 1 space_func {} rpoint "[expr {-$R}] 0 0" rdir {0 0 1} rangle [expr {$layerangle}] volf vol sidef side topf top curve {} curvedir 0 twist 0 del_orig 0 del_covered 1 degen_tol 0.00001 trans_rot_vec {0 0 1} spacing_transl_rot 0.0 project 0
zboud 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



All times are GMT -4. The time now is 23:56.