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.
Process Integration and Design Optimization

Process Integration and Design Optimization

how to get stress at a node and put it in a parameter for use with optimization

    • ChrisD
      Subscriber

      Hello, I would like to insert an "ANSYS Commands" script under the  "Solution" tree in Mechanical that finds the stress at a specified node, and then inserts that value into a parameter that I can use to minimize the radius of a fillet (another parameter) to keep the stress under a certain value.  I have searched all over, but haven't been able to find the answer.  I know I have to use something like:

      *GET, vm_max, NODE, 151, S, EQV

      But I get a message in Solution Information that says "Requested data is not stored for noded 151".  I definitely have Von Mises stress specified as an output for plotting.

      Also, I assume I have to create an output parameter first, but in the Parameters block in Workbench, the field "new output parameter" is greyed out.

      Thank you!

    • dlooman
      Ansys Employee

      Have you issued a SET command to store some results?   If you requested stress results, the *get command looks correct.  To make the value an output parameter use a name starting with my_, like *GET, my_vm_max, NODE, 151, S, EQV.  Then you will see the parameter name in the commands object details and you can make it a parameter.

    • ChrisD
      Subscriber

      No, I didn't realize I had to use a set command (probably why I didn't get the value stored in a parameter).  However, I was able to do what I wanted without using a script by creating user-defined result and parameterizig the average value (same as max and min).  Thank you very much for your reply!

    • dlooman
      Ansys Employee

      Sounds good!

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