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?

Viewing 1 reply thread
  • You must be logged in to reply to this topic.