|
[Sponsors] |
[ICEM] Reply script in ICEM CFD location use location of geometry point |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 12, 2014, 10:31 |
Reply script in ICEM CFD location use location of geometry point
|
#1 |
New Member
Steffen
Join Date: Aug 2014
Posts: 2
Rep Power: 0 |
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. |
|
August 13, 2014, 09:48 |
Even this simple example doesn't work
|
#2 |
New Member
Steffen
Join Date: Aug 2014
Posts: 2
Rep Power: 0 |
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} |
|
August 13, 2014, 12:08 |
|
#3 |
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21 |
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 Code:
> set x 1 > set y 2 > "$x $y" Result> 1 2 Sebastian |
|
|
|
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 |