CAPSChain Assembly and Packing Suite

Prepare · module 14

Minimise

Energy minimisation with CAPS Relax: L-BFGS, conjugate gradient, steepest descent or FIRE, with a soft-core push-off for freshly built cells and optional compression to a target density.

Open it Top bar›Minimise

You start with
A structure with a force field assigned (otherwise the built-in GAFF).
You get
A relaxed structure, energy and max-force curves, and the criterion that stopped each stage in the report.
Minimise · CAPS Relax on the grown polystyrene cell: L-BFGS after a capped-force push-off, compressed from 0.90 to 1.05 g/cm³; the energy and largest-force curves over 1,714 iterations.

Step by step

  1. Choose the method

    L-BFGS is the default and the fastest in most cases; FIRE is robust for very strained cells.

  2. Set the push-off and the cell

    Keep Soft-core push-off before minimising on for a grown or packed cell: it caps the force (500 kcal/mol/Å) while overlaps separate.

    Compress to a target density brings a 0.6 g/cm³ grown cell up to, for example, 1.05 g/cm³ in steps of 0.06.

    Relax the box towards a pressure: isotropic, each axis, only z (a film or slab) or only x and y.

  3. Hold what must not move

    Under Constraints & restraints: Hold a molecule in place (a substrate), Hold selection along x, y or z, or restraints between atoms with Add measured.

  4. Restraints in every run

    Under Restraints in every run, one restraint per line with atoms numbered from 1: distance 1 2 3.0 20, torsion 1 2 3 4 60:90 50, position 1-40 5 axes z radius 0.5. A target value, or LO:HI for a flat bottom, then k in kcal/mol/Ų or per rad²; ramp K changes k over a run. From selection adds the selected atoms at their present distance, angle or torsion.

    Apply uses the list in Minimise, Dynamics and Equilibrate and writes it into the LAMMPS and GROMACS files.

  5. Relax a crystal cell with parameters held

    Under Cell with held parameters, the six lattice parameters relax with the atoms; tick the ones that keep their value (the chain axis of a polymer crystal, β of a monoclinic cell), set the pressure and press Relax cell. The cell keeps its orientation. Undo with ⌘Z.

  6. Find a reaction path

    Under Reaction path, Choose end B… picks the other end; the open structure is A. Match B's atoms to A's (any order in the file) pairs atoms by element, bonded environment and position. Choose how the first images are laid between the ends (interpolated pair distances or straight lines), the number of images and the largest force, tick Minimise both ends first and Climbing-image nudged elastic band as needed, then Find the path.

    The energy along the path is plotted. The NEB uses the force field assigned on the Force field page, else UFF.

  7. Set when to stop

    Any of: |F|max below 0.5 kcal/mol/Å, 5000 iterations per stage, a relative ΔE per step, or a box stress below 100 atm.

  8. Press Minimise

    Energy and max force are plotted live. Cancel stops it; Queue runs it as a job; Copy as Python gives the same call as a script.

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 relax cell.data -o cell_min.data --method lbfgs --ftol 0.5 \
    --density 1.05 --step 0.06
caps relax cell.data -o cell_r.data --restraints 'distance 1 2 3.0 20; position 1-40 5 axes z'
caps cellrelax pe-orthorhombic.cif -o pe_relaxed.cif --hold c --ff oplsaa2024
caps path reactant.xyz product.xyz -o path.xyz --images 7 --neb --ff FF.json

Where to go next

Read more