CAPSChain Assembly and Packing Suite

Prepare · module 13

Force field

Assign atom types, charges and parameters from the force field you choose (PCFF, COMPASS, OPLS-AA, GAFF, CVFF, UFF and more). CAPS never guesses a parameter: anything missing is listed before you can run.

Open it Top bar›Force field

You start with
Any structure with bonds: a grown cell, a crystal, a PDB with CONECT, a mol2, a LAMMPS data file.
You get
Every atom typed and charged, a typing report, and a structure ready for Minimise, Dynamics and Export.
Force field · typing report for the grown polystyrene cell with OPLS-AA 2024: 4,820 atoms typed, 0 untyped, 0 missing terms, net charge 0; every atom with its type, charge and the SMARTS rule that typed it, the seven types in 3D and the other force fields that also cover the cell.

Step by step

  1. Pick the force field and the charges

    Choose it in Force field. Charges defaults to Automatic (force field, else Gasteiger); you can also take them from the force field, Gasteiger–Marsili or QEq, or keep the file's own charges.

  2. Press Assign · retype all

    CAPS types every atom from its typing rules. The chips above the table give typed, untyped, missing terms, estimated terms and the net charge.

  3. Check the atoms table

    Filter by All, Untyped or Overridden. Click a row, or an atom in the Types in 3D view, to see the rule (SMARTS) that matched it.

    To change one type, use Set type by hand → Set; Back to the rule undoes it.

  4. Clear the Missing before run panel

    Its badge reads Blocks Relax and Dynamics until every term exists, then Ready to run.

    Which force fields describe this structure? lists the alternatives that cover everything, each with Use. Otherwise fill gaps with Fill gaps from… or Import parameters… (a published file), or Enter manually (estimated): hand-entered values are flagged as estimated in the report and in every file written.

  5. Composites: one force field per part

    Switch on By group, press Suggest groups (filler, polymer, blend components), choose a force field (or a literature potential such as Tersoff from a file) for each group, then Assign by group.

    Set how cross pairs mix (Between groups · ε, σ, 1-4 pairs) or give pairs explicitly; CAPS writes the cross terms.

    A group's force field can change its atoms: TraPPE O₂ and N₂ next to an all-atom polymer get their massless centre sites, and a united-atom group has its hydrogens folded into the carbons. Assign by group does this as one undo step, and the report gives each group's sites, folded atoms and net charge.

  6. Charges for periodic fillers

    Modules › Partial charges… with QEq: choose Ohno–Klopman shielding or Slater ns densities (original QEq), tick Ewald sum over the periodic images for a crystal or filler periodic in a, b and c, and Hydrogen hardness follows its charge if you need it. Per-element bounds such as O:-1.2:0, Si:0:2.4 hold atoms that would pass them and share the rest of the charge out again.

  7. Fit a filler's potentials to crystal data

    For a crystal with an ionic or shell model (CaCO₃, silica, ZnO, a Buckingham set), the Fit to crystal data card at the end of the page. Find parameters lists the pair, bond and charge parameters of the assigned force field that act in the crystal; tick the ones to fit.

    Under Targets, one per line: what, value, an optional weight and unit (C11 297, bulk 160 0.01, energy -941.2 eV): a b c, the angles, the volume, the lattice energy per formula unit, C11 to C66, bulk and shear moduli. The observed structure is always a target. Set the formula units per cell, keep Relax the crystal at every step on unless you need speed, and press Fit; with nothing ticked the crystal is only evaluated. Keep the fitted values puts them into the structure's assignment, and Save force field… writes them to a file.

  8. Go on, or export the typed cell

    Continue to Minimise. Export ▾ also writes a LAMMPS data + input file, or a types file for caps ff apply --types.

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.

# types from the rules, then the parameters and the decks
caps ff type cell.data --ff oplsaa2024 -o types.txt --explain
caps ff apply cell.data --ff oplsaa2024 --types types.txt \
    -o cell_ff.data --lammps-input cell.in --gromacs cell

# QEq for a periodic filler, and a fit to crystal data
caps qeq silica.cif --kernel slater --ewald --bounds 'O:-1.2:0,Si:0:2.4' -o silica_q.data
caps fit spec.json --out fitted.json --json fit_report.json

Where to go next

Read more