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

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

 February 24, 2010, 09:20 Create part in region ... defined in cylindrical coordinates #1 Member   prout Join Date: May 2009 Posts: 32 Rep Power: 10 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, 09:34 #2 Senior Member   Rikio Join Date: Mar 2009 Location: SH, China Posts: 182 Blog Entries: 1 Rep Power: 10 You can create a cylindrical geometry as you defined. But do you mean to generate a cylinder?

 February 24, 2010, 09:49 #3 Member   prout Join Date: May 2009 Posts: 32 Rep Power: 10 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, 10:05 #4 Senior Member   Rikio Join Date: Mar 2009 Location: SH, China Posts: 182 Blog Entries: 1 Rep Power: 10 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, 10:15 #5 Member   prout Join Date: May 2009 Posts: 32 Rep Power: 10 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 16:14.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post VSB CFX 6 September 4, 2014 21:41 Maldoror ANSYS Meshing & Geometry 0 October 10, 2009 21:09 SSL FLUENT 2 January 26, 2008 12:55 Cagdas FLUENT 1 September 5, 2007 20:02 Brajesh Tripathi Phoenics 4 July 16, 2007 00:23

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