ANSYS Workbench/APDL Programming

Click For Summary

Discussion Overview

The discussion revolves around scripting in ANSYS Workbench and APDL, focusing on user notifications for material assignment, post-processing of simulation results, and design optimization features across different versions of ANSYS.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant inquires about creating a script to notify users to assign appropriate materials when geometry is replaced in ANSYS Workbench, questioning the feasibility of using APDL commands versus Python/JavaScript.
  • Another participant, new to APDL, seeks guidance on post-processing nodal solutions, specifically how to generate arrays of equivalent stress results for different load steps using scripting commands.
  • A suggestion is made to the second participant to refer to ANSYS help documentation for commands related to post-processing, including array creation and result writing.
  • A participant expresses confusion regarding the absence of a "design opt" feature in ANSYS APDL 15, which was present in version 12, and seeks advice on how to apply design optimization in the newer version.

Areas of Agreement / Disagreement

Participants generally share information and suggestions, but there is no consensus on the best approach for scripting notifications or the availability of design optimization features in different versions of ANSYS.

Contextual Notes

Some participants may be working with different versions of ANSYS, which could affect the availability of certain features or commands. The discussion includes varying levels of familiarity with APDL and scripting, which may influence the responses provided.

Who May Find This Useful

Users of ANSYS Workbench and APDL, particularly those interested in scripting, post-processing simulation results, and design optimization techniques.

bala
Messages
1
Reaction score
0
Hi,

I want to make a script which will give message to a user as soon as we replace geometry in ansys workbench. Message will be about the material, A popup window will show default material is structural steel please assign appropriate material to all components.
Will it be possible with APDL command ?. IF not how to do this with python/Jsscript.

Please guide me about this

Thanks in advance.
 
Engineering news on Phys.org
I'm sorry you are not generating any responses at the moment. Is there any additional information you can share with us? Any new findings?
 
--------------------------------------------------------------------------------

Hi everyone,

I am new to apdl and scripting as well. I have made the simple simulation of one end fixed beam and load at another side and as a result i have got von mises stress(eqv stress) in WORKBENCH. And i have saved this process as .db file and then reopened in apdl.

Now I want to do post processing of nodal solution in apdl with scripting.

(1) How to generate an array filled with result of eqv stress at each node for only 1st load step.

(2) If there are 5 load steps and i want the whole result of 5 load step in a single array at all nodes.

How can i generate commands for this description ?

Thank in advance,
Dhruv
 
Why don't you create a new thread instead of hijacking this one? Create a new thread with the all the proper information.
 
Hi,

CFDFEAGURU is right

I have some suggestion for dppatel, hereafter:

(1)
Very easy reading Ansys help, the main commands I always used are the following:
/post1
*dim,... !to create array
set,1 !to read 1st loadstep
*get,toto,... ! to save your component results in your array
*cfopen,... !create a file for writting the results
*cfwrite,... ! or vwrite command to write and save the results in a .txt file

*cfclos

(2)
For n load step, I often used a loop with:
*do,kk,1,n
...
!(1) descibed above
...
*enddo
 
HI,
i was using ANSYS APDL 12 and there was a "design opt" in the main menu tree to the left. it s for design optimization. however now i built my model in ansys apdl 15 but there s no longer "design opt" in it. any ideas how to apply design optimization in apdl 15??
thanks
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
6K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
5
Views
28K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
1
Views
5K