Ansys Learning Forum › Forums › Discuss Simulation › General Mechanical › Post-Processing Stress Using APDL › Reply To: Post-Processing Stress Using APDL
July 26, 2024 at 7:25 pm
Nick Jankowski
Subscriber
Hello,
That post is really helpful! But I don't think the script runs properly. I have been attempting to rename each body 'under the hood' of Ansys and use the new name (body_1,body_2...) to post-process results easily in APDL. However, now Ansys is returning the error:Â
15:09:41
 Empty parentheses.                                                    Â
 *** ERROR ***                          CP =      0.062  TIME= 15:09:41
 The above error occurred processing field= BODY.GETGEOBODY().ID       Â
Â
for body in bodies: Â Â Â Â
  if body.Suppressed is False:
    nb_bodies += 1
    with Transaction():
      new_snippet = body.AddCommandSnippet()
      string1 = 'body_'+str(nb_bodies) + ' = body.GetGeoBody().Ids \n'
  if body.Suppressed is False:
    nb_bodies += 1
    with Transaction():
      new_snippet = body.AddCommandSnippet()
      string1 = 'body_'+str(nb_bodies) + ' = body.GetGeoBody().Ids \n'