科研 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.
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.grofiles.
Key Workflows
Full steps for each part are in references/key-workflows/; open the one you need:
- Workflow 1: Mapping atomistic protein + lipid bilayer to Martini 3 —
references/key-workflows/01-workflow-1-mapping-atomistic-protein-lipid-bilay.md: Generate a Martini 3 CG topology for a membrane protein system using martinize2 and insane (Martini membrane builder), then assemble the full CG system. - Workflow 2: GROMACS Martini 3 mdp settings —
references/key-workflows/02-workflow-2-gromacs-martini-3-mdp-settings.md: Martini 3 requires different mdp parameters from standard biomolecular AMBER/CHARMM simulations. The key differences: no PME (reaction-field electrostatics), different cutoffs, and a longer timestep. - Workflow 3: Bonded parameterization via iterative Boltzmann inversion —
references/key-workflows/03-workflow-3-bonded-parameterization-via-iterative.md: IBI derives CG bonded potentials (bond, angle, dihedral) from all-atom reference distributions. Produces tabulated potentials that match target distributions exactly at the parameterization state point. - Workflow 4: Backmapping CG to all-atom resolution —
references/key-workflows/04-workflow-4-backmapping-cg-to-all-atom-resolution.md: Backmapping reconstructs atomistic detail from a CG configuration. Always required before any all-atom analysis, free-energy calculation, or docking study using CG-equilibrated structures. - Workflow 5: Validation against all-atom MD and experiment —
references/key-workflows/05-workflow-5-validation-against-all-atom-md-and-ex.md: CG models must be validated structurally and thermodynamically before being used for production. Validation compares CG outputs to all-atom MD (structural) and to experiment (thermodynamic). - Workflow 6: Bottom-up CG of a polymer with LAMMPS (Kremer-Grest model) —
references/key-workflows/06-workflow-6-bottom-up-cg-of-a-polymer-with-lammps.md: Kremer-Grest is the standard bottom-up CG model for polymer dynamics. Each monomer is represented as one bead with WCA (truncated-shifted LJ) repulsion and FENE bonds. - Workflow 7: Enhanced sampling with PLUMED on a CG system —
references/key-workflows/07-workflow-7-enhanced-sampling-with-plumed-on-a-cg.md: CG-MD + PLUMED enables enhanced sampling of slow processes (membrane fusion, protein insertion, vesicle formation) that are slow even at CG resolution.
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
-elasticand 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/.itphierarchy,grompp → mdrunpipeline, 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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中运行。
所属插件
安装该插件会一并获得同领域的 35 个 Skill / MCP。
同插件的其他科研 Skill
- 主动学习构建机器学习势训练集Runs active-learning workflows for ML interatomic potentials: uncertainty-guided MD exploration, DFT oracle labeling, query strategy. Use when expanding an MLP training set.
- AiiDA计算工作流管理Covers AiiDA, a provenance-first Python workflow engine for computational materials science: calculation input generation, remote submission. Use when orchestrating reproducible DFT/MD campaigns.
- ASE原子模拟环境Covers the Atomic Simulation Environment (ASE) as an atomistic workflow hub: Atoms objects, calculators, optimizers, trajectories. Use when scripting or converting structures across DFT/MD codes.
- CP2K第一性原理分子动力学Covers end-to-end DFT, AIMD, and atomistic workflows with CP2K using the Gaussian-and-plane-waves method: input construction, convergence testing. Use for CP2K-based simulations.
- 扩散模型生成晶体结构Covers de novo crystal structure generation with score-based diffusion and flow-matching models (MatterGen, DiffCSP, CDVAE). Use when generating candidate structures, not analyzing existing ones.
- 晶体图神经网络性质预测Covers graph neural networks for crystal and periodic-material property prediction: crystal graph construction, periodic neighbor finding. Use when building GNN property predictors for crystals.
- 平面波DFT收敛性测试Covers systematic convergence testing for plane-wave DFT: cutoff energy, k-point mesh density, smearing. Use before trusting DFT energies, forces, or derived properties as converged.
- 机器学习势DFT数据集生成Covers generating DFT-labeled datasets for training ML interatomic potentials: configuration-space coverage. Use when building an MLP training dataset from scratch.
- 点缺陷第一性原理计算Covers first-principles point-defect modeling: vacancy/interstitial/antisite/substitutional construction, charge-state calculations. Use for defect thermodynamics studies.
- 第一性原理声子谱计算Covers lattice dynamics from first principles: phonon dispersion, phonon DOS. Use when computing vibrational or thermodynamic properties from DFT.
- 表面模型DFT计算Covers surface slab model construction and DFT calculation: Miller-index generation, termination selection, slab/vacuum convergence. Use for surface science and catalysis DFT studies.
- 弹性常数计算工作流Computes single-crystal and polycrystalline elastic constants from DFT or MD stress-strain data and checks mechanical stability. Use when deriving stiffness tensors or bulk/shear modulus.
- 增强采样自由能计算Covers enhanced sampling methods for atomistic MD (metadynamics, umbrella sampling. Use for rare-event or slow-transition sampling.
- 状态方程拟合Covers equation-of-state fitting from DFT/ML-potential energy-volume data: Birch-Murnaghan, Vinet, and Murnaghan forms. Use when fitting an EOS to compression data.
- 机器学习势微调迁移训练Covers fine-tuning pretrained universal ML interatomic potentials on system-specific DFT data. Use when adapting a universal MLP to a new system.
- 分子动力学自由能计算Covers quantitative free-energy calculations from MD: alchemical FEP/TI/BAR/MBAR, umbrella-sampling PMF. Use when computing thermodynamic free energies from simulation.
- GROMACS分子动力学工作流Covers end-to-end MD simulations with GROMACS: topology/.mdp construction, energy minimization, NVT/NPT equilibration. Use for GROMACS-based biomolecular or materials MD.
- 高通量DFT自动化筛选Covers automated large-scale DFT screening: workflow graphs with atomate2/jobflow/AiiDA, input-set standardization, custodian error handling. Use for high-throughput DFT screening campaigns.
- LAMMPS分子动力学工作流Covers end-to-end MD simulations with LAMMPS: input script anatomy, force-field deployment, ensemble control, equilibration. Use for LAMMPS-based classical molecular dynamics.
- MACE机器学习势训练Covers training MACE machine-learned interatomic potentials: extxyz dataset preparation, isolated-atom energies, train/val/test splitting. Use for MACE-specific MLP training workflows.
- MatGL图神经网络框架Covers building, applying, validating, and fine-tuning MatGL graph-neural-network models for property prediction and interatomic potentials. Use for pretrained GNN workflows via MatGL.
- 分子动力学轨迹后处理分析Covers quantitative post-processing of atomistic MD trajectories: loading LAMMPS/GROMACS/ASE trajectories and computing RDF, coordination numbers. Use for structural MD trajectory analysis.
- 分子动力学平衡过程设计Covers bringing an atomistic simulation from its initial configuration to a representative equilibrium state before production statistics: ensemble. Use before collecting production MD data.
- 分子动力学力场选型验证Covers selection, validation, and deployment of classical interatomic force fields for MD: physical basis and transferability limits of EAM, MEAM, Tersoff. Use when choosing a force field.
常见问题
粗粒化分子动力学模拟能做什么?
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 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。