/atomistic-skills:mat-melting-pointfrom Atomistic Skills
Calculates the thermodynamic melting temperature of a material using the solid-liquid interface (coexistence) method with molecular dynamics simulations.
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:mace.run_mdis therun_mdtool of themaceserver (mcp__mace__run_md, ormcp__plugin_atomistic-skills_mace__run_mdwhen 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 mlip python -m src.mcp_server.cli mace run_md key=value relax_structure key=value ${CLAUDE_SKILL_DIR}/../../venv/run cpu python -m src.mcp_server.cli base visualize_structure key=value
To determine the thermodynamic melting temperature ($T_m$) of a bulk material by equilibrating a solid-liquid interface in an NVE ensemble.
Background Research:
Phase Preparation:
create_supercell.py.${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/create_supercell.py [input_structure.cif] [solid_supercell.cif] --min_length 20.0
mace.run_md(
structure_data="solid_supercell.cif",
temperature=2000, # REPLACE with T_melt from Step 1
ensemble="npt",
steps=5000,
timestep=2.0, # Use 2.0 fs for most inorganic systems
pressure=1.0, # Apply positive pressure (1-2 bar) to prevent evaporation
pressure_mask=[1, 0, 0], # REQUIRED: Must match the stacking axis (e.g., x-axis)
output_dir="melt_stage"
)
base.visualize_structure tool to generate an image of the final liquid.cif structure (or trajectory) and have the VLM visually inspect the image to confirm that the long-range crystalline order has been destroyed and the cell is completely melted. If it has not, you must run the MD with a higher temperature or for more steps.Interface Creation: Use create_interface.py to concatenate the two phases.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/create_interface.py solid.cif liquid.cif --axis 0 --output interface.cif
Relaxation: Perform an ionic relaxation using the relax_structure MCP tool with relax_cell=True. This allows the unit cell to adjust (shrink/expand) to match the density, and remove the interface energy created by stacking the two cells.
mace.relax_structure(structure_data="interface.cif", relax_cell=True)
Phase Verification: Before running production MD, verify solid-liquid coexistence in all structures.
First, extract reference atomic features:
# (or venv/mlip)
# Extract from pure solid - use explicit output path
mace.predict_atomic_features(
structure_data="solid_supercell.cif",
output_path="<research_dir>/solid_features.json"
)
# Extract from pure liquid - use explicit output path
mace.predict_atomic_features(
structure_data="liquid_supercell.cif",
output_path="<research_dir>/liquid_features.json"
)
Then verify phases:
# Solid should be ~100% solid
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/check_phase.py <research_dir>/solid_features.json \
--solid_features <research_dir>/solid_features.json \
--liquid_features <research_dir>/liquid_features.json
# Liquid should be ~100% liquid
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/check_phase.py <research_dir>/liquid_features.json \
--solid_features <research_dir>/solid_features.json \
--liquid_features <research_dir>/liquid_features.json
# Interface should show ~50% solid/liquid coexistence
# (Requires predicting features for the relaxed interface first)
mace.predict_atomic_features(
structure_data="interface_relax/relaxed_structure.cif",
output_path="<research_dir>/interface_features.json"
)
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/check_phase.py <research_dir>/interface_features.json \
--solid_features <research_dir>/solid_features.json \
--liquid_features <research_dir>/liquid_features.json
Expected:
If interface lost coexistence: Adjust melting temperature or relaxation parameters.
Thermalization (Equilibration): Start from the 0 K relaxed structure and run a short NVT thermalization at the expected $T_m$ to properly distribute kinetic and potential energy.
mace.run_md(
structure_data="interface_relax/relaxed_structure.cif",
temperature=933, # Target expected Tm
ensemble="nvt",
steps=5000,
timestep=2.0,
output_dir="thermalization_md"
)
Production: Run an NVE MD simulation starting from the full .traj file of the thermalized structure with the monitor=True parameter. Passing the .traj file is critical because it preserves the velocities from the NVT run, providing a continuous MD sequence.
bash mace.run_md( structure_data="thermalization_md/<formula>_<temp>K_nvt.traj", # Pass .traj to preserve velocities temperature=933, ensemble="nve", steps=100000, timestep=2.0, monitor=True, monitor_type="melting", output_dir="production_md" )
Auto-Termination: The integrated monitor will:
mace.run_md will return once the simulation stops (either by finishing all steps or by monitor termination).Phase Validation: Verify that the solid and liquid phases still coexist at the end of the simulation. First, predict the atomic features of the final structure:
mace.predict_atomic_features(
structure_data="production_md/final_structure.cif",
output_path="production_md/final_structure_features.json"
)
Then, classify the phase:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/check_phase.py production_md/final_structure_features.json \
--solid_features solid_features.json \
--liquid_features liquid_features.json
Analysis: If coexistence is verified, calculate $T_m$ by averaging the temperature over the last 5 ps of the simulation.
Creating a solid-liquid interface for Aluminum:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/create_interface.py Al_solid.cif Al_liquid.cif --axis 0 --output Al_interface.cif
mlip for MACE and MatGL, fairchem for FairChem). Ensure the scripts are run within the correct environment for the chosen model.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/NaCl/README.md (opens in a new tab)examples/NaCl/coexistence_structure.png (opens in a new tab)examples/NaCl/interface_structure.png (opens in a new tab)examples/NaCl/nvt_structure.png (opens in a new tab)examples/NaCl/temperature_profile.png (opens in a new tab)scripts/check_phase.py (opens in a new tab)scripts/create_interface.py (opens in a new tab)scripts/create_supercell.py (opens in a new tab)scripts/get_features.py (opens in a new tab)scripts/monitor_melting.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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