TAGGED: ansys-meshing-python-script
-
-
August 3, 2021 at 1:00 pm
Ciel_yy
SubscriberI have generated a series of parameterized geometry models which only differ in one parameter(for example, the length in one of the part of the geometry model)
My purpose is to get a python script with the recording fuction by processing the first one geometry model manually. Then use the python script to automatically mesh other similar geometry models. However, something goes wrong when I use the script to process the second geometry model.
To figure out the reason for the question, I also get python script from the second geometry model with the same manual processing schedule. By comparing the two python script, I find the Ids of the same part of the two different geometry model has changed, which leads to the error above.
Just as shown in the picture Below, I mesh the same part of the geometry model as well as start to record python script. I click the Mesh button then select Method button then select the particular part of the model which is shown in violet in the picture Below . The corresponding python scripts for the the first and second geometry are show below.
August 9, 2021 at 3:44 pmAniket
Ansys EmployeeThe 25 (not 23) that you see is the id of the object in the tree, whereas 68 or 69 is the reference_ID that you see in the Selection information window.
Both things can change depending on the source of the geometry. You will need to use some other logic such as bounding box, part name, volume, number of faces etc to filter out the bodies.
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
August 17, 2021 at 9:27 amCiel_yy
Subscriberthanks very much for your answer. I am very lucky to get the reply from you who I would like to invite to answer the question(but I am new to here, know nothing about how to invite others).
I intened to use the part name to filter out the bodies, but nothing useful info has been found.
I have tried a lot of script, but no one works.
May u offer me some example using the part name to filter out the bodies.
Thanks very muchMarch 30, 2022 at 7:15 amsch401
SubscriberDo you know how to find the reference ID?
March 30, 2022 at 11:36 amAniket
Ansys Employeereference_ID can be found in selection information.
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
Viewing 4 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
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.
Trending discussions- how to improve the inflation quality at sharp corners?
- ANSYS Workbench Measuring within Design
- check element type
- The mesh file exporter could not resolve cyclic dependencies in overlapping contact regions error
- Conformal vs Non-Conformal Mesh
- execution error inside the mesher. The process suffered an unhandled exception or ran out of memory
- Meshing Error
- Error in meshing
- inflation created stairstep mesh at some location
- How to resolve Mesh Failure
Top Contributors-
7742
-
4502
-
2961
-
1449
-
1322
Top Rated Tags© 2023 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.
-