|
[Sponsors] |
[ICEM] Create part in region ... defined in cylindrical coordinates |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 24, 2010, 08:20 |
Create part in region ... defined in cylindrical coordinates
|
#1 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
Hi all,
I'd like to create a part in a region defined in cylindrical coordinates, let's say: Min R = 0 Min theta = 0 Min z = 0 Max R = 360 Max theta = 2*pi Max z = 200 Is it possible to define such a part in ICEM, and if so, how can I do it? Thanks. |
|
February 24, 2010, 08:49 |
|
#3 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
Sorry I was not precise enough.
My mesh is already defined, my geometry is created. What I want is to define a region of the mesh(using cylindrical coordinates), put all the elements from that region in a part, so I can use it to define boundary conditions in CFX. I might have found something though: a loop in my script scanning the concerned cylindrical region and adding the elements to a subset which could be used to create a part. But that's quite heavy for such an easy concept! |
|
February 24, 2010, 09:05 |
|
#4 |
Senior Member
|
Have you tried to create a cylindrical coordinate in CFX, and set the BC?
Maybe I misunderstood your idea: meshes on cylindrical surface would be in the surface part, no need to select manually, or by loop script. |
|
February 24, 2010, 09:15 |
|
#5 |
Member
prout
Join Date: May 2009
Posts: 32
Rep Power: 16 |
I need a mesh region to define the BC in CFX...
The thing is I have many surfaces, so I can't just select the surface meshes. And the other thing is that everything has to be automatic in a script, because many similar geometries will be tested. But the selection script should be quite simple once the bounding boxes are defined. EDIT: here's the script I wrote in case anyone is interested. for {set i 0} {$i<$nblayers} {incr i} {\ mess "Ajout de la zone $i...";\ set alpha [expr {$layerangle*2.0*$pi/360.0}];\ set xmin [expr {-($R*(1.0-cos(($i+1.0)*$alpha)))-0.5*$firstR*cos($i*$alpha)}];\ set ymin [expr {$R*sin($i*$alpha)-0.5*$firstR*sin(($i+1.0)*$alpha)}];\ set xmax [expr {-($R*(1.0-cos($i*$alpha)))+0.5*$firstR*cos($i*$alpha)}];\ set ymax [expr {$R*sin(($i+1.0)*$alpha)+0.5*$firstR*sin(($i+1.0)* $alpha)}];\ set zmax [expr {$L*1.5}];\ mess "xmin: $xmin\n";\ mess "xmax: $xmax\n";\ mess "ymin: $ymin\n";\ mess "ymax: $ymax\n";\ mess "zmax: $zmax\n";\ ic_uns_subset_add_region uns_sel_0 "\ $xmin \ $ymin \ -10000" "\ $xmax \ $ymax \ $zmax\ " 0 {1 2 3};\ mess "Zone $i ok!\n";\ } Last edited by zboud; February 24, 2010 at 15:14. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX and cylindrical coordinates | VSB | CFX | 16 | December 10, 2019 08:53 |
cylindrical or rectangular coordinates | Maldoror | ANSYS Meshing & Geometry | 0 | October 10, 2009 21:09 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |
How to create an user defined function? | Cagdas | FLUENT | 1 | September 5, 2007 20:02 |
Cylindrical obstacles in cartesion coordinates | Brajesh Tripathi | Phoenics | 4 | July 16, 2007 00:23 |