Sei sulla pagina 1di 3

Tips and tricks

Best of Both Worlds:


Combining APDL with
ANSYS Workbench for
Structural Simulations
Using ANSYS Workbench techniques with APDL delivers
the most benefit from ANSYS structural mechanics solutions.
By Pierre Thieffry, Lead Product Manager, ANSYS, Inc.

Whether you are a longtime ANSYS processes and to efficiently interact benefit from technologies that once
Mechanical APDL user wondering, with external tools such as CAD were available only to CFD users, and
“What is so good about ANSYS systems. It provides a foundation for vice versa. The ANSYS Workbench
Workbench that everyone suggests I easy multiphysics simulation and Mechanical application has proven
use it?” or an ANSYS Workbench user enhanced company-wide communi- to be a very efficient way to quickly
thinking, “I can’t find the button, so cation of simulation results. Those set up mechanical analyses. Auto-
how can I use this feature?” you can performing a structural simulation use mated contact detection is probably
make better use of ANSYS mech- a graphical interface (called the the most noticeable advantage as
anical solutions by combining all of ANSYS Workbench Mechanical compared to the long-standing
the available technologies. Doing so application) that employs a tree-like ANSYS Mechanical APDL interface.
will allow you to achieve process navigation structure to define all ANSYS Workbench includes auto-
compression while performing more- parts of their simulation: geometry, mation capabilities in addition to those
advanced simulations. connections, mesh, loads, boundary provided by APDL. For example, when
APDL — ANSYS Parametric conditions and results. looking at design variations, a user can
Design Language — is the primary By utilizing the ANSYS Workbench easily perform geometric variations
language used to communicate platform, the user saves time in many by directly modifying the parametric
with the ANSYS Mechanical APDL of the tasks required to perform a CAD models. In the case of coupled
solver. This scripting language can be simulation. The bidirectional links analyses such as thermal–stress or
used to automate common tasks or with all major CAD systems offer a prestressed modal analyses, all data
even to build a parametric model. very efficient way to update CAD shared among the various simulations
APDL encompasses a wide range of geometries along with the design are handled automatically, allowing the
other features, such as if-then-else parameters. The meshing tools user to focus on designing a better
constructs, do-loops, and vector and available in ANSYS Workbench are product rather than having to worry
matrix operations. based on some of the best algor- about file management.
The ANSYS Workbench platform ithms ANSYS has developed — for A s a n A N S Y S Wo r k b e n c h
allows users to create new, faster example, structural users can now Mechanical application user, you may

48 ANSYS Advantage • © 2010 Ansys, Inc. www.ansys.com


Tips and tricks

operations on results or to export


data to an external tool. Commands
objects can be edited manually, or
existing macros can be directly
imported. The Named Selections in
ANSYS Workbench Mechanical are a
key companion feature to Commands
objects, as they are converted to
nodal or element components that
can be referenced.
If you are an ANSYS Mechanical
APDL user and your company has
Figure 1. APDL commands for defining
created and validated APDL macros
additional material properties for many years, these scripts can be
reused directly or with slight changes.
wish to perform tasks that are not The current version of the ANSYS
natively available. For example, Wo r k b e n c h p ro j e c t s c h e m a t i c
consider that you want to use a contains a Mechanical APDL system
material model not available from that can be linked to a structural Figure 3. Multiple scripts applied to a model
engineering data, to use a contact analysis (Figure 2). You can then use and solver option definitions
option not available from the menus,
or even to perform a more-complex the ANSYS Mechanical APDL system
task, such as a submodeling (Figure 3).
analysis. The solution is to insert It is likely that users will not be
APDL Commands objects to send able to convert all their existing
additional instructions to the solver. procedures at once, but you can start
When you click on the Solve icon, with the processes that will most
the ANSYS Workbench Mechanical benefit from the advantages of the
application adds these APDL Figure 2. Applying APDL scripts to a base ANSYS Workbench platform. And if
ANSYS Workbench model
commands to the input file for the you have an entire procedure scripted
ANSYS Mechanical APDL solver. The in APDL that does not require any
Commands objects (also referred to macros to operate on the model or user interface, you probably don’t
as snippets) can be included at the results of the ANSYS Workbench need to use ANSYS Workbench for
the Geometry level for modifying Mechanical analysis. The ANSYS that specific case.
element types or material properties Mechanical APDL system will accept ANSYS Mechanical APDL users
(Figure 1). At the Connections a list of APDL files to be executed may want to take a look at the
level, additional contact options or sequentially on any data that is benefits of the ANSYS Workbench
non-linear spring definitions can provided by the upstream analysis. platform to see how much time can be
be introduced. Commands inserted Furthermore, you can define input and saved on geometry import and modifi-
under the analysis branch provide output parameters from the variables cations, meshing, contact detection
the flexibility to add pre-processing of your APDL script and combine them and general model setup. If you are
actions, loads and boundary with other parameters in the project. an ANSYS Workbench user and have
condition definitions, or solution For example, APDL variables can be found you need functionality that is not
settings. When used under Solution, mixed with CAD dimensions to available as a button or menu, then
commands allow accessing the APDL perform design variations. All standard learning APDL is definitely worth
post-processors and could be used, solver options, such as job definition investing the small amount of time that
for example, to perform complex and licensing options, are defined with can result in huge dividends. n

www.ansys.com ANSYS Advantage • Volume IV, Issue 1, 2010 49


Are you talking to me?
The chances of jamming this blender with oranges are probably fewer than
jamming it from crosstalk emitted by other electronics all around us.

Electromagnetic Interference. EMI. A prime suspect in recent auto and aircraft


safety issues. And the hidden culprit in what may be the most daunting
engineering challenge of our time.

Today’s most innovative and quality-driven companies are just beginning to


understand the domino effect of modern products bursting with ingredients.
Electronics and a cacophony of other interconnected systems and physical
components each one talking over the other.

This new era of smart products doesn’t seem so smart if you try to design things
the same old way. Product design leaders rely on ANSYS engineering simulation
software for analyzing the interplay of electromagnetic emissions, structural
mechanics and fluid dynamics.

ANSYS is the true test of product readiness. Go to www.ansys.com to learn more.


Or call us at 1 (866) 267 9724. Smart products require smart design tools.

Potrebbero piacerti anche