General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Measuring surface of selected elements

TAGGED: 

    • ciema
      Subscriber

      Hello,

      I need to obtain the surface area of selected elements. I tried to select few element faces and create named selection.

    • Govindan Nagappan
      Ansys Employee
      @ciema
      Here 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

      /PREP7
      cmsel,s,my_elem esln *get,ncount,node,,count
      my_area=0
      nnum=0
      *do,i,1,ncount,1
      nnum=ndnext(nnum)
      node_area=ARNODE(nnum)
      my_area=my_area+node_area
      *enddo
      area_of_name_selection=my_area
      ALLSEL
      /exit

      Example:


      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.


      In solution information, you can see the unit system being used


      For details on these commands, please check the command reference manual: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v212/en/ans_cmd/Hlp_C_CmdTOC.html


Viewing 1 reply thread
  • The topic ‘Measuring surface of selected elements’ is closed to new replies.