Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

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

Select New Named Selection Using APDL

    • OnurOnder
      Subscriber

      Hello to everyone. I wrote a code on Ansys apdl. With this code, I read the stress values from the nodes on a surface I selected with named selection. I named the surface I selected with named selection as Surf_1. When I run the code again, there is no problem. However, when I delete Surf_1 and make another surface with the same name named selection, it gives me results for the old surface. But as I change the surface, I want the results to change accordingly. How can I do that?


      SET, LAST

      CMSEL,R,Surf_1,NODE

      NSLE,R,CORNER

      .....


      This is the first part of the code. Here, with the set command, I can run the code again and again without the need to make clear generated data. I select the surface with cmsel. I select corner nodes with the nsle command. can you just help me?

    • Govindan Nagappan
      Ansys Employee
      After solving the model in Mechanical, if you delete an existing named selection recreate it, it is not included in the input file/database. So, you cannot access the new named selection from command object. Command execution uses the database created during the solution.
      If you have saved the MAPDL db file, you can use resume command and then create the named selection in commands itslef and do the post processing
      Let me know if this helps
Viewing 1 reply thread
  • The topic ‘Select New Named Selection Using APDL’ is closed to new replies.
[bingo_chatbox]