{"id":180023,"date":"2023-12-01T13:03:35","date_gmt":"2023-12-01T13:03:35","guid":{"rendered":"\/knowledge\/?post_type=topic&#038;p=180023"},"modified":"2026-04-13T18:50:01","modified_gmt":"2026-04-13T18:50:01","slug":"rocky-scripts-ais","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/rocky-scripts-ais\/","title":{"rendered":"Automate with Rocky Ready-to-use Scripts"},"content":{"rendered":"<h2  id=\"ANSYS-ROCKY-READY-TO-USE-SCRIPTS\"><strong><span style=\"font-size: 50px;font-weight: 900;color: #fedb8d\">\/<\/span>Ansys Rocky Ready-to-use Scripts<\/strong><\/h2>\n<p>Rocky Scripts are a powerful tool in Ansys Rocky\u2122 particle dynamics simulation software, allowing users to automate and customize their simulation processes, such as model configuration, data post-processing, and results analysis.<\/p>\n<p>Documentation containing technical and usability details for scripts created by Rocky Team Experts is in the <strong>Rocky Scripts Manual<\/strong> in <a href=\"https:\/\/ansyshelp.ansys.com\/account\/secured?returnurl=\/Views\/Secured\/prod_page.html?pn=Rocky&amp;pid=rockydem&amp;lang=en\">Ansys Help<\/a>.<\/p>\n<h5 class=\"attachment\" style=\"background-color: #fedb8d;padding: 1%;font-weight: 300;display: flex;border-radius: 15px;margin-bottom: 20px;height: auto !important\"><b><a href=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/5-faqs-about-automating-with-ansys-rocky-prepost-scripting-tool\/\">5 FAQs about automating with Ansys Rocky\u2122 PrePost scripting tool<\/a><br \/>\n<\/b><\/h5>\n<p><span style=\"font-size: 12.0pt;font-family: 'Source Sans Pro', sans-serif\"> 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 <\/span>on <a href=\"https:\/\/developer.ansys.com\/docs\/rocky\">Ansys Developer Portal<\/a>.<\/p>\n<div class=\"packages-rocky\">\n<div class=\"additional-package-rocky col-md-5\">\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><br \/>\n<a class=\"download\" href=\"https:\/\/www.ansys.com\/academic\/students\/ansys-rocky-student-add-ins\" target=\"_blank\" rel=\"noopener\">DOWNLOAD ROCKY FREE STUDENT VERSION<\/a><\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2  id=\"SCRIPTS-WIZARD-APP-CATALOG\"><strong><span style=\"font-size: 50px;font-weight: 900;color: #fdb71a\">\/<\/span> Scripts Wizard &#8211; APP Catalog<\/strong><\/h2>\n<h5  id=\"DISCOVER-AND-DOWNLOAD-BELOW-EACH-OF-THE-WIZARDS-AVAILABLE-IN-ROCKY\">Discover and download below each of the wizards available in Rocky.<\/h5>\n<div class=\"packages-rocky\">\n<div class=\"additional-package-rocky col-md-4\">\n<h3  id=\"CALIBRATION-SUITE\">Calibration Suite<\/h3>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" style=\"border-radius: 0\" src=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/Calibration-Suite-2-300x300.png\" alt=\"\" width=\"300\" height=\"185\" \/><\/p>\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><br \/>\n<a class=\"download\" href=\"https:\/\/developer.ansys.com\/app\/ansys-inc\/calibration-suite\/26r1\" target=\"_blank\" rel=\"noopener\">DOWNLOAD SCRIPT HERE<\/a><\/div>\n<p>&nbsp;<\/p>\n<div><a class=\"download\" href=\"https:\/\/ansyshelp.ansys.com\/public\/account\/secured?returnurl=\/Views\/Secured\/corp\/v261\/en\/dem_scripts\/dem_scripts_calibration_suite.html?template=rocky\" target=\"_blank\" rel=\"noopener\">ACCESS DOCUMENTATION HERE<\/a><\/div>\n<\/div>\n<div class=\"additional-package-rocky col-md-4\">\n<h3  id=\"CLOSED-LOOP-MOTION\">Closed Loop Motion<\/h3>\n<p>The Closed Loop Motion script is a complete application that runs within Rocky and enables you to define periodic motion with geometry replication easily.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" style=\"border-radius: 0\" src=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/Closed-Loop-Motion-v2-2-300x300.jpg\" alt=\"\" width=\"300\" height=\"185\" \/><\/p>\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><a class=\"download\" href=\"https:\/\/developer.ansys.com\/app\/ansys-inc\/closed-loop-motion\/26r1\" target=\"_blank\" rel=\"noopener\">DOWNLOAD SCRIPT HERE<\/a><\/div>\n<p>&nbsp;<\/p>\n<div><a class=\"download\" href=\"https:\/\/ansyshelp.ansys.com\/public\/account\/secured?returnurl=\/Views\/Secured\/corp\/v261\/en\/dem_scripts\/dem_scripts_Closed_Loop_Motion.html?template=rocky\" rel=\"noopener\">ACCESS DOCUMENTATION HERE<\/a><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"additional-package-rocky col-md-4\">\n<h3  id=\"COATING-VISIBILITY-WIZARD\">Coating Visibility Wizard<\/h3>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" style=\"border-radius: 0\" src=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/Coating-Visibility-Wizard-2-300x300.png\" alt=\"\" width=\"300\" height=\"185\" \/><\/p>\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><br \/>\n<a class=\"download\" href=\"https:\/\/developer.ansys.com\/app\/ansys-inc\/coating-visibility-wizard\/26r1\" target=\"_blank\" rel=\"noopener\">DOWNLOAD SCRIPT HERE<\/a><\/div>\n<p>&nbsp;<\/p>\n<div><a class=\"download\" href=\"https:\/\/ansyshelp.ansys.com\/public\/account\/secured?returnurl=\/Views\/Secured\/corp\/v261\/en\/dem_scripts\/dem_scripts_coating.html?template=rocky\" target=\"_blank\" rel=\"noopener\">ACCESS DOCUMENTATION HERE<\/a><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<div class=\"packages-rocky\">\n<div class=\"additional-package-rocky col-md-4\">\n<h3  id=\"MATERIAL-STORAGE\">Material Storage<\/h3>\n<p>The Material Storage is a complete application that runs within Rocky and enables you to access and interact with a material repository.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" style=\"border-radius: 0\" src=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/Material-Storage-Script-2-300x300.png\" alt=\"\" width=\"300\" height=\"185\" \/><\/p>\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><br \/>\n<a class=\"download\" href=\"https:\/\/developer.ansys.com\/app\/ansys-inc\/material-storage\/26r1\" target=\"_blank\" rel=\"noopener\">DOWNLOAD SCRIPT HERE<\/a><\/div>\n<p>&nbsp;<\/p>\n<div><a class=\"download\" href=\"https:\/\/ansyshelp.ansys.com\/public\/account\/secured?returnurl=\/Views\/Secured\/corp\/v261\/en\/dem_scripts\/dem_material_database.html?template=rocky\" target=\"_blank\" rel=\"noopener\">ACCESS DOCUMENTATION HERE<\/a><\/div>\n<\/div>\n<div class=\"additional-package-rocky col-md-4\">\n<h3  id=\"MATERIAL-WIZARD\">Material Wizard<\/h3>\n<p>The Material Wizard is a complete application that runs inside Rocky and enables you to calibrate your material properties easier, faster, and more reliably.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" style=\"border-radius: 0\" src=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/Material-Wizard-2-300x300.png\" alt=\"\" width=\"300\" height=\"185\" \/><\/p>\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><a class=\"download\" href=\"https:\/\/developer.ansys.com\/app\/ansys-inc\/material-wizard\/26r1\" target=\"_blank\" rel=\"noopener\">DOWNLOAD SCRIPT HERE<\/a><\/div>\n<p>&nbsp;<\/p>\n<div><a class=\"download\" href=\"https:\/\/ansyshelp.ansys.com\/public\/account\/secured?returnurl=\/Views\/Secured\/corp\/v261\/en\/dem_scripts\/dem_scripts_material_wizard.html?template=rocky\" rel=\"noopener\">ACCESS DOCUMENTATION HERE<\/a><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<hr \/>\n<h2  id=\"GENERAL-SCRIPTS-GITHUB\"><strong><span style=\"font-size: 50px;font-weight: 900;color: #fdb71a\">\/<\/span>General Scripts &#8211; GitHub<\/strong><\/h2>\n<h5  id=\"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\">Below is a list of general scripts available for automating tasks in Rocky software. <span data-teams=\"true\">Scroll to the end of the page to download all files and review the documentation.<\/span><\/h5>\n<div style=\"background: #fedb8d;padding: 16px;border-radius: 8px;margin-bottom: 20px\">\n<ul>\n<li>\n<h4  id=\"1-SETUP-BASIC-ROCKY-PROJECT\">1. Setup Basic Rocky Project<\/h4>\n<p>This example script provides an introduction to PrePost Scripting from the point of view of setting up a basic Rocky project.<br \/>\nThis script should be used as a starting point for users who want to write their own scripts.<\/li>\n<li>\n<h4  id=\"2-CHAIN-GENERATOR\">2. Chain Generator<\/h4>\n<p>This script creates a chain courtain using Rocky\u2019s 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.<\/li>\n<li>\n<h4  id=\"3-MIXING-INDEX\">3. Mixing Index<\/h4>\n<p>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.<\/li>\n<li>\n<h4  id=\"4-EQUIVALENT-NETWORK-CIRCUIT\">4. Equivalent Network Circuit<\/h4>\n<p>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.<\/li>\n<li>\n<h4  id=\"5-EXPORT-BOUNDARY-INFORMATION\">5. Export Boundary Information<\/h4>\n<p>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.<\/li>\n<li>\n<h4  id=\"6-EXPORT-EULERIAN-INFORMATION\">6. Export Eulerian Information<\/h4>\n<p>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.<\/li>\n<li>\n<h4  id=\"7-EXPORT-PARTICLES-AND-GEOMETRY-TO-STL\">7. Export Particles and Geometry to STL<\/h4>\n<p>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.<\/li>\n<li>\n<h4  id=\"8-EXPORT-PARTICLE-INFORMATION\">8. Export Particle Information<\/h4>\n<p>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.<\/li>\n<li>\n<h4  id=\"9-EXPORT-SPH-INFORMATION\">9. Export SPH Information<\/h4>\n<p>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.<\/li>\n<li>\n<h4  id=\"10-EXPORT-PARTICLE-TIME-SELECTION-INFORMATION\">10. Export Particle Time Selection Information<\/h4>\n<p>This script will export the selected properties of all particles within the selected Particle Time Selection process.<\/li>\n<\/ul>\n<div class=\"packages-rocky\">\n<div class=\"additional-package-rocky col-md-5\">\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><br \/>\n<a class=\"download\" href=\"https:\/\/github.com\/ansys\/rocky-modules-scripts\" target=\"_blank\" rel=\"noopener\">DOWNLOAD GENERAL SCRIPTS PACKAGE<\/a><\/div>\n<p>&nbsp;<\/p>\n<div><a class=\"download\" href=\"https:\/\/ansyshelp.ansys.com\/public\/account\/secured?returnurl=\/Views\/Secured\/corp\/v261\/en\/dem_scripts\/dem_scripts_general_scripts.html\" target=\"_blank\" rel=\"noopener\">GENERAL SCRIPTS DOCUMENTATION<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<div class=\"packages-rocky\">\n<div class=\"additional-package-rocky col-md-5\">\n<p><span style=\"font-family: 'Source Sans Pro', sans-serif;font-size: 12.0pt\"><strong>Download Rocky Student Version Add-Ins:<\/strong> The modules and scripts available for the student version.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-195963\" src=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/RH_25_15-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/RH_25_15-300x169.png 300w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/RH_25_15-768x432.png 768w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/RH_25_15-24x14.png 24w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/RH_25_15-36x20.png 36w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/RH_25_15-48x27.png 48w, https:\/\/innovationspace.ansys.com\/knowledge\/wp-content\/uploads\/sites\/4\/2023\/12\/RH_25_15.png 960w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<div><a class=\"download\" href=\"https:\/\/www.ansys.com\/academic\/students\/ansys-rocky-student-add-ins\" target=\"_blank\" rel=\"noopener\">ROCKY STUDENT VERSION ADD-INS<\/a><\/div>\n<\/div>\n<\/div>\n<div class=\"packages-rocky\">\n<div class=\"additional-package-rocky col-md-5\">\n<p><span style=\"font-family: 'Source Sans Pro', sans-serif;font-size: 12.0pt\"><strong>Access Rocky Scripts Manual:<\/strong>To learn more about each available Ready-to-use Script and how to install them, read the Rocky Scripts Manual: <\/span><\/p>\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><br \/>\n<a class=\"download\" href=\"https:\/\/ansyshelp.ansys.com\/public\/account\/secured?returnurl=\/Views\/Secured\/prod_page.html?pn=Rocky&amp;pid=Rocky&amp;lang=en\" target=\"_blank\" rel=\"noopener\">ROCKY SCRIPTS MANUAL<\/a><\/div>\n<\/div>\n<\/div>\n<div class=\"packages-rocky\">\n<div class=\"additional-package-rocky col-md-5\">\n<p><span style=\"font-family: 'Source Sans Pro', sans-serif;font-size: 12.0pt\"><strong>Access PrePost Scripting Manual:<\/strong>To learn how to use the Ansys Rocky PrePost scripting tool <\/span><\/p>\n<div><i class=\"fa fa-download\" aria-hidden=\"true\"><\/i><br \/>\n<a class=\"download\" href=\"https:\/\/developer.ansys.com\/docs\/rocky-prepost-scripting-2026-r1\/basic-usage.md\" target=\"_blank\" rel=\"noopener\">PREPOST SCRIPTING MANUAL<\/a><\/div>\n<\/div>\n<\/div>\n","protected":false},"template":"","class_list":["post-180023","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_edit_lock":["1776112886:17114"],"_edit_last":["17114"],"application_name":[""],"_application_name":["field_64a80903c8e15"],"family":[""],"_family":["field_64a809229a857"],"siebel_km_number":[""],"_siebel_km_number":["field_63ecbffce60db"],"salesforce_km_number":[""],"_salesforce_km_number":["field_63ecc018e60dc"],"km_published_date":[""],"_km_published_date":["field_64c77704499dd"],"product_version":[""],"_product_version":["field_64c776cb4fd2e"],"_bbp_forum_id":["180025"],"_bbp_topic_id":["198270"],"_bbp_author_ip":["23.218.248.144"],"_bbp_last_reply_id":["0"],"_bbp_last_active_id":["180024"],"_bbp_last_active_time":["2023-12-01 13:03:35"],"_bbp_reply_count":["0"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["0"],"_yoast_wpseo_content_score":["90"],"_yoast_wpseo_estimated-reading-time-minutes":["2"],"_yoast_wpseo_wordproof_timestamp":[""],"_oembed_26fbf59f24df488405db9cd3314e6975":["<iframe title=\"Ansys Rocky: Introduction to the Material Wizard\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/Ot83eSCpKI8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>"],"_oembed_time_26fbf59f24df488405db9cd3314e6975":["1705324185"],"_btv_view_count":["11420"],"filter_by_optics_product":["Lumerical"],"_filter_by_optics_product":["field_64fb192ba3121"],"_oembed_7bfa82c6afb30ea815b6d6bebff5165e":["<iframe title=\"Ansys Rocky: Introduction to the Material Wizard\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/Ot83eSCpKI8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>"],"_oembed_time_7bfa82c6afb30ea815b6d6bebff5165e":["1743197943"],"_aioseo_title":[null],"_aioseo_description":[null],"_aioseo_keywords":["a:0:{}"],"_aioseo_og_title":[null],"_aioseo_og_description":[null],"_aioseo_og_article_section":[""],"_aioseo_og_article_tags":["a:0:{}"],"_aioseo_twitter_title":[null],"_aioseo_twitter_description":[null],"_oembed_a46773c456fa8eba3dd8b5134a1ba1c6":["<iframe title=\"Ansys Rocky: Introduction to the Material Wizard\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/5ckttBhpDCo?list=PL0lZXwHtV6Omiv62KRuPbnZ4oBK8BmDit\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>"],"_oembed_time_a46773c456fa8eba3dd8b5134a1ba1c6":["1765389773"]},"test":"solution"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/180023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":82,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/180023\/revisions"}],"predecessor-version":[{"id":198270,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/180023\/revisions\/198270"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=180023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}