DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a short charge-informed molecular dynamics simulation with Chgnet

Drive an ASE molecular dynamics run with the pretrained model on a crystal.

Short answer: Install with pip install chgnet; then load the structure and model as in the README example; build MolecularDynamics with ensemble="nvt", a temperature, a timestep, trajectory="md_out.traj" and logfile="md_out.log". All steps.

Who it is forA battery or ceramics researcher who wants to see atoms move at high temperature without DFT cost.

The problemAb initio molecular dynamics is too expensive for quick exploration.

The outcomeA trajectory file and log from an NVT run at the temperature you choose.

What you need first

  • Python and pip
  • A crystal structure file such as a CIF
  • pymatgen for loading structures
  • CPU, NVIDIA GPU, Intel GPU or Apple silicon (device picked automatically)

Steps

  1. Install with pip install chgnet
  2. Load the structure and model as in the README example
  3. Build MolecularDynamics with ensemble="nvt", a temperature, a timestep, trajectory="md_out.traj" and logfile="md_out.log"
  4. Start it with md.run(50), a 0.1 ps simulation in the README example
  5. Open md_out.traj and md_out.log to inspect the run

Prompt for your agent

Using CederGroupHub/chgnet, run `MolecularDynamics` with ensemble nvt on my CIF at <temperature> K, timestep 2, then call `md.run(50)` and summarise md_out.log.

Caveat. The README notes MatPES-trained models in MatGL are expected to do better for non ground state work like molecular dynamics.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for CederGroupHub/chgnet and "Run a short charge-informed molecular dynamics simulation"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer