Start by clicking the “Automation” tab in the Mechanical Ribbon. Lines of code can also be quickly saved to a user defined button in the ribbon for tasks that will be performed frequently.īelow, we’ll briefly introduce Python automation in Mechanical and perform a simple automation example to illustrate how powerful this approach can be. ![]() Python scripting is well integrated into the software, and any objects created or analysis settings changed can immediately be seen in the Mechanical GUI. With the introduction of scripting into Ansys Mechanical, users can use the modern Python programming language to automate a vast array of tasks. Also, APDL was developed many years ago, and is somewhat cumbersome to use. Any objects created using a code snippet are created when the model is solved and are not well integrated into the Ansys Mechanical environment. However, this approach has some drawbacks. ![]() Users of Ansys Mechanical still have the option of incorporating APDL code into their model by inserting command snippets into the analysis tree. While the learning curve is steeper than using the modern Ansys Mechanical user-interface, APDL does have some distinct advantages: besides giving the user a fine level of control over the analysis, as a scripting language it also allows for automation of repetitive tasks. APDL is a powerful tool, and it is still used behind the scenes whenever a user creates and solves a model in Ansys Mechanical. ![]() Before Ansys Mechanical for Workbench was developed, engineers relied on a scripting language called Ansys Parametric Design Language (APDL) to set up and perform analyses.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |