|
[Sponsors] |
February 17, 2010, 12:52 |
ic_extrude and variables...
|
#1 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
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! |
|
February 18, 2010, 10:46 |
|
#2 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|