ACT-CMS Lesson Portal

Introduction to AI-Molecular Dynamics

A seven-lesson module introducing molecular dynamics, atomistic model construction, visualization, and responsible AI/LLM-assisted MD workflows.

Programming Skill: Beginner
Primary Course: Materials Science
Also for: Physical Chemistry, Computational Chemistry, Foundational Module
Format: Multi-Part Module
Authors: Prof. Wenwu Xu
Estimated Time: 8-12 hours
Piloted with: Mixed Undergraduate/Graduate
python molecular-dynamics materials-science lammps atomsk ovito visualization ai llm

Overview

This multi-part module introduces students to molecular dynamics (MD) as a practical computational method for studying atomistic systems. Students begin with the basic MD loop, simple potentials, numerical integration, and trajectory analysis, then move toward hands-on materials modeling workflows using Python, LAMMPS, Atomsk, and OVITO.

The module also introduces artificial intelligence and large language models in the context of MD. Students learn where AI tools can help with planning, scripting, analysis, and interpretation, while also practicing validation habits needed to avoid physically incorrect or technically fragile simulation workflows.

Scientific Learning Objectives

  • Explain the core molecular dynamics workflow from initialization to trajectory analysis.
  • Relate forces, potentials, integration schemes, and thermodynamic ensembles to atomistic simulations.
  • Construct and modify crystalline atomistic structures for materials modeling.
  • Interpret simulation outputs using visualization and structure-analysis workflows.
  • Evaluate appropriate and inappropriate uses of AI and LLMs in molecular dynamics research.

Cyberinfrastructure Learning Objectives

  • Run and modify Jupyter notebooks for molecular simulation learning activities.
  • Write basic Python code for simple MD integration and analysis tasks.
  • Generate and interpret introductory LAMMPS input scripts.
  • Use Atomsk command patterns to create atomistic structures for simulation.
  • Use OVITO workflows to visualize and analyze atomistic trajectory data.
  • Validate AI-generated scripts, summaries, and modeling suggestions against documentation and simulation output.

Prerequisites

Scientific Prerequisites:

  • Introductory chemistry or materials science.
  • Basic familiarity with atomic structure, bonding, force, energy, and simple plots.
  • No prior experience with production molecular dynamics software is required.

Programming Prerequisites:

  • Basic Python syntax, including variables, loops, functions, and arrays.
  • Basic familiarity with running cells in Jupyter notebooks.

Lesson Sequence:

Complete these lessons first:

Course Materials

Introduction to Molecular Dynamics

Introduce the MD workflow using forces, potentials, numerical integration, and simple trajectory analysis.

Introduction to AI and LLMs for Molecular Dynamics

Introduce AI, machine learning, and large language models as tools for supporting MD planning, scripting, analysis, and review.

Python MD From Scratch

Build a minimal molecular dynamics engine in Python to expose positions, velocities, pair forces, integration, and energy checks.

LAMMPS Fundamentals

Learn the structure of LAMMPS input scripts and connect simulation commands to physical modeling choices.

Atomsk Structure Building

Use Atomsk concepts and command patterns to create crystal structures, transform simulation cells, and prepare LAMMPS data files.

OVITO Visualization

Load and analyze LAMMPS output in OVITO using visualization, selection, filtering, and structure-analysis workflows.

Defects and Materials Modeling

Apply LAMMPS, Atomsk, and OVITO to practical materials modeling tasks involving defects, surfaces, relaxation, and atomistic mechanisms.

AI-Assisted MD Workflows

Use AI tools to plan simulations, draft scripts, summarize outputs, and accelerate analysis while validating each result.

Student Repository

Complete Student Materials

Download or clone the complete repository with all notebooks, datasets, and supporting files.

View Repository Launch on ChemCompute

Instructor Materials

Complete Instructor Package

Solutions for all notebooks, teaching notes, assessment rubrics, and additional examples.

Instructor Resources

Requires instructor verification. Request access if you don't have permission.

Instructor Notes

This module can be used as a complete introduction to AI-assisted molecular dynamics or as selected lessons embedded into a computational materials science, physical chemistry, or molecular simulation course.

The first two notebooks can be run with standard Python scientific packages. Later lessons introduce workflows that benefit from local installations of LAMMPS, Atomsk, and OVITO, although the notebooks also provide script-generation and interpretation exercises that can be discussed without a full production MD setup.

Emphasize validation throughout the module. Students should treat AI-generated scripts, explanations, and analysis summaries as drafts that must be checked against physical assumptions, software documentation, and reproducible simulation output.

Platform Requirements

Google Colab

No installation required. All dependencies are installed automatically when you run the notebooks.

  • Runs entirely in your web browser
  • Free Google account required
  • All required packages installed inline
  • Works on any device with internet
  • GPU acceleration available for computational tasks

ChemCompute

This module is compatible with ChemCompute - a specialized platform for computational chemistry education.

  • Access using your institution account
  • Pre-configured chemistry software environment
  • No personal setup required
  • Includes computational molecular science packages (Psi4, OpenMM)