Closed coconutLatte closed 6 months ago
@coconutLatte, Please redirect your question to Ansys Developer Forum. For Mechanical. There are many posts there that would help you since this is related to Mechanical scripting rather than PyMechanical.
@dipinknair Thanks! I would question in the link
Hi @coconutLatte , as @dipinknair pointed out, the Ansys Developer Forum is better suited for these types of questions. In short, the recording will show the ids of the geometry because it has no other way of identifying the faces, edges, etc that you have scoped. However, it is needed to modify these, because from a user perspective there is no way to know the ids, and if the geometry changes the ids will change too. The most robust way is to use Named Selections. See this post as an example.
Hello! I'm doing an easy steady state thermal simulation analysis and record it to mechanical script. By this repo I chose the remote session way to run it on HPC cluster to play pre process and solve. It successed for me. What I want to get is how the selected geometry ID is converted from an .stp geometry file?
Here are the specific steps I did:
Version
Ansys Mechanical 2023R1
What I did
record the whole simulation
I recorded all the steps, and got the script like here
convert it to PyMechanical way
I modify some of the script and add it to a simple workflow based on PyMechanical like this
It runs good so that I can get the .dat file for my next step to do the solve.
Related infos
the pan looks like: the raw pan.stp file: AnsysPanModel.zip
What I want to know
I want to know the source of selection id. Is it pointing at the geometry body(face / line or etc.)? Is there any way that I can get the id at the very begining? Or is the selection id could mapped to the information of .stp file? Or any idea about how could I get the seletion id in other ways?
Sorry for the long text to read and too many questions. It's really important for me. Hope for some help!