Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Centroid of named selection (face) with APDL

Status
Not open for further replies.

dixib

Mechanical
Dec 1, 2011
21
Hi,

I'm trying to get the centroid of a named selection using APDL. The named selection can have arbitrary shape, and needs to be found for the deformed shape (at least when large deflection is activated).

I've tried the following code:
Code:
cmsel,s,[i]NamedSelection[/i]
asum
*get,CentroidX,area,0,cent,x
*get,CentroidY,area,0,cent,y
*get,CentroidZ,area,0,cent,z

Unfortunately it doesn't work, as post.out states that: "ASUM is not a recognized POST1 command, abbreviation, or macro..."

Is it possible to find the centroid of an arbitrary area with APDL?

Thanks in advance. Your help is much appreciated.
 
Replies continue below

Recommended for you

"ASUM" is PREP7 (preprocessing) command used for flat areas only. Refer ANSYS APDL command reference manual.

Remove the ASUM command in above code and may be it can work with *get commands.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor