CAPSChain Assembly and Packing Suite

Analyse & export · module 23

Analyze

Measure what you built: structure, chain statistics, thermodynamics, mechanics, dynamics, free volume, interfaces and rubber networks, from one frame or a whole trajectory, with error bars and fits.

Open it Top bar›Analyze

You start with
A structure or a trajectory (CAPS's own, or LAMMPS, GROMACS, AMBER).
You get
Result cards with curves and fits; CSV or LaTeX tables.
Analyze on 2 ns of NPT at 300 K and 1 atm run on an HPC cluster after that equilibration (201 frames, one every 10 ps). Seven properties are computed: density, the C–C g(r), Rg, Cₙ and C∞, CED, δ and the MSD. In view: the density card against atactic polystyrene in experiment, 0.997 ± 0.002 g/cm³ or 4 % below the measured 1.04–1.065 g/cm³ (OPLS-AA glass densities are known to come out 3–8 % low), the C–C g(r), and the MSD of atoms and chain centres on log axes. Both stay nearly flat, far shallower than the ∝ t guide: over 2 ns the glass is sub-diffusive, so no diffusion coefficient is reported.

Step by step

  1. Pick the calculations

    Tick chips by group: Structure (density, RDF, S(q), X-ray, neutron), Chains (Rg, Ree, C∞, persistence, entanglements), Thermo (CED, δ, Tg), Mechanics (Cij, stress–strain, creep), Dynamics (MSD, D, viscosity), Free volume, Interface (z profile, adhesion, pull-out) and Rubber network (crosslink density, H-bonds).

  2. Choose the frames

    Under Source: the trajectory, first and last frame, every n-th, and the time per frame.

  3. Adjust the settings

    The g(r) pair, only between molecules, the probe radius for free volume, the MSD fit window, and blocks for the protocols that run (cooling for Tg, deformation, pull test).

  4. Press Run selected

    Each result is a card with its value, error and a small figure of its curve. The figure panel beside the cards draws the one you pick at full size: axes as quantity / unit, legends, block means with the mean ± standard error, fit windows and fits, and Tg marked on the cooling curve. Compare with overlays reference data; Export CSV / LaTeX… writes the tables.

  5. Spectra, hydrogen bonds and patterns

    IR spectrum under Dynamics gives the infrared spectrum from the time derivative of the cell's dipole, with quantum correction factors. It takes the charges from the force field and the run's temperature, and wants frames at most 5 fs apart.

    H-bond definition sets the donor and acceptor elements (add C for weak C–H···O, S or Cl for sulfur chemistries and halides), the criterion (D···A ≤ 3.5 Å, ∠H–D···A ≤ 30° (Luzar–Chandler) or H···A < vdW sum, ∠D–H···A ≥ 110° (IUPAC 2011)) and, to count only between two groups, a selection for each; then tick H-bonds.

    Pattern geometry takes a SMARTS whose atom-map numbers mark 2, 3 or 4 points ([#6][S:1][S:2][#6]: the S–S distance at every match; atoms that share a number give their centroid). Tick Pattern geometry for the distribution.

  6. Surface tension of a slab

    caps tension reads the pressure tensor from a CAPS thermo CSV (caps md --log) or a LAMMPS log and gives the surface or interfacial tension in mN/m with block errors; caps.surface_tension() does the same in Python. The Studio has no control for it yet.

  7. Dedicated pages for the big ones

    Glass transition: cooling from 500 K to 200 K in 20 K steps, 100 ps NPT each, Tg from a two-line fit (Run cooling). Open finished runs… reads scans that ran elsewhere (caps tg folders, OUT.tg-points.json or its csv folder); several are replicas, pooled as mean ± SD with error bars, the same as caps tg --fit RUN RUN ….

    Diffusion: the MSD with its fit window and the Yeh–Hummer box-size correction.

    Mechanics: uniaxial tension and the stiffness matrix. All under Modules › Analysis. A pull runs 20 ps of NPT first (20,000 steps at 1 fs, each axis at the target pressure) so the box starts stress-free; caps tensile --equilibrate PS sets that time, and --equilibrate 0 skips it for a cell that is already equilibrated.

    Scattering › Powder pattern 2θ: the cell's reflections (h k l, d, 2θ, multiplicity, intensity) and I(2θ) for a Cu, Mo, Co, Fe, Cr or Ag tube with the Kα2 line, crystallite size, strain, a temperature factor and preferred orientation, over a measured pattern.

Glass transition of the same atactic polystyrene cell (10 chains × 30 units, 4,820 atoms, OPLS-AA 2024), three cooling scans run on an HPC cluster and opened here with Open finished runs…: 1 ns at 600 K, then 600 to 300 K in 25 K steps held 1 ns each (2.5 × 10¹⁰ K/s), one seed per scan. The specific volume with the spread of the three scans, the glass and melt fits and Tg = 478 ± 18 K (mean ± SD). Simulated cooling is about eleven decades faster than DSC, so Tg sits well above the measured 373 K, and the break between the two branches is gentler than in experiment.

The same without the Studio

Every Studio page calls the same core as the caps command and the caps Python package, so a step you clicked can be repeated in a script.

caps analyze traj.lammpstrj --topology cell.data \
    --props density,rdf,rg,msd,diffusion --csv results/
caps tg cell.data -o tg.data --from 500 --to 200 --step 20 --ps 100 --csv tg/
caps tensile cell.data -o strained.data --axis x --rate 1e-3 --strain 0.2
caps tension thermo.csv --axis z --interfaces 2

Where to go next

Read more