


{"id":186525,"date":"2021-07-27T23:43:12","date_gmt":"2021-07-27T23:43:12","guid":{"rendered":"\/forum\/forums\/reply\/186525\/"},"modified":"2021-07-27T23:43:12","modified_gmt":"2021-07-27T23:43:12","slug":"186525","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/186525\/","title":{"rendered":"Reply To: Measuring surface of selected elements"},"content":{"rendered":"<p>@<a href=\"\/forum\/profile\/ciema\" target=\"blank\">ciema<\/a><br \/>\nHere is a sample command set that you can use to get the area. Make sure you create a named selection with the selected elements. In this case, named selection is called my_elem<\/p>\n<p>\/PREP7<br \/>\ncmsel,s,my_elem<br \/>\nesln<br \/>\n*get,ncount,node,,count<br \/>\nmy_area=0<br \/>\nnnum=0<br \/>\n*do,i,1,ncount,1<br \/>\nnnum=ndnext(nnum)<br \/>\nnode_area=ARNODE(nnum)<br \/>\nmy_area=my_area+node_area<br \/>\n*enddo<br \/>\narea_of_name_selection=my_area<br \/>\nALLSEL<br \/>\n\/exit<\/p>\n<p>Example:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/forum-uploads\/520\/Q6GY6TAKPYJZ.png\" width=\"578\" height=\"432\" \/><\/p>\n<p>After inserting the commands, solve the model. Since there is a \/Exit command, solution process will be stopped after executing these commands. You can check the solution information for the area.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/forum-uploads\/619\/F6BKKZ60NK6I.png\" width=\"865\" height=\"404\" \/><\/p>\n<p>In solution information, you can see the unit system being used<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/forum-uploads\/845\/3I0U7ELCQAD4.png\" width=\"867\" height=\"495\" \/><\/p>\n<p>For details on these commands, please check the command reference manual: <a href=\"https:\/\/ansyshelp.ansys.com\/account\/secured?returnurl=\/Views\/Secured\/corp\/v212\/en\/ans_cmd\/Hlp_C_CmdTOC.html\" target=\"blank\">https:\/\/ansyshelp.ansys.com\/account\/secured?returnurl=\/Views\/Secured\/corp\/v212\/en\/ans_cmd\/Hlp_C_CmdTOC.html<\/a><\/p>\n<p><\/p>\n","protected":false},"template":"","class_list":["post-186525","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/186525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/186525\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=186525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}