Customizing ANSYS Workbench - Sudharshan Renganathan
Customizing ANSYS Workbench - Sudharshan Renganathan
Customizing ANSYS Workbench - Sudharshan Renganathan
Workbench
By,
Sudharshan
Renganathan
1 © 2011 ANSYS, Inc. 8/29/11 Technical Service
Outline
Conclusion
•
Capture the existing simulation process
•
Make repetitive operations automatic
•
Integrate CAE with other in-house analysis processes
•
Make the technology available to a wider group (non
CAE experts)
Application Integration
Scripting Parameterization
Workbench Scripting
• For task automation at project level
– Creating project, performing parameters
simulations, optimization etc.
• Works “hand-in-hand” with scripting in DIAs
– Can embed JScript, CCL, Scheme, APDL
Define all
variables at top
IcePak N/A
AUTODYN N/A
Using SendCommand
operations in Mechanical
13
can be automated
© 2011 ANSYS, Inc. 8/29/11
Automation Scenario: CFD
User
Scenario-C :Interested in automating some steps within
FLUENT/CFX
• Examples:
– Automate simulation setup
– Automate post-processing in CFD Post
– …
• Use: JScript
• Use: APDL
Data
17 Integrated
© 2011 ANSYS, Inc. 8/29/11 Applications (DIA):
Customization Scenarios
Scenario-G: Integrate an in-house/third-party code with
WB through parameters
• Examples:
– Output parameter from a Mechanical simulation is the input
parameter for the in-house code; Perform DPs involving the
in-house code.
– …
•
Scenario-H: Integrate an in-house/third-party code
with WB (not just parameters are exchanged)
• Examples:
– Use the Mechanical simulation results to perform a life
analysis using in-house code
– ..
•
Scenario-K: Add custom toolbar/menu items within
Design Modeler, Mechanical
• Examples:
19
– A toolbar8/29/11
© 2011 ANSYS, Inc.button to select all bodies with same material
Functionality vs. Complexity
WB DM,
Complexity
Complexity
Jscript Macro
Python Journal
Function Function
ality ality
•
Running WB from other software •
Task automation in DM, Meshing,
•
MATLAB, Excel etc. Mechanical etc.
•
Read/Write external data in WB
•
Create a workflow in DM, Meshing,
•
Integration of in-house/third-party code
Mechanical etc.
through parameters •
Interface to take interactive inputs
•
Hosting custom toolbar/menu, vertical
and task automation
applications
•
High-level integration of in-house/third- Add high-level functionality/GUI in
•
Typical Usage:
• Hosting a
customized GUI to
take inputs and drive
23 © 2011 ANSYS, Inc. 8/29/11
the simulation
Examples (3)
Example:
• Using Jscript add-in,
Wizard functionality
is added in DM
Typical Usage:
• Add high-level
functionality in DM,
Meshing, Mechanical
etc.
• Add button/menu for
extra features
– Enable/disable
dynamically
HFSS as a data-
integrated
application in R13
HFSS in R12
26 © 2011 ANSYS, Inc. 8/29/11
Conclusion
• Application-level scripting
– Data-integrated applications will co-exist with native apps
for many releases, investments made here will be useful for
a long time
• External Connection add-in
– Being extended to include data transfer in future releases
• Workbench SDK
– As native simulation tools emerge, the SDK will enable
development of full-featured custom applications