Listing of Material Library.

This is a listing of all the elements in all the materials that are included in the ARMI material library. Many of the materials in this library are academic in quality and contents. Some have temperature dependent properties, but some don’t. You can provide your own proprietary material properties via a plugin.

More info about the materials here: armi.materials.

Mass fractions in the ARMI material library
import numpy as np
import matplotlib.pyplot as plt

from armi import configure, materials
from armi.nucDirectory import nuclideBases

MAX_Z = 98  # stop at Californium

configure(permissive=True)

materialNames = []
mats = list(materials.iterAllMaterialClassesInNamespace(materials))
numMats = len(mats)

zVals = np.zeros((numMats, MAX_Z))

for mi, matCls in enumerate(mats):
    m = matCls()
    materialNames.append(m.name)
    for nucName, frac in m.massFrac.items():
        nb = nuclideBases.byName[nucName]
        idx = mi, nb.z - 1
        try:
            zVals[idx] += frac
        except IndexError:
            # respect the MAX_Z bounds
            pass

fig, ax = plt.subplots(figsize=(16, 12))
im = ax.imshow(zVals, cmap="YlGn")

ax.set_xticks(np.arange(MAX_Z))
ax.set_yticks(np.arange(numMats))
ax.set_xticklabels(np.arange(MAX_Z) + 1, fontsize=6)
ax.set_yticklabels(materialNames)
ax.set_xlabel("Proton number (Z)")
ax.grid(alpha=0.2, ls="--")

ax.set_title("Mass fractions in the ARMI material library")
plt.show()

Total running time of the script: ( 0 minutes 0.502 seconds)

Gallery generated by Sphinx-Gallery