科研 Skill

粗粒化分子动力学模拟

coarse-grained-md

Covers coarse-grained molecular dynamics: mapping atomistic structures to CG beads, parameterizing Martini/IBI/force-matching force fields. Use when atomistic timescales are too short.

发布者 Codar安全审核通过v0.1.0更新于 2026-11-18

SKILL.md

Coarse-Grained MD

Description

This skill covers coarse-grained (CG) molecular dynamics: mapping atomistic structures to CG bead representations, parameterizing CG force fields (Martini 3, iterative Boltzmann inversion, force matching), running CG simulations in GROMACS and LAMMPS, backmapping CG configurations to atomistic resolution, and validating CG models against atomistic and experimental reference data. CG-MD replaces groups of heavy atoms with single interaction sites, reducing degrees of freedom by 2–10× and enabling simulations on spatial scales of 10–1000 nm and temporal scales of microseconds to milliseconds. Invoke this skill when the relevant length or time scale exceeds what all-atom MD can access within the computational budget, or when high-throughput screening of molecular assembly, polymer morphology, lipid bilayer properties, or protein–membrane interactions is required.

Domain Context

Coarse-graining is not simply a faster simulation; it is a change of the physical model. A CG bead represents 2–10 heavy atoms and the associated hydrogen atoms as a single spherical interaction site with effective mass, position, and interaction parameters. The reduction in degrees of freedom comes at a cost:

  • Loss of chemical detail: CG representations cannot distinguish stereoisomers, tautomers, or conformations at the bond-angle level. The CG bead type is the resolution limit of the chemical identity.
  • Modified dynamics: CG potentials are free-energy surfaces, not potential energy surfaces. The smoother landscape increases conformational sampling but accelerates dynamics beyond the true atomistic rates. The CG time scale is related to the atomistic time scale by a system-dependent, temperature-dependent, and observable-dependent factor (typically 4–8× for Martini water). [EXPERT REVIEW NEEDED]
  • Non-uniqueness of the mapping: Many different atom-to-bead assignments are consistent with the same molecular structure. Different mappings produce different CG potentials, different dynamics, and potentially different thermodynamic observables. There is no uniquely correct CG representation.
  • Transferability: CG potentials fitted to reproduce one thermodynamic state (temperature, pressure, composition) may not transfer to another. Martini 3 is parameterized for biomolecules near 310 K, 1 bar, with explicit CG water. Using it at 500 K or with implicit solvation is extrapolation.
  • Bottom-up vs. top-down: Bottom-up CG potentials (IBI, force matching, relative entropy) are derived systematically from all-atom reference simulations. They reproduce the atomistic structural and thermodynamic reference data at the parameterization state point but may have limited transferability. Top-down CG potentials (Martini) are parameterized to reproduce experimental thermodynamic data (partitioning, phase behavior, structure) and are more transferable across compositions but less precise for a specific system.

The two-level simulation strategy is the most productive use of CG-MD: use CG-MD to generate equilibrated configurations and explore large-scale morphology, then backmap to all-atom resolution and refine with short AA-MD runs before computing detailed structural or thermodynamic observables.

When to Use This Skill

  • Lipid bilayer composition and phase behavior studies (100–10,000 lipid systems) where microsecond equilibration is required and Martini 3 parameters exist for all components.
  • Polymer morphology (block copolymer phase separation, polymer crystallization, entanglement networks) where the relevant length scale (Rg, lamellar period, mesh size) greatly exceeds the monomer size.
  • Protein–membrane interactions, including insertion, aggregation, and lipid sorting, where both protein and membrane must be modeled at relevant scales simultaneously.
  • Self-assembly of amphiphiles, surfactants, peptides, or supramolecular structures in the 10–500 nm range.
  • Initial system assembly and equilibration before back-mapping to all-atom for free-energy calculations (providing an equilibrated starting structure is faster in CG).
  • High-throughput screening of molecular architectures, compositions, or sequence variants where the ranking of multiple candidates by structural or thermodynamic proxy properties is more important than high-accuracy absolute values.

