Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to recognise the elements included in a cercle

Status
Not open for further replies.

biblo

Mechanical
Apr 23, 2006
40
0
0
CA
Hi everyone,
someone can please answer this question?
If for example one draws a circle on a given mesh. Is there any command in Ansys which allows us to recognize the elements whose centroid are included in this circle?

Regards
Barha
 
Replies continue below

Recommended for you

Yes, there is!

Try to write a macro using the commands etable and csys,,1. With etable you can define a table with all the centroids of the elements in a local cylindrical system. Then can reselect elements based on their x coordinates of the table esel,r,etab...

Regards,
Alex
 
It's more complicate because it is an ellipse for me but I already tried something like you tell me and it works well, but a friend said to me that it could be a command in Ansys which gives us directly the elements included in the circle, do you think so Alex?
Regards
Barha
 
See the command LOCAL...here'an an example though:

LOCAL,11,1,,,,,,,2 !defines CSYS 11 as a cylndrical coordinate system at global origin with y-axis to x-axis ratio of 2.00 (thus making it elliptical)

This command is fairly straightforward so hopefully this helps you out.

-Brian
 
Status
Not open for further replies.
Back
Top