


{"id":216458,"date":"2022-06-21T11:18:06","date_gmt":"2022-06-21T11:18:06","guid":{"rendered":"\/forum\/forums\/topic\/centroid-of-named-selection-face-with-apdl\/"},"modified":"2022-06-21T11:18:06","modified_gmt":"2022-06-21T11:18:06","slug":"centroid-of-named-selection-face-with-apdl","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/centroid-of-named-selection-face-with-apdl\/","title":{"rendered":"Centroid of named selection (face) with APDL"},"content":{"rendered":"<p>Hi,<\/p>\n<p>How do I get the centroid of a named selection in APDL? It needs to be done in post processing, as is needs to be found for the deformed shape (at least when large deflection is turned on). I tried to use ASUM\/GSUM, but they don&#8217;t seem to be appliable in POST. Is it possible to find the centroid of an arbitrary area with APDL?<\/p>\n<p>My very simple code:<\/p>\n<pre>cmsel,s,<em>NamedSelection<\/em><br>asum<br>*get,CentroidX,area,0,cent,x<br>*get,CentroidY,area,0,cent,y<br>*get,CentroidZ,area,0,cent,z<\/pre>\n<p>Unfortunately it doesn&#8217;t work, as post.out states that: &#8220;ASUM is not a recognized POST1 command, abbreviation, or macro&#8230;&#8221;<\/p>\n<p>Thanks in advance. Your help is much appreciated.<\/p>\n","protected":false},"template":"","class_list":["post-216458","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["13841","50680"],"_bbp_author_ip":["204.2.243.124"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1387"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["216458"],"_bbp_forum_id":["27791"],"_bbp_engagement":["13841","50680"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["217077"],"_bbp_last_active_id":["217077"],"_bbp_last_active_time":["2022-06-28 15:39:42"]},"test":"ofotech-invent-dk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/216458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/216458\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=216458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}