CFD Online Logo CFD Online URL
Home > Forums > ANSYS Meshing & Geometry

[ICEM] [problem] ICEM Scripting Loop to create points and Curves

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

LinkBack Thread Tools Display Modes
Old   March 25, 2013, 07:02
Default [problem] ICEM Scripting Loop to create points and Curves
New Member
Join Date: Mar 2013
Posts: 2
Rep Power: 0
bwiblue is on a distinguished road

I have a problem while creating points and curves within these points.
So far my script looks like that:

1 ic_undo_group_begin
2 ic_geo_new_family GEOM
3 ic_boco_set_part_color GEOM
4 ic_empty_tetin
5 for {set i 0} {$i<4} {set i [expr $i+1]} {
6 set x1_value [expr $i*2*0.04]
7 set x2_value [expr ($i*2+1)*0.04]
8 set point1_nr [expr $i*2]
9 set point2_nr [expr ($i*2)+1]
10 ic_point {} GEOM pkt$point1_nr $x1_value,0,0
11 ic_point {} GEOM pkt$point2_nr $x2_value,0,0
12 ic_delete_geometry curve names crv.$i 0
13 ic_curve point GEOM crv.$i {pkt$point1_nr pkt$point2_nr}
14 }

Now to my problem:
The script does not create the curve between the points (line 13). I have tried it without the variables for one curve. That worked perfectly. The source code looked like that:
ic_curve point GEOM crv.01 {pkt1 pk2}.

That is why i assume that the create curve command cannot handle the variables inside. Do you have any experience with that or do you know a workaround?

Thank you in advance for your help.
bwiblue is offline   Reply With Quote


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create geometry from mesh points in ICEM-CFD David Arthur Main CFD Forum 3 October 25, 2014 12:19
[ICEM] smooth curves from points mrenergy ANSYS Meshing & Geometry 3 March 9, 2013 18:46
[ICEM] Defining points and curves using MATLAB jeff.freeman ANSYS Meshing & Geometry 0 March 3, 2012 18:16
[ICEM] How to get points, curves, surfaces from unstructured mesh? TKE ANSYS Meshing & Geometry 0 October 21, 2011 10:01
Include list of points Hikachu OpenFOAM Native Meshers: blockMesh 0 June 20, 2011 09:03

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