Can APDL be used in Mechanical for scripting in Ansys Workbench?

In summary, the conversation discusses the use of scripting in ANSYS Workbench, specifically Python, Jscript, and APDL. It is mentioned that Jscript can be used with the help of sendcommand() for geometric modelling, and there is a question about whether APDL can also be used in Python. It is also asked if APDL can be used in Mechanical, and it is noted that journaling can only show the details of operations performed. The conversation ends with a question about what happens in "geometry1.Edit()" and a desire to know more about it.
  • #1
mechcrazy
7
0
I am required to do scripting in ansys workbench...i know python, jscript and APDL can be used for this...now how do we really use them?

jscript can be used with help of sendcommand() in python for geometric modelling...can we use APDL in python?

In Mechanical(formerly simulation) can we use APDL?

We can record journal in workbench but it only give the details of operation performed...
e.g.
journal will show
# encoding: utf-8
SetScriptVersion(Version="13.0")
template1 = GetTemplate(
TemplateName="Static Structural",
Solver="ANSYS")
system1 = template1.CreateSystem()
geometry1 = system1.GetContainer(ComponentName="Geometry")
geometry1.Edit()
geometry1.Exit()


but what really happens in "geometry1.Edit()"?
 
Engineering news on Phys.org
  • #2
I want to know this too
 

1. What is Ansys Workbench Scripting?

Ansys Workbench Scripting is a powerful tool that allows users to automate repetitive tasks and create customized solutions within the Ansys Workbench software. It uses a scripting language called Python to write and execute scripts that can interact with the software and perform various operations.

2. What are the benefits of using Ansys Workbench Scripting?

Ansys Workbench Scripting can save time and effort by automating tasks that would otherwise need to be done manually. It also allows for more advanced and customized solutions that may not be possible with the standard Workbench interface. Additionally, it can improve consistency and accuracy in simulations by reducing the potential for human error.

3. Do I need to have programming experience to use Ansys Workbench Scripting?

While some programming experience can be helpful, it is not necessary to use Ansys Workbench Scripting. The scripting language used, Python, is relatively easy to learn and there are many resources available online for beginners. Ansys also provides documentation and tutorials to help users get started with scripting.

4. What types of tasks can be automated with Ansys Workbench Scripting?

Ansys Workbench Scripting can automate many different types of tasks, such as creating and modifying geometry, setting up and running simulations, and post-processing results. It can also be used to create custom tools and interfaces for specific workflows or to integrate Ansys with other software programs.

5. Is Ansys Workbench Scripting only useful for advanced users?

No, Ansys Workbench Scripting can be useful for both beginner and advanced users. While advanced users may be able to create more complex and sophisticated scripts, even beginners can benefit from automating simple tasks and learning the basics of scripting. Ansys Workbench Scripting can also help users become more proficient in the software and gain a deeper understanding of its capabilities.

Similar threads

  • Mechanical Engineering
Replies
1
Views
7K
  • Mechanical Engineering
Replies
5
Views
5K
  • Mechanical Engineering
Replies
1
Views
2K
Replies
11
Views
10K
  • Mechanical Engineering
Replies
7
Views
16K
  • Mechanical Engineering
Replies
1
Views
2K
  • Mechanical Engineering
Replies
1
Views
3K
Replies
1
Views
2K
  • Mechanical Engineering
Replies
2
Views
5K
  • Aerospace Engineering
Replies
5
Views
4K
Back
Top