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

[ICEM] Reply script in ICEM CFD location use location of geometry point

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bluebase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2014, 10:31
Default Reply script in ICEM CFD location use location of geometry point
  #1
New Member
 
Steffen
Join Date: Aug 2014
Posts: 2
Rep Power: 0
karamski is on a distinguished road
HI,

I want to move geometry parts in ICEM CFD with a replay script. instead of useing specific values, i want to use the z location of a given geometry point for example the point VERT713.

instead of:
ic_move_geometry curve names {EDGE1152} translate {0 0 0.3}

sowmthing like that:

ic_move_geometry curve names {EDGE1152} translate {0 0 "value of z-location of VERT713"}

I found this in the ansys help but i cant figure it out how to transfer to this case.

Tip: To use an existing point to indicate the location to be used, you can use the following in the replay script:

set name pnt.00 ;# point must exist
set loc [ic_geo_get_point_location $name]
set x [lindex $loc 0]
set y [lindex $loc 1]
set z [lindex $loc 2]
ic_hex_split_edge 21 25 0 $x $y $z


i tried a lot of options but it just does not work

Thank You Very Much!!!

Last edited by karamski; August 13, 2014 at 09:43.
karamski is offline   Reply With Quote

Old   August 13, 2014, 09:48
Default Even this simple example doesn't work
  #2
New Member
 
Steffen
Join Date: Aug 2014
Posts: 2
Rep Power: 0
karamski is on a distinguished road
1. set x 0.02
2. set y 0.01
3. set z 0
4. ic_move_geometry curve names {EDGE797 EDGE809} translate {$x $y $z}
karamski is offline   Reply With Quote

Old   August 13, 2014, 12:08
Default
  #3
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Hi Steffen,

there is a small syntax convention of tcl you might not know.

tcl (and in this case ICEM) prevents substitution of variables if they are put between curly braces ({). For example:
Code:
> set x 1
> set y 2
> {$x $y}
Result> $x $y
In your case, replace the braces with double quotes (") to allow substition of variables. Then it should work =)

Code:
> set x 1
> set y 2
> "$x $y"
Result> 1 2
With regards,
Sebastian
myaghoobi2 likes this.
bluebase is offline   Reply With Quote

Reply


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
CFD Salary CFD Main CFD Forum 17 January 3, 2017 18:09
3D geometry blocking in ICEM CFD. Farhan ameer ANSYS Meshing & Geometry 1 July 1, 2014 13:58
[ICEM] Geometry in ICEM CFD DaIN ANSYS Meshing & Geometry 7 January 3, 2012 12:32
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Refinement from a point in ICEM CFD isabel CFX 0 December 17, 2007 07:58


All times are GMT -4. The time now is 22:21.