General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

Select nodes in a rectangle shape

TAGGED: , ,

    • SteBir
      Subscriber
      Hello Ansys Community,nI try to select nodes within a rectangle shape. It's no problem to select nodes in a circle-shaped area but I'm struggling with the rectangle shape.nI apply a heat flux on a moving circle shape load. Bellow is an excerpt of the apdl snippet:n cmsel,s,surface1n sfdele,all,HFLUX ! Delete old hflux, if anyn nsel,r,loc,x,Radius,0.00001 ! Select nodes within radius of circlenIt's working just fine for a circle shape but not for a rectanglenHow can I change the nsel that nodes in a rectangle shape are selected?nBest regardsnSteffn
    • Ashish Khemka
      Ansys Employee
      nnYou need to select the nodes based on the length and width of the rectangle. Say the length and breadth are along the x-direction and y-direction respectively, then select the nodes (nsel,s,loc,x, Range 1 of x, Range 2 0f x) in the x-direction first and then reselect from the selected nodes in y-direction (nsel,r,loc,y,Range1 of y, Range 2 of y) or vice-versa.nnRefer to the nsel command for more details:nnnRegards,nAshish Khemkan
    • SteBir
      Subscriber
      Hi @akhemka ,nthank you for the answer. It's working like intended.nBest regards,nSteffn
Viewing 2 reply threads
  • You must be logged in to reply to this topic.