The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.
Ansys Rocky

Ansys Rocky

5 FAQs about automating with Ansys Rocky™ PrePost scripting tool

    • FAQFAQ
      Participant

       

      1. What is an Ansys Rocky™ script, and how does it work?

      Ansys Rocky™ PrePost script is a file written in Python that allows users to automate tasks within Ansys Rocky™ application. It enables the automation of repetitive commands and procedures, making the simulation process more efficient and less prone to errors.

       

      2. What are the advantages of using Ansys Rocky™ scripts?

      The advantages of using Ansys Rocky™ scripts include:

      • Automation: Reduces manual effort and minimizes human error in executing repetitive tasks.
      • Customization: Allows users to tailor simulations and analyses to specific needs or standards.
      • Efficiency: Speeds up simulation workflows by automating sequential tasks.
      • Reproducibility: Ensures consistency and traceability in simulation results.

       

       3. Where can I find Ready-to-use scripts?

      Find examples of Ready-to-use scripts downloading the Additional Package on Ansys Customer Portal . In the Downloads page select the Release Version, Operational System and download the Additional Package in Add-On Packages section.

       

       

      4. How to save and run a Script?

      • Find the Scripts folder into the downloaded package.
      • Extract which script for Documents folder.



      • Open Ansys Rocky™ software, go to superior toolbar and select Tools then PrePost Scripts.
      • Select the desired script then click on the green play button in the PrePost Scripts.

              

      5. How to create a Script?

      You can use the Integrated Development Environment (IDE) of your choice, such as Visual Studio Code (VSCode), PyCharm, or any other preferred Python IDE.

      For more information about the syntax and usage of PrePost Scripting, click in the link below to access directly the PrePost Scripting manual on Ansys Developer Portal. There you will find detailed information about the available classes, methods, and properties, as well as comprehensive guidance to create your first script.

      PrePost scripting manual on Rocky for Developers page


       

      Ansys Rocky™ particle dynamics simulation software

      Learn more about Ansys Rocky™ software in Ansys Rocky  Innovation Space.