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

[ICEM] Create part in region ... defined in cylindrical coordinates

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2010, 08:20
Default Create part in region ... defined in cylindrical coordinates
  #1
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 16
zboud is on a distinguished road
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.
zboud is offline   Reply With Quote

Old   February 24, 2010, 08:34
Default
  #2
Senior Member
 
Rikio
Join Date: Mar 2009
Location: SH, China
Posts: 182
Blog Entries: 1
Rep Power: 17
rikio is on a distinguished road
Send a message via Skype™ to rikio
You can create a cylindrical geometry as you defined. But do you mean to generate a cylinder?
rikio is offline   Reply With Quote

Old   February 24, 2010, 08:49
Default
  #3
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 16
zboud is on a distinguished road
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!
zboud is offline   Reply With Quote

Old   February 24, 2010, 09:05
Default
  #4
Senior Member
 
Rikio
Join Date: Mar 2009
Location: SH, China
Posts: 182
Blog Entries: 1
Rep Power: 17
rikio is on a distinguished road
Send a message via Skype™ to rikio
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.
rikio is offline   Reply With Quote

Old   February 24, 2010, 09:15
Default
  #5
Member
 
prout
Join Date: May 2009
Posts: 32
Rep Power: 16
zboud is on a distinguished road
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.
zboud 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
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


All times are GMT -4. The time now is 07:46.