Granta MI (Beta)

This tutorial shows you how to use the Granta MI (Beta) node to export materials data from Granta MI to be analysed as designs within the optiSLang environment.

Granta MI is the Ansys solution for materials data management. If you have data stored in Granta MI, you can import this data into optiSLang for analysis. For example, you can run multiple simulations to select the best material.

Task Description

This tutorial demonstrates how to do the following:

  • Create a material.tsv file from the Granta MI database

  • Add the Granta MI node to an optiSLang project

  • Use the Granta MI node in optiSLang

Prerequisites

  • Ensure you have access to a Granta MI instance.

  • Ensure the scripting toolkit installed by optiSLang is version 3.2 and that the Granta MI version is 2023 R1 or later, with interface version 22/04.

    Granta MI 2022 R2 or earlier versions require scripting toolkit version 3.1.

Preparation

Before you start with optiSLang, you will create the material.tsv file that is filled from the Granta MI database.

  1. Create a new text file.

  2. Rename the text file to material.tsv. (Ensure that the extension changes and is not saved as material.tsv.txt).

  3. Open Granta MI.

  4. Select a record and click the Add to list   button to add it to the existing list.

  5. Add as many records to the list as needed.

  6. Click the Export the list to clipboard button below the Record List to copy the record identifiers to the clipboard.

  7. Copy the information in the Copy To Clipboard dialog.

  8. Paste the information into the material.tsv file.

  9. Save the material.tsv file.

Tutorial Steps

To set up and run the tutorial, perform the following steps:

Create a New Project

  1. Start optiSLang.

  2. Create a new empty project.

Use the Granta MI (Beta) Node

  1. From the Systems > Algorithms pane, drag the Sensitivity node to the Scenery pane and let it drop.

  2. From the Process chain elements > Add-Ins pane, drag the Granta MI node into the Sensitivity node.

  3. In the Initialize Integration dialog, click the OK button to accept the defaults.

  4. From the Process chain elements > Integrations pane, drag the Python node into the Sensitivity node.

  5. In the Initialize Integration dialog, click the OK button to accept the defaults.

  6. Double-click the Granta MI node.

  7. In the Settings tab, enter your Granta MI server address.

  8. In the Parameterization tab, load the material.tsv file into the Granta MI node by clicking the folder icon   next to the file field and selecting the materials.tsv file.

    When the materials file is loaded, Component 1 and Component 2 that were created in Granta MI appear as parameters.

Explore the Granta MI (Beta) Node

  1. In the output section, expand each component to see the Attributes and Exporters.

  2. Select the desired attribute(s) as a Response.

  3. Select the appropriate Exporters in the Output slots.