ic_extrude and variables...
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! |
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 |
All times are GMT -4. The time now is 08:44. |