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

[ICEM] One question about ICEM script failure

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

Like Tree1Likes
  • 1 Post By PSYMN

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2012, 12:07
Question One question about ICEM script failure
  #1
lnk
Senior Member
 
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15
lnk is on a distinguished road
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 05:35.
lnk is offline   Reply With Quote

Old   July 23, 2012, 23:45
Default
  #2
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
may be you need to create the new procedure.
Far is offline   Reply With Quote

Old   July 24, 2012, 05:41
Default
  #3
lnk
Senior Member
 
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15
lnk is on a distinguished road
Quote:
Originally Posted by Far View Post
may be you need to create the new procedure.
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
lnk is offline   Reply With Quote

Old   July 25, 2012, 00:07
Default
  #4
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
I think the curly brackets are your problem...

You could do it this way...

Quote:
ic_geo_create_volume [ic_geo_get_point_location pnt.00] {} BODY
Or this way...

Quote:
set loc [ic_geo_get_point_location pnt.00]
ic_geo_create_volume $loc {} BODY
I have not had a chance to mess with trying to define each point as a separate parameter, but I am sure it can be done also...
Far likes this.
__________________
-----------------------------------------
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
PSYMN is offline   Reply With Quote

Old   July 25, 2012, 02:28
Default
  #5
lnk
Senior Member
 
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15
lnk is on a distinguished road
Quote:
Originally Posted by PSYMN View Post
I think the curly brackets are your problem...

You could do it this way...



Or this way...



I have not had a chance to mess with trying to define each point as a separate parameter, but I am sure it can be done also...

Thank you very much for your answer!
lnk is offline   Reply With Quote

Old   November 6, 2013, 10:40
Default
  #6
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
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
macfly is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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 06:40
[ICEM] ICEM CFD script CFD-1987 ANSYS Meshing & Geometry 3 June 5, 2012 07:56
[ANSYS Meshing] Problem with Icem Script Krish ANSYS Meshing & Geometry 0 October 18, 2011 12:10
question on ICEM CFD Tetra peiyong wang CFX 2 September 3, 2008 18:35
ICEM -CFX a basic question Al Mazdeh CFX 2 April 5, 2008 11:51


All times are GMT -4. The time now is 01:16.