2025Molecular Dynamics Simulation

3D Protein

A GPU-accelerated protein simulation built with NVIDIA Warp, with interactive 3D visuals in Polyscope.

How proteins move matters a lot for drug discovery and structural biology. I built a coarse-grained molecular dynamics pipeline that uses NVIDIA Warp for fast, differentiable GPU physics and Polyscope for real-time 3D visuals.

Each amino acid is a single bead, and motion follows overdamped Langevin dynamics with harmonic bonds, Lennard-Jones van der Waals forces, and Coulomb electrostatics. I used the tumor suppressor protein p53 (PDB: 1TUP) as the test case. It runs in real time, and the physics engine stays separate from the visualization.

01

Structure Parsing & System Initialization

Parsed protein structures from CIF files and turned them into a coarse-grained model with one bead per amino acid. Then I mapped out chain topology, bond connectivity, and residue properties (hydrophobic, polar, charged) to pick the right force field parameters.

02

GPU-Accelerated Simulation

Ran overdamped Langevin dynamics with custom NVIDIA Warp kernels for forces and time integration. Harmonic bonds hold the chain together, a Lennard-Jones 12-6 potential handles van der Waals interactions, and Coulomb forces act between charged residues. CUDA keeps it real-time, with automatic CPU fallback.

03

Interactive Visualization & Export

Built the Polyscope viewer for exploring the structure, comparing before and after, and playing back trajectories. It also exports USD files for modern 3D graphics pipelines, and since the engine is separate from the viewer, either one can be used on its own for research.

Wrote custom GPU kernels in NVIDIA Warp for harmonic bonds, Lennard-Jones potentials, and Langevin integration, getting real-time simulation on both CUDA and CPU.

Kept the physics engine and the Polyscope viewer separate, so each can be used on its own, trajectories can be exported to USD, and results are easy to reproduce.

Built interactive visuals with before/after structure comparisons, animated trajectory playback, and chain topology analysis, using p53 (PDB: 1TUP) as the demo.

GPU kernels only help if the physics model is simple enough to stay interactive. Keeping the simulation separate from the viewer made it so much easier to experiment with forces without rewriting everything.