How to Script in ANSYS Workbench?

  • Thread starter Thread starter mechcrazy
  • Start date Start date
  • Tags Tags
    Ansys Workbench
Click For Summary

Discussion Overview

The discussion revolves around scripting in ANSYS Workbench, focusing on how to automate processes and analyses using different programming languages, particularly APDL and Python. Participants explore the capabilities of Workbench in relation to scripting and automation, as well as the integration of models created in APDL.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants express uncertainty about the terminology and seek to understand how to create a program in ANSYS Workbench that accepts input parameters and performs specified analyses.
  • It is noted by some that ANSYS Workbench does not have its own scripting language, as it relies on APDL for scripting functionalities.
  • Participants discuss the possibility of creating an interface in Workbench for inputting parameters and obtaining results, with requests for guidance on how to start this process.
  • Some clarify the distinction between Workbench as a graphical user interface (GUI) and APDL as the underlying scripting language, emphasizing the need for understanding this difference.
  • It is mentioned that while APDL is a traditional method for automation, Python can also be used to create journal files for automation in Workbench, along with the Workbench API for custom applications.
  • One participant raises a concern about exporting models from APDL to Workbench, reporting issues with file compatibility and seeking assistance.

Areas of Agreement / Disagreement

Participants generally agree that APDL is the primary scripting language associated with ANSYS Workbench, but there is some disagreement regarding the capabilities of Workbench in terms of automation and the use of Python. The discussion remains unresolved regarding the specifics of exporting models from APDL to Workbench.

Contextual Notes

Participants express confusion about the scripting capabilities of Workbench and the integration of APDL models, indicating potential limitations in understanding the software's functionalities and file compatibility issues.

mechcrazy
Messages
7
Reaction score
0
ANSYS scripting in Workbench...

I am not sure whether I am using perfect terminology or not, I want to create a program using ansys workbench such that I will give input/parameters to the program, what all operations/analyses has to be done will be specified in program and will finally obtain results...this can be done with Mechanical APDL language in Ansys classic that I am aware of...but which language does Workbench use? and where is option in the software where we can type our program?

Thank You
 
Engineering news on Phys.org


What you're asking for is ANSYS APDL. Workbench does not have a scripting language, because it in turn uses APDL for it's own scripting language.
 


Mech_Engineer said:
What you're asking for is ANSYS APDL. Workbench does not have a scripting language, because it in turn uses APDL for it's own scripting language.

Thank You...
But can't we create interface kind of thing where we will give input n program will lead us to result in workbench?
and if yes from where to start can you just give outline?
 


What exactly are you trying to achieve? You can import and export APDL files through Workbench, and you can import ANSYS results in Workbench as well. I don't think you're understanding the difference between Workbench (basically just GUI) and APDL (underlying language Workbench uses).
 


Mech_Engineer said:
What exactly are you trying to achieve? You can import and export APDL files through Workbench, and you can import ANSYS results in Workbench as well. I don't think you're understanding the difference between Workbench (basically just GUI) and APDL (underlying language Workbench uses).

Yes sir I am little confused...I just want to create a program in workbench with predefined analysis where we will just have to give input parameters n result will appear...was preoccupied with thought that workbench uses other language python and not APDL...now ill start with my project...if i need any help will again come to u...thanks ur reply will help me..
 


APDL is the "classic" way to automate ANSYS, but not the only way. For example, you can now use a Python journal file to automate simulation by changing input parameters. You can use the Workbench API to build custom forms and vertical applications. Many legacy products that are now part of ANSYS Workbench can continue to be customized using their native scripting enviorment. For example, Jscript for ANSYS Mechanical, APDL for Mechanical APDL , Scheme for Fluent and so on. Additionally you can customize Project Schematic, Design Exploration, and Engineering Data in ANSYS 12.1 and later
using Python. Hope this helps.
 


mnalgirkar said:
APDL is the "classic" way to automate ANSYS, but not the only way. For example, you can now use a Python journal file to automate simulation by changing input parameters. You can use the Workbench API to build custom forms and vertical applications. Many legacy products that are now part of ANSYS Workbench can continue to be customized using their native scripting enviorment. For example, Jscript for ANSYS Mechanical, APDL for Mechanical APDL , Scheme for Fluent and so on. Additionally you can customize Project Schematic, Design Exploration, and Engineering Data in ANSYS 12.1 and later
using Python. Hope this helps.

yes sir it helped...ill msg u if i need further guidance
 


Hi,I did a model in APDL...now I want to use that in workbench is it possible... I tried export option in APDL but its not working...as it generates a file that matches none of the format that workbench uses like igs,iges... can somebody help me
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
12K
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
13K
  • · Replies 8 ·
Replies
8
Views
37K