When Not to Use This Skill

  • When atomistic chemical detail is required. Proton transfer, tautomerism, stereochemistry, specific hydrogen-bonding networks, or rare functional-group interactions are erased by CG mapping. For enzymatic mechanisms or ligand binding affinity at > 1 kJ/mol accuracy, all-atom MD is required.
  • When quantitative kinetics are needed. CG dynamics are faster than real dynamics by a factor that is system- and observable-dependent and cannot be determined a priori for a new system. Rate constants, diffusion coefficients, and relaxation times from CG trajectories are qualitatively indicative but not quantitatively predictive unless the time-scaling factor has been validated for the specific observable. [EXPERT REVIEW NEEDED]
  • When Martini parameters do not exist for a key component. Running Martini with a hand-assigned bead type for an unparameterized molecule is not equivalent to a validated Martini simulation. Use bottom-up CG or all-atom MD instead.
  • When the system is below the CG resolution. For systems < 5 nm (small molecules in solution, peptide monomers, single-strand DNA) CG-MD offers little advantage over all-atom MD and introduces unnecessary approximation.
  • When the free-energy surface must be reproduced quantitatively at the all-atom level. CG potentials are effective potentials that reproduce structural distributions but not necessarily the free-energy landscape with sub-kT accuracy. For ABFE and RBFE calculations, all-atom FEP is required.

Core Concepts

  • CG bead / interaction site: A single particle representing 2–10 heavy atoms (and associated H). Characterized by mass (sum of mapped atoms), position (center of mass or geometric center of mapped atoms), and interaction type (bead type in Martini, or fitted LJ parameters in bottom-up CG). The bead position is not uniquely defined — center-of-mass and geometric-center mappings give different CG configurations.
  • Mapping operator: The function M(r_AA) = r_CG that takes all-atom positions to CG positions. For center-of-mass mapping: r_CG = Σᵢ mᵢ rᵢ / Σᵢ mᵢ over atoms i in the bead. The mapping operator determines which atomistic configurations are indistinguishable at the CG level.
  • Martini force field: A top-down CG force field parameterized to reproduce experimental free energies of transfer (oil/water partitioning, solvation free energies) and phase behavior. Martini 3 (2021) uses four main bead types (Tiny, Small, Regular, Big) with Q (charged), P (polar), N (intermediate), and C (apolar) subtypes, giving 18 interaction classes. Martini beads interact via Lennard-Jones (nonbonded) and harmonic bonds/angles/dihedrals (bonded). Martini 3 is the current recommended version for proteins, lipids, carbohydrates, and small molecules. Martini 2 is legacy but still widely used for membrane simulations.
  • Iterative Boltzmann inversion (IBI): A bottom-up method that iteratively adjusts a tabulated pair potential V(r) to reproduce a target pair distribution function g_target(r) from all-atom MD. Starting from V₀(r) = −k_B T ln g_target(r), the potential is updated: V_{n+1}(r) = V_n(r) + k_B T ln(g_n(r)/g_target(r)). Converges when g_CG(r) ≈ g_target(r) to within tolerance. IBI reproduces the structural reference exactly at the parameterization state point but may be unphysical at different temperatures or concentrations (state-point transferability is poor).
  • Force matching (multiscale coarse-graining, MS-CG): Minimizes the mean-square force residual between CG forces and the all-atom forces projected onto the CG mapping: min_{V_CG} Σ_t Σ_I |F_I^CG - Σᵢ∈I fᵢ^AA|². The CG forces are obtained by summing and projecting all-atom forces within each bead. Force matching systematically satisfies the variational principle for CG force fields and is exact in the limit of an infinitely flexible basis. Computationally expensive: requires forces from the all-atom reference at many configurations.
  • Relative entropy minimization: Minimizes the Kullback-Leibler divergence between the all-atom Boltzmann distribution and the CG distribution: S_rel = ⟨ln(P_AA/P_CG)⟩_AA. This is equivalent to maximum likelihood estimation of the CG potential. For pairwise CG potentials, it gives the same result as IBI in the infinite-data limit; in practice it is more numerically stable and generalizes to non-pairwise CG force fields.
  • Elastic network model (ENM): A simplified protein CG model where Cα atoms are connected by harmonic springs between all atom pairs within a cutoff (~1 nm). ENMs reproduce the low-frequency vibrational modes of a protein (normal modes, B-factors) with zero MD cost. Used for conformational analysis and allostery, not for dynamics.
  • Structure-based model (Gō model): A CG protein model where the native contacts (atom pairs within a distance cutoff in the reference structure) are assigned attractive Lennard-Jones-like interactions, and non-native contacts are purely repulsive. Gō models reproduce folding thermodynamics and kinetics for small single-domain proteins that fold via two-state mechanisms. Not appropriate for proteins with frustrated landscapes, intrinsically disordered regions, or oligomerization.
  • Backmapping: Reconstruction of an atomistic structure from a CG configuration. Methods: (1) geometric placement of all atoms based on fragment libraries + energy minimization (backward.py, BACKWARD protocol); (2) atom placement using inverse kinematics or machine-learned mappings. Backmapping introduces steric clashes that must be resolved by short energy minimization and AA-MD equilibration (typically 1–10 ns) before any AA-level analysis.
  • Effective temperature / CG time factor: CG potentials are smoother than all-atom PES, so CG dynamics are faster. The effective speed-up factor f_t is estimated by comparing CG and AA lateral diffusion coefficients (D_CG / D_AA). For Martini 3 water at 310 K, f_t ≈ 4 for lateral diffusion of water. [EXPERT REVIEW NEEDED: f_t is not universal; it depends on the observable, temperature, and system composition.] Never report CG simulation time directly as real time without stating f_t and the observable used to calibrate it.
  • Martinize2: The standard tool for generating Martini 3 CG topologies from all-atom PDB/GRO structures. Applies the elastic network (ElNeDyn) for protein secondary structure preservation. Outputs GROMACS-compatible .top, .itp, and .gro files.

