Skip to content

Create a Materials Set

1. Introduction

Save materials to the account and group them in a materials set, ordered, as a nudged elastic band (NEB) path needs, or unordered, as for a convex hull or an equation of state. The materials come from Materials Designer or from another notebook, such as Create Initial and Final Materials.

2. Open the notebook

In JupyterLite, the notebook is made/utils_create_material_set.ipynb, entry 6.2.1 "Create material set (ordered or unordered)" of made/Introduction.ipynb.

3. Set the parameters

Cell 1.2 holds the parameters:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Auth / organization
ORGANIZATION_NAME = None

# Materials set on the platform (use this name in workflow notebooks)
MATERIAL_SET_NAME = "My Materials Set"
# True = path order via inSet.index (NEB); False = bag of members (hull, EOS, …)
IS_ORDERED = True

# Subfolder under uploads/ to load materials from (written there by a builder notebook via
# set_materials(materials, folder_path=f"uploads/{SUBFOLDER_NAME}")).
# None = use Input Materials (outer runtime), falling back to the uploads/ root.
SUBFOLDER_NAME = None  # e.g. "my_materials"

ORGANIZATION_NAME selects the account that owns the materials and the set.

MATERIAL_SET_NAME is the name of the set; an existing set with that name is reused. IS_ORDERED = True keeps the order of the materials, as a path needs; False makes an unordered set.

SUBFOLDER_NAME loads the materials from that subfolder of uploads, in the order of their file names; with None, the notebook takes the input materials.

4. Run and read the result

Run the notebook with Run > Run All and log in when it asks, as in Authentication in JupyterLite. The notebook prints and shows the materials it loaded, saves each to the account, reusing a material with the same structure, and prints the name of the set as MATERIAL_SET = '<name>', the value the simulation notebooks take.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for creating a material set can be accessed below.