-
-
January 24, 2023 at 2:56 pm
-
January 25, 2023 at 4:10 pm
satri
SubscriberCan you do the nameing through space claim python script? If so how do i select an existing circle ? where can i get the edge numbers to make the selection?
-
January 25, 2023 at 5:39 pm
satri
SubscriberI dont want to use the GUI.
I am able to generate a script that can do edge selectionand create a named selection as a group. but i don't know how to identify the edge pairs
Is there any way to export the edge index from space claim? edge coordinates and the ID of the edge
I see in documentation that you mention there is a ID file. I cant seem to find this id file anywhrere.
-
January 30, 2023 at 10:43 am
Aniket
Ansys EmployeeWhere do you want to create this named selection? And what is the common thing in these edges? Do they have same length? Have you tried worksheet based approach?
-Aniket
-
January 30, 2023 at 10:42 pm
satri
Subscriberwhat is a worksheet-based approach? are you referring to excel?
I had to add the screenshot of the code because without that there is no way i could give context.
making it in excel is a very tedious process considering the scale of the model if space claim can somehow give me a log of the edge ID's that would make it so much easier to create the named selections.
where can i find the ID map ? or Where in space claim can i display edge ID's?
-
January 31, 2023 at 1:20 pm
Aniket
Ansys EmployeeNo, I did not mean excel by using a worksheet. In Mechanical, you can create a worksheet based named selection. For example, for edges, working with ids would be cumbersome if the IDs are changing due to parametric changes in the geometry. Instead, one can use different geometry parameters such as edge length, location, etc
For more information please check:
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/wb_sim/ds_NS_Criteria.html
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
-
February 1, 2023 at 2:05 pm
satri
SubscriberThis is not a helpful method for me. I am trying to create a named selection. not use any created named selection. it would be easier for me to create based on the edge id. Even if it changes if i put it in a python script it will not matter then. If there is any script command that will create based on vertex then that will be helpful. but i don't see such a command.
So please tell me if there is any way of getting the edge ID in a file.
-
February 1, 2023 at 2:30 pm
satri
SubscriberFor example in a sample geometry i know that 127 is the limit of the edge number so i can terminate the loop there
i=7while(i<127):# Create Named Selection GroupprimarySelection = EdgeSelection.Create([GetRootPart().Bodies[0].Edges[i],GetRootPart().Bodies[0].Edges[i+1]])secondarySelection = Selection.Empty()result = NamedSelection.Create(primarySelection, secondarySelection)# EndBlocki=i+2This was slightly simple for me. but when i scale it more say i go to 1000 i may not know what is the limiting number
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2616
-
2098
-
1323
-
1108
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.