How to get the bolt pretension remote node in Workbench 2019R3
I try to get the calculated bolt pretension force in ACT command.
analysis = ExtAPI.DataModel.Project.Model.Analyses[0] reader = analysis.GetResultsData() rstMesh = reader.CreateMeshData() nodeIds = rstMesh.NodeIds elementIds = rstMesh.ElementIds bolt_pre = reader.GetResult("BOLT") bolt_pre.SelectComponents(['LOAD']) times = reader.ListTimeFreq reader.CurrentTimeFreq = times[1] load=bolt_pre.GetNodeValues(7472)
In the up Python code, the nodeIds include the bolt pretension remote node (7472) which is stored in rst file, but the elementIds don't include the pretension elements.
So how do I get the bolt pretension remote node number (in this case the number is 7472) ?
Comments
-
-
@1990chs I don’t think there is a stable way to retrieve this ID in this older version, but somewhere around the 2020 timeframe, ANSYS added capability to the API to retrieve APDL IDs for mechanical objects. It uses the SolverData property of a Solution object. See this post for an example:
https://discuss.ansys.com/discussion/comment/2098#Comment_2098
0 -
Technically you could use APDL commands to write the ids to a file that is then read in during post, but that is a work around and not needed with current features.
0 -
@Mike.Thompson said:
@1990chs I don’t think there is a stable way to retrieve this ID in this older version, but somewhere around the 2020 timeframe, ANSYS added capability to the API to retrieve APDL IDs for mechanical objects. It uses the SolverData property of a Solution object. See this post for an example:https://discuss.ansys.com/discussion/comment/2098#Comment_2098
Thinks, but my company use the old version 2019R3, it is not a easy way to update to higher workbench version.
I will try someother way whether to get this information.
By the way, is there any more information to description how to use the feature API (SolverData property) in help document ?
Or any other API document ?0