Key Workflows

Full steps for each part are in references/key-workflows/; open the one you need:

Common Failure Modes

Moved to references/common-failure-modes.md to keep this file short; read it when this part is needed.

Best Practices

  • Always validate against at least one experimental observable before any production analysis. Area per lipid, bilayer thickness, or small-molecule partitioning are the standard benchmarks for membrane Martini simulations. A model that does not reproduce the reference APL within 5% is not validated.
  • Always use ElNeDyn elastic network for Martini 3 protein simulations. Without the elastic network, protein secondary structure collapses within 100–500 ns in Martini 3. Always run martinize2 with -elastic and verify the protein DSSP secondary structure at the start of production.
  • Use CHARMM-GUI Martini Maker for complex membrane systems. Manual insane setup is error-prone for asymmetric bilayers, cholesterol-containing membranes, and multi-component lipid mixtures. CHARMM-GUI generates consistent topology, coordinate, and mdp files and validates the lipid composition.
  • Never use PME electrostatics with Martini force fields. Martini is parameterized with reaction-field electrostatics (ε_rf = 15). Using PME changes the effective dielectric environment and produces wrong partitioning, membrane thickness, and protein–membrane interactions. This is the single most common misconfiguration in Martini simulations.
  • Always apply and report a time-scale correction for any dynamical observable. CG dynamics are faster than real dynamics by a system-dependent factor. Calibrate f_t by comparing the CG lateral diffusion coefficient to the experimental value for the dominant lipid species. Report CG time and corrected real time separately, and note the uncertainty in the correction.
  • Equilibrate each system component sequentially, not simultaneously. For membrane systems: minimize → NVT with protein restrained → NPT (Berendsen, 50–100 ns to relax membrane area) → NPT (Parrinello-Rahman, 50–100 ns) → production. Skipping Berendsen NPT before Parrinello-Rahman leads to box oscillation crashes.
  • Backmap to all-atom before any high-accuracy measurement. CG-MD gives the correct qualitative structure and thermodynamics, but free energies at the kT level, specific hydrogen bonds, and rare conformations require all-atom resolution. Use CG-MD to equilibrate, then backmap and collect AA-MD statistics.
  • For IBI-derived potentials: validate transferability explicitly. Run the parameterized CG model at one or two state points different from the parameterization point (different T, different composition). If structural or thermodynamic properties diverge from AA reference at those conditions, document the validity domain of the potential.
  • Use GROMACS 2021+ for Martini 3. Older GROMACS versions (< 2021) have known issues with the Verlet cutoff scheme and the Martini 3 LJ table. The C-rescale barostat (GROMACS 2021+) is particularly well-suited for Martini membrane simulations. [EXPERT REVIEW NEEDED]

