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

Click For Summary
SUMMARY

APDL (ANSYS Parametric Design Language) can be utilized for scripting in ANSYS Workbench, alongside Python and JScript. Users can leverage the sendcommand() function in Python to integrate JScript for geometric modeling. While recording a journal in Workbench provides a detailed log of operations, it does not explain the underlying processes, such as the specifics of the "geometry1.Edit()" function. Understanding these scripting capabilities enhances automation and efficiency in simulation tasks.

PREREQUISITES
  • Familiarity with ANSYS Workbench 13.0
  • Basic knowledge of Python programming
  • Understanding of JScript syntax and functions
  • Experience with APDL scripting language
NEXT STEPS
  • Explore the integration of APDL with Python in ANSYS Workbench
  • Learn how to utilize the sendcommand() function effectively
  • Investigate the details of the "geometry1.Edit()" function in ANSYS documentation
  • Study advanced scripting techniques in ANSYS Workbench for automation
USEFUL FOR

This discussion is beneficial for simulation engineers, ANSYS users, and developers looking to enhance their scripting capabilities within ANSYS Workbench for improved modeling and automation.

mechcrazy
Messages
7
Reaction score
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
I want to know this too
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 7 ·
Replies
7
Views
16K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 11 ·
Replies
11
Views
12K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
Replies
2
Views
7K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 5 ·
Replies
5
Views
6K