Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Developer Community

Developer Community

Discuss Ansys development related topics.

Accessing equivalent stresses for nodal named selections

    • Nandhkishore.Balaji
      Subscriber

      Hi!

      I am trying to extract equivalent stresses for a named nodal selection using mechanical scripting, in the Python Result Object. However, when I try to run the script below, it throws up an error saying "Invalid Geometry type for the analysis". Any inputs or suggestions on fixing the code would be helpful!

    • mjmiddle
      Ansys Employee

      The script worked for me after I corrected a couple mistakes:

      1. This line: s_eqv_op.inputs.datasources.Connect(datasource)

      Needs to be this: s_eqv_op.inputs.data_sources.Connect(datasource)

      2. Remove this line: dpf_workflow.Record('wf_id', TRUE)

      What is in the named selection "BOLT_SHANK_UPPER_1"?

      I selected a face on a 3D body for a named selection, then I right clicked on the named selection to choose "Create Nodal Named Selection"

      Are there beams in the named selection?

    • Nandhkishore.Balaji
      Subscriber

       

      This script works now. Thank you so much!

       

      The named selection did not contain any beam elements.

       

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
[bingo_chatbox]