TAGGED: ansys-mechanical, ansys-workbench, code, mechanical-apdl
-
-
July 2, 2021 at 10:46 am
OnurOnder
SubscriberHello 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?
July 7, 2021 at 1:32 pmGovindan Nagappan
Ansys EmployeeAfter 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.
Innovation SpaceTrending discussionsTop Contributors-
5874
-
1906
-
1420
-
1306
-
1021
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-