Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Final Project: Sequence-Dependent Structure in Lennard-Jones Polymers Using OpenMM

Bacgrkound and Motivation

In many soft-matter and biological systems, the arrangement of interactions along a polymer chain—i.e., the sequence—has profound effects on its structure and function. This is especially important in:

  • Synthetic block copolymers (e.g., AB diblocks),

  • Intrinsically disordered proteins with patchy stickers/spacers,

  • Engineered self-assembling materials.

In this project, you’ll use OpenMM to simulate single polymers with different sequences of monomer types (A and B), which interact via Lennard-Jones potentials. You’ll explore how sequence patterning affects polymer compactness, shape, and dynamics.

Project Objective

Simulate coarse-grained LJ polymers with two types of monomers (A and B), each with different pairwise attractions. Compare how different sequences (random, alternating, blocky, etc.) affect the polymer’s conformation and dynamics.

Tasks

1. Set Up Polymer Model in OpenMM

  • Build a linear polymer of N=20100 N = 20\text{–}100 beads.

  • Assign each bead a type (A or B) based on a user-defined sequence.

  • Connect beads with harmonic bonds:

    CustomBondForce("0.5 * K * (r - r0)^2")

2. Define Nonbonded Interactions

  • Use a CustomNonbondedForce or NonbondedForce to define Lennard-Jones interactions:

    V(r)=4εij[(σr)12(σr)6]V(r) = 4\varepsilon_{ij} \left[ \left( \frac{\sigma}{r} \right)^{12} - \left( \frac{\sigma}{r} \right)^6 \right]
  • Choose interaction strengths:

    • εAA=1.0 \varepsilon_{AA} = 1.0

    • εBB=0.5 \varepsilon_{BB} = 0.5

    • εAB=0.1 \varepsilon_{AB} = 0.1 (weak attraction)

  • Ignore interactions between directly bonded neighbors (using an exclusion list).

Try Different Sequences

Examples:

  • Homopolymer AAAAAA…

  • Alternating ABABAB…

  • Random AB

  • Block copolymer (e.g., 10 A’s followed by 10 B’s)

  • Patterned repeats (e.g., ABBA ABBA…)

4. Run Simulations

  • Langevin dynamics at fixed temperature (e.g., T=0.5 T = 0.5 , γ=1.0 \gamma = 1.0 )

  • Use implicit solvent (no cutoff)

  • Equilibrate and run for 105 10^5 106 10^6 steps

  • Save trajectories for analysis

5. Analyze Polymer Structure

  • Measure radius of gyration Rg R_g

  • Measure end-to-end distance

  • Visualize trajectories (e.g., using PyMol or nglview)

  • Plot Rg R_g vs. sequence or interaction strength

Optional

  • Compute contact maps from trajectory (binary contact matrix based on distance cutoff)

  • Compare collapse temperature for different sequences (simulate cooling)

  • Add angle/bending terms to make semiflexible chains

  • Simulate multiple polymers and study coacervation (condensate-like behavior)

Learning Goals**

  • Understand how sequence encodes polymer structure

  • Practice building custom force fields in OpenMM

  • Learn basic trajectory analysis: Rg R_g , Ree R_{ee} , contact maps

  • Explore relationships between interactions, temperature, and collapse

Starter Parameters

ParameterValue
N N 30–50
σ \sigma 1.0
εAA \varepsilon_{AA} 1.0
εBB \varepsilon_{BB} 0.5
εAB \varepsilon_{AB} 0.1–0.3
Temperature T T 0.5–1.0
Time step0.01–0.02 ps