产品组合
查看所有产品Ansys致力于通过向学生提供免费的仿真工程软件来助力他们获得成功。
ANSYS BLOG
June 23, 2022
Simulation modeling accounts for a variety of situation-specific information to recreate real-world circumstances to the tiniest detail. In most cases, when a user needs to customize the simulation process to perform a task that is not part of a model’s standard setup procedures, they can use APDL.
We caught up withHarish Radhakrishnan产品经理,Ansys关注nsys Mechanical and APDL. Harish has a doctorate in mechanical engineering and has been with Ansys for 11 years. He is the perfect person to provide us with some APDL answers and a look under the hood of Ansys Mechanical. Here are some of the most frequently asked questions about APDL, with answers from Harish.
Ansys Parametric Design Language (APDL) is a powerful structured scripting language used to interact with theAnsys Mechanicalsolver. Mechanical APDL (MAPDL), a finite element analysis program, is driven by APDL. APDL and MAPDL can be used for many tasks, ranging from creating geometries for analysis to setting up sophisticated solver settings for highly complex analyses. Ansys was the first commercial simulation tool provider to offer users a versatile programming language to create parametric models for systemic analyses.
APDL has been around since the 1980s, initially developed by John Swanson to replace punch card instructions in mainframe computers with a simpler, easy-to-use language for personal computers. While APDL was the standard method of setting up models for many years, it required engineers to be trained on the myriad commands available and was enhanced with a more intuitive graphical user interface (GUI) in the early 2000s. Today, APDL is primarily used to fine-tune settings in very complex simulations, where the desired interactions fall outside the scope of the standard GUI.
Today, APDL commands continue to be highly popular, enabling users to customize their setup of the model or perform sophisticated post-processing operations in Ansys Mechanical. By inserting a specific sequence of APDL instructions, users can augment the GUI’s functionality for tasks such as:
APDL provides users with a foundation for many sophisticated simulation features. Especially for users who are comfortable working in code, APDL is a fast, efficient way to directly type in the command or function they need executed.
APDL is a language that lets you add specific information into a solver, whereasAnsys Workbenchis a platform that lets you coordinate and manage information between solvers and across projects. For those wanting to learn the Workbench version of Ansys Mechanical, I would recommend the “Ansys Mechanical Getting Started” training course.
APDL is akin to procedure coding languages like FORTRAN. This means that any script users develop must be self-contained and can only be used to interact with the Mechanical solver. As users want to develop more complex workflows or utilize functions and libraries from others in their organization or simulation community, a more flexible coding language is needed.
To enable APDL to be used with more modern object-oriented programs like Python, Ansys recently developed pyMAPDL. This wrapper enables users to use Python to setup, solve, and post-process their simulation models. Python has a rich, yet simple, readable code with a vast ecosystem of libraries for data processing and advanced math operations that make the Mechanical solver accessible to emerging technologies like machine learning. This lets the user develop very complex workflows for a variety of situations. Learn more aboutPyAnsys here.
When you buy any Ansys Mechanical license (Pro, Premium, or Enterprise), you get access to APDL language. No other license is necessary.
The full list of more than 1,500 APDL commands is available at theAnsys Learning Hub.These can be accessed after creating an Ansys Learning Hub account.
For specific instructions on topics such as how to apply distributed load and how to select element type with APDL, check out theAnsys Help Center.
No. Ansys Mechanical is primarily accessed through a standard graphical user interface (GUI). APDL is considered a supplement to this interface and can give users insight into how the application is used for specific tasks.
The GUI for Ansys Mechanical is very comprehensive and intuitive for most simulations. But if you need to create highly customized models, it would be beneficial to learn some APDL commands.
Ansys offers an introductory course for new users, or experienced Ansys Mechanical users, to learn the Ansys Mechanical APDL user interface. Upon completion of the “Introduction to Ansys Mechanical APDL,” users will have the knowledge to efficiently set up, solve, and postprocess virtually any type of analysis. Or, to quickly find the right APDL command for your needs, download theAnsys Parametric Design Language Guide.
We’re here to answer your questions and look forward to speaking with you. A member of our Ansys sales team will contact you shortly.