|
[Sponsors] |
[ICEM] One question about ICEM script failure |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2012, 13:07 |
One question about ICEM script failure
|
#1 |
Senior Member
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15 |
Why this work
' ic_undo_group_begin ic_geo_new_family GEOM ic_boco_set_part_color GEOM ic_empty_tetin ic_point {} GEOM pnt.00 1,2,3 ic_undo_group_end ic_undo_group_begin ic_undo_group_end ic_undo_group_begin ic_geo_new_family BODY ic_boco_set_part_color BODY ic_geo_create_volume {1 2 3} {} BODY ic_undo_group_end ic_undo_group_begin ic_undo_group_end ' but this doesn't work ' set a 1 set b 2 set c 3 ic_undo_group_begin ic_geo_new_family GEOM ic_boco_set_part_color GEOM ic_empty_tetin ic_point {} GEOM pnt.00 1,2,3 ic_undo_group_end ic_undo_group_begin ic_geo_new_family HAHA ic_boco_set_part_color HAHA ic_geo_create_volume {$a $b $c} {} HAHA ic_undo_group_end ic_undo_group_begin ic_undo_group_end ' ? Can you parameterize the button 'Create Body'? Best regard and many thanks, lnk Last edited by lnk; July 24, 2012 at 06:35. |
|
July 24, 2012, 06:41 |
|
#3 |
Senior Member
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15 |
Thanks for your answer, Far. My problem is I can't find a way to parameterize the button 'create body'. ( I also tried to create the body by the middle of two points. But the coordinate is also showed as numbers but not the name of the points I used. )
Is there any way to make 'ic_geo_create_volume {$a $b $c} {} HAHA' works? Best regards and many thanks, lnk |
|
July 25, 2012, 01:07 |
|
#4 | ||
Senior Member
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47 |
I think the curly brackets are your problem...
You could do it this way... Quote:
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 25, 2012, 03:28 |
|
#5 |
Senior Member
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15 |
||
November 6, 2013, 11:40 |
|
#6 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
Late answer but... here is another way to do it:
Code:
set a 1 set b 2 set c 3 set abc [format "%.0f %.0f %.0f" $a $b $c] ic_undo_group_begin ic_geo_new_family GEOM ic_boco_set_part_color GEOM ic_empty_tetin ic_point {} GEOM pnt.00 $abc ic_undo_group_end ic_undo_group_begin ic_geo_new_family HAHA ic_boco_set_part_color HAHA ic_geo_create_volume $abc {} HAHA ic_undo_group_end |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Question about creating porous domain interface for CFX by ICEM | lnk | ANSYS Meshing & Geometry | 0 | July 20, 2012 07:40 |
[ICEM] ICEM CFD script | CFD-1987 | ANSYS Meshing & Geometry | 3 | June 5, 2012 08:56 |
[ANSYS Meshing] Problem with Icem Script | Krish | ANSYS Meshing & Geometry | 0 | October 18, 2011 13:10 |
question on ICEM CFD Tetra | peiyong wang | CFX | 2 | September 3, 2008 19:35 |
ICEM -CFX a basic question | Al Mazdeh | CFX | 2 | April 5, 2008 12:51 |