Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Ansys Rocky

Ansys Rocky

Automate with Rocky Ready-to-use Scripts

Tagged:

    • SolutionSolution
      Participant

      /Ansys Rocky Ready-to-use Scripts

      Rocky Scripts are a powerful tool in Ansys Rocky™ particle dynamics simulation software, allowing users to automate and customize their simulation processes, such as model configuration, data post-processing, and results analysis.

      Documentation containing technical and usability details for scripts created by Rocky Team Experts is in the Rocky Scripts Manual in Ansys Help.

      5 FAQs about automating with Ansys Rocky™ PrePost scripting tool

      Pre- and post-processing actions in Rocky can be fully automated with a Python-based PrePost scripting tool and besides the scripts created by Rocky experts you can create your own scripts, refer to the PrePost Scripting Manual on Ansys Developer Portal.

       


      / Scripts Wizard – APP Catalog

      Discover and download below each of the wizards available in Rocky.

      Calibration Suite

      Calibration Suite for Ansys Rocky that automates pre-processing, parametric control, and post-processing of standardized material calibration tests through ready-to-use decks and scripts.


       

      Closed Loop Motion

      The Closed Loop Motion script is a complete application that runs within Rocky and enables you to define periodic motion with geometry replication easily.


       

       

      Coating Visibility Wizard

      The Coating Visibility Wizard is a complete application that runs inside Rocky and enables you to quickly and easily define the spray nozzle parameters for your coating applications.


       

       

      Material Storage

      The Material Storage is a complete application that runs within Rocky and enables you to access and interact with a material repository.


       

      Material Wizard

      The Material Wizard is a complete application that runs inside Rocky and enables you to calibrate your material properties easier, faster, and more reliably.


       

       


      /General Scripts – GitHub

      Below is a list of general scripts available for automating tasks in Rocky software. Scroll to the end of the page to download all files and review the documentation.
      • 1. Setup Basic Rocky Project

        This example script provides an introduction to PrePost Scripting from the point of view of setting up a basic Rocky project.
        This script should be used as a starting point for users who want to write their own scripts.

      • 2. Chain Generator

        This script creates a chain courtain using Rocky’s custom fiber model. The chain generation begins with the link dimensions and material density. Just after specifying the link dimensions, the multiple chain courtain positioning is specified. Both custom fiber shape and custom input data are filled automatically by the script. This script is designed to be run during the simulation preprocessing.

      • 3. Mixing Index

        This script compute the Mixing Index (MI) for particulate systems containing multiple materials. The method quantifies the degree of homogeneity of a granular bed after simulation processing.

      • 4. Equivalent Network Circuit

        This script computes a steady-state flow on a contact network between a potential difference, which is specified using custom geometries bounded by a user process shape. This outcome can be useful for static bed scenarios where you want to calculate equivalent properties for the entire contact network. This script is designed to be run after the simulation is processed.

      • 5. Export Boundary Information

        This script will, for the selected time range, export the selected properties for the selected wall. The user can select between writing one single file containing all outputs or one file per output.

      • 6. Export Eulerian Information

        For cases that have been post-processed to include a User Process Cube or Cylinder that has been divided into Eulerian Statistics, this script will, for the desired time range, export the selected variables of a selected Eulerian Statistics process. It will also allow you to choose whether to have Rocky save the exported data to a single file that contains all outputs, or to save one individual file per output.

      • 7. Export Particles and Geometry to STL

        This script exports several binary .stl files representing the Particle Bed and Geometries that are active in the simulation at a particular output time. This can be useful for fixed bed scenarios where it is desired to create a bed of particles that do not move. For example, the exported .stl files (bed and geometries) can be used as boundaries in a CFD simulation.

      • 8. Export Particle Information

        This script will, for the selected time range, export the selected variables of all particles within the computational domain. The user can select between writing one single file containing all outputs or one file per output.

      • 9. Export SPH Information

        This script will, for the selected time range, export the selected variables of all particles within the computational domain. The user can select between writing one single file containing all outputs or one file per output.

      • 10. Export Particle Time Selection Information

        This script will export the selected properties of all particles within the selected Particle Time Selection process.

      [DOWNLOAD – COMING SOON]
      The General Scripts page is currently under maintenance. We are working on preparing the package download page and it will be available soon. Thank you for your understanding.

       


      Download Rocky Student Version Add-Ins: The modules and scripts available for the student version.


      Access Rocky Scripts Manual:To learn more about each available Ready-to-use Script and how to install them, read the Rocky Scripts Manual:

      Access PrePost Scripting Manual:To learn how to use the Ansys Rocky PrePost scripting tool