/atomistic-skills:mat-diffusion-analysisfrom Atomistic Skills
Calculates ionic diffusion coefficients and activation energy from Molecular Dynamics trajectories using pymatgen. Useful for materials scientists analyzing transport properties via Arrhenius fitting.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
To accurately calculate the ionic diffusivity ($D$) and activation energy ($E_a$) of specific atomic species in a material using Molecular Dynamics (MD) trajectories and the Arrhenius relation: $D(T) = D_0 \exp\left(-\frac{E_a}{k_B T}\right)$.
MD Preparation: Run NVT or NPT MD simulations at multiple temperatures (typically 4-6 points between 600K and 1200K).
run_md tool from a relevant potential skill (e.g., mace or matgl).structure_data to run multiple MD simulations concurrently via the MCP tool.run_md tool natively supports this via the supercell_min_length argument (defaults to 10.0 Å) which performs orthogonal expansion automatically.diffusion monitor (see mat-md-monitors) to automatically stop simulations once the transport properties have converged.
mace.run_md(
structure_data=["candidates/A.cif", "candidates/B.cif"],
temperature=600,
supercell_min_length=10.0,
monitor=True,
monitor_type="diffusion",
monitor_params={"specie": "Li", "threshold": 0.05, "check_interval_ps": 5.0}
)
Note: If the diffusion monitor triggers an early stop, it will automatically save the diffusion_{specie}.json and msd_{specie}.png directly into the trajectory output directory. You can skip Step 2 and proceed directly to Step 3 for any trajectories that converged early.Individual Diffusivity Analysis: For each temperature directory that did not hit the early stopping criteria, run the analysis script to extract the diffusivity and Mean Square Displacement (MSD).
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/analyze_diffusion.py \
results/md_600K/trajectory.traj \
--species Li \
--temperature 600 \
--ignore_ps 5.0 \
--output_dir results/md_600K
--ignore_ps: Time to skip for equilibration. Default is 5.0 ps..log file if present.Activation Energy Fitting: Once all individual results are generated, use the fitting script to combine data and perform a weighted Arrhenius fit.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/calculate_activation_energy.py results/
md_*K/diffusion_results.json patterns..traj format.ignore_ps period.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/LGPS/LGPS_221.cif (opens in a new tab)examples/LGPS/README.md (opens in a new tab)examples/LGPS/arrhenius_plot.png (opens in a new tab)examples/LGPS/msd_Li_1000K.png (opens in a new tab)examples/LGPS/msd_Li_600K.png (opens in a new tab)examples/LGPS/msd_Li_700K.png (opens in a new tab)examples/LGPS/msd_Li_800K.png (opens in a new tab)examples/LGPS/msd_Li_900K.png (opens in a new tab)scripts/analyze_diffusion.py (opens in a new tab)scripts/calculate_activation_energy.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters./chem-db-qmofQuery the Quantum MOF (QMOF) database via Materials Project's MPContribs platform for DFT-computed properties (bandgap) and optimized crystal structures of Metal-Organic Frameworks./chem-db-spectraSearch and download experimental InfraRed (IR), Mass spectra, and UV-Vis spectra data (JCAMP-DX format) for molecules./chem-dft-orca-advanced-calculationWrite and run custom ORCA input files for advanced electronic structure methods or settings not available through the SCINE wrapper, including multi-reference methods, excited states, relativistic effects, advanced SCF, NMR/EPR, and more.Other plugins' skills for the same job