Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Dec 1, 2011
Messages
21
Location
DK
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.
 
"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

Back
Top