Integration with Other Skills

  • gromacs-workflow: GROMACS provides the primary simulation engine for Martini CG-MD. The .top/.itp hierarchy, grompp → mdrun pipeline, and checkpoint-based restart from that skill apply directly to Martini simulations, with the mdp differences noted in Workflow 2 here.
  • lammps-workflow: LAMMPS is the standard engine for bottom-up CG models of polymers and materials (Kremer-Grest, IBI-derived CG potentials, tabulated pair potentials). The bead-spring polymer models and tabulated pair-style commands are native to LAMMPS.
  • md-force-fields: Understanding the atomistic force field (CHARMM36m, AMBER ff14SB, OPLS-AA) is a prerequisite for any bottom-up CG parameterization — the CG potential must be derived from AA reference data, and the quality of the CG model is bounded by the quality of the AA force field.
  • md-equilibration: CG systems require their own equilibration protocol: the faster dynamics and different timescales mean that equilibration criteria differ from all-atom MD. The quantitative stationarity tests from that skill (block averaging, rolling mean, stationarity tests) apply to CG thermodynamic observables but require longer windows.
  • md-analysis: MDAnalysis loads GROMACS Martini trajectories (.tpr + .xtc) identically to all-atom trajectories. The RDF, coordination number, MSD, and order parameter analysis workflows apply directly. Atom selections must use CG bead names (PO4, NC3, C1A, ...) rather than all-atom atom names.
  • enhanced-sampling: PLUMED interfaces with GROMACS and LAMMPS for CG enhanced sampling (metadynamics, umbrella sampling) identically to the all-atom case. CG-MD enhanced sampling is particularly powerful for membrane protein insertion, lipid sorting, and vesicle formation where the relevant CVs are large-scale structural coordinates accessible only at CG resolution.
  • free-energy-md: CG free-energy calculations (alchemical FEP with Martini, PMF from umbrella sampling) provide qualitative free-energy estimates at large scales, useful for ligand partitioning into membranes and peptide–lipid interactions. Quantitative free-energy differences (< 1 kJ/mol accuracy) require backmapping to AA and running AA FEP.
  • scientific-visualization: Martini trajectories are visualized with VMD (Martini coloring scripts), OVITO (bead type coloring), and nglview (Jupyter). CG bead type color tables differ from all-atom element coloring. That skill covers rendering membrane systems, lipid tail order maps, and protein insertion movies from CG trajectories.
  • reproducibility-workflow: CG simulations require archiving the martinize2 version, the elastic network parameters, the Martini force-field version (.itp files), insane parameters, and the backmapping protocol alongside the trajectory. All of these are non-obvious dependencies that determine the result. That skill covers DVC-based provenance for large trajectory datasets.

Key References

  1. Marrink, S. J., Risselada, H. J., Yefimov, S., Tieleman, D. P., & de Vries, A. H. (2007). The MARTINI force field: Coarse grained model for biomolecular simulations. Journal of Physical Chemistry B, 111(27), 7812–7824. https://doi.org/10.1021/jp071097f
  2. Souza, P. C. T., Alessandri, R., Barnoud, J., Thallmair, S., Faustino, I., Grünewald, F., et al. (2021). Martini 3: A general purpose force field for coarse-grained molecular dynamics. Nature Methods, 18(4), 382–388. https://doi.org/10.1038/s41592-021-01098-3
  3. Reith, D., Pütz, M., & Müller-Plathe, F. (2003). Deriving effective mesoscale potentials from atomistic simulations. Journal of Computational Chemistry, 24(13), 1624–1636. https://doi.org/10.1002/jcc.10307
  4. Izvekov, S. & Voth, G. A. (2005). A multiscale coarse-graining method for biomolecular systems. Journal of Physical Chemistry B, 109(7), 2469–2473. https://doi.org/10.1021/jp044629q
  5. Wassenaar, T. A., Ingólfsson, H. I., Böckmann, R. A., Tieleman, D. P., & Marrink, S. J. (2015). Computational lipidomics with insane: A versatile tool for generating custom membranes for molecular simulations. Journal of Chemical Theory and Computation, 11(5), 2144–2155. https://doi.org/10.1021/acs.jctc.5b00209
  6. Kmiecik, S., Gront, D., Kolinski, M., Wieteska, L., Dawid, A. E., & Kolinski, A. (2016). Coarse-grained protein models and their applications. Chemical Reviews, 116(14), 7898–7936. https://doi.org/10.1021/acs.chemrev.6b00163
  7. Noid, W. G. (2013). Perspective: Coarse-grained models for biomolecular systems. Journal of Chemical Physics, 139(9), 090901. https://doi.org/10.1063/1.4818908
  8. Ingólfsson, H. I., Melo, M. N., van Eerden, F. J., Arnarez, C., Lopez, C. A., Wassenaar, T. A., et al. (2014). Lipid organization of the plasma membrane. Journal of the American Chemical Society, 136(41), 14554–14559. https://doi.org/10.1021/ja507832e

示例提示词

帮我把全原子蛋白质结构映射成Martini粗粒化模型并在GROMACS中运行。

所属插件

计算材料学:第一性原理与原子模拟面向计算材料研究:DFT 与第一性原理(VASP、Quantum ESPRESSO、CP2K、AiiDA)、缺陷/表面/声子/弹性常数、机器学习势函数训练与验证、分子动力学与增强采样、晶体性质图神经网络与生成模型。

安装该插件会一并获得同领域的 35 个 Skill / MCP。

同插件的其他科研 Skill

常见问题

粗粒化分子动力学模拟能做什么?

Covers coarse-grained molecular dynamics: mapping atomistic structures to CG beads, parameterizing Martini/IBI/force-matching force fields. Use when atomistic timescales are too short。

如何安装粗粒化分子动力学模拟?

在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「粗粒化分子动力学模拟」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。

粗粒化分子动力学模拟需要哪些权限?

该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。

粗粒化分子动力学模拟经过官方审核吗?

是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。