/atomistic-skills:mat-dielectric-responsefrom Atomistic Skills
Calculates frequency-dependent dielectric response of crystalline materials using atomate2 OpticsMaker and VASP. Handles structure input, workflow execution, and post-processing of optical spectra.
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.
[!NOTE] Steps written
server.toolare MCP tool calls:base.search_materials_project_by_formulais thesearch_materials_project_by_formulatool of thebaseserver (mcp__base__search_materials_project_by_formula, ormcp__plugin_atomistic-skills_base__search_materials_project_by_formulawhen installed as a plugin). Without a connected server, run the same tools from the shell. Tools named in one command share a process, so a model loaded byload_modelstays loaded:${CLAUDE_SKILL_DIR}/../../venv/run cpu python -m src.mcp_server.cli base search_materials_project_by_formula key=value ${CLAUDE_SKILL_DIR}/../../venv/run cpu python -m src.mcp_server.cli atomate2 run_atomate2_vasp_calculation key=value
To calculate the frequency-dependent dielectric response of a crystalline material using atomate2's OpticsMaker and VASP. This includes:
This skill is based on atomate2's optics workflow, which is a flow maker analogous to the band structure workflow.
Start with a well-relaxed crystalline structure in CIF or POSCAR format. You can:
base.search_materials_project_by_formula tool[!IMPORTANT] The optics workflow assumes a good relaxed bulk structure. Relax the structure first if needed; poor structures will give unreliable optical spectra.
Use the atomate2 MCP tool with calculation_type="optics":
atomate2.run_atomate2_vasp_calculation(
structures_path="structure.cif", # Input structure file
output_dir="./optics_results", # Output directory
calculation_type="optics", # Atomate2 optics workflow
preset_type="omat", # VASP preset (omat, mp, matpes-pbe, matpes-r2scan)
execution_mode="remote", # "local" or "remote"
remote_settings={ # Required for remote execution
"project": "<your_jobflow_project>",
"worker": "<your_worker>"
}
)
The workflow automatically:
If you need to tune optics settings such as NBANDS, NEDOS, or CSHIFT, pass them through config:
atomate2.run_atomate2_vasp_calculation(
structures_path="structure.cif",
output_dir="./optics_results",
calculation_type="optics",
preset_type="omat",
config={
"NBANDS": 64,
"NEDOS": 2000,
"CSHIFT": 0.1,
},
execution_mode="local"
)
After the calculation completes, parse the results and generate a dielectric-response plot:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/plot_dielectric.py \
optics_results \
--output dielectric_function.png \
--mode average
The script will:
vasprun.xml(.gz) from the atomate2 optics jobFor anisotropic systems, plot the diagonal tensor components separately:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/plot_dielectric.py \
optics_results \
--output dielectric_components.png \
--mode diagonal
If you want to inspect the raw VASP outputs directly, check:
vasprun.xml or vasprun.xml.gzOUTCARSearch OUTCAR for:
frequency dependent IMAGINARY DIELECTRIC FUNCTIONfrequency dependent REAL DIELECTRIC FUNCTIONMACROSCOPIC STATIC DIELECTRIC TENSORIf you need the static dielectric tensor rather than the frequency-dependent spectrum, search OUTCAR for MACROSCOPIC STATIC DIELECTRIC TENSOR.
# 1. Prepare a relaxed SiC structure
# 2. Run optics workflow
atomate2.run_atomate2_vasp_calculation(
structures_path="SiC.cif",
output_dir="./SiC_optics",
calculation_type="optics",
preset_type="omat",
config={
"NBANDS": 64,
"NEDOS": 2000,
"CSHIFT": 0.1,
},
execution_mode="local"
)
# 3. Plot results
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/plot_dielectric.py \
SiC_optics \
--output SiC_dielectric.png \
--mode average
See examples/ for a SiC dielectric-response tutorial and example plot.
OpticsMaker workflow for the frequency-dependent dielectric function.ALGO=CHI local-field corrections are not part of the atomate2 optics workflow documented here.cpucpuNBANDS until the optical spectrum is converged over the energy range of interestNEDOS, CSHIFT, and k-point densityAuthor: ChazzBM3 Contact: [email protected]
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.Other plugins' skills for the same job