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.
Step by step
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).
Choose the frames
Under Source: the trajectory, first and last frame, every n-th, and the time per frame.
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).
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.
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.Surface tension of a slab
caps tensionreads 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.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 tgfolders,OUT.tg-points.jsonor its csv folder); several are replicas, pooled as mean ± SD with error bars, the same ascaps 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 PSsets that time, and--equilibrate 0skips 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.
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 2import caps
d = caps.open("traj.lammpstrj", topology="cell.data")
for r in d.analyze("density,rdf,rg"):
print(r["name"], r["value"], r.get("error"), r["unit"])Where to go next
Analyse & exportScattering & diffractionPowder patterns of any cell, Rietveld and Pawley fits of measured data, indexing, total scattering and displacement parameters from MD.
Analyse & exportStudy tableResults of many structures and runs in one sheet: formula columns, order and filters, charts with fits, statistics and structure-property models.
Analyse & exportExportLAMMPS, GROMACS, DL_POLY 4, AMBER/OpenMM and moltemplate decks, checked before they are written.
Analyse & exportProject & methodsA results table for every structure and a methods section with BibTeX, written from provenance.