HiveBoard Docs Search the docs… Ctrl K Get HiveBoard
Browse the help centre
  1. Help centre
  2. Simulation codes

CP2K jobs

What HiveBoard shows for a CP2K job on Slurm: optimisation and MD progress with time left, gradient, temperature and SCF charts, and the 3-D cell.

6 min read HiveBoard 0.1.7 Updated

In short

  • HiveBoard recognises a CP2K folder by the files named after its project (-pos-1.xyz, -1.ener, -1.restart, -RESTART.wfn) or by &GLOBAL and &FORCE_EVAL in the input.
  • RUN_TYPE decides the kind of run; keep &GLOBAL near the top of the input so HiveBoard can read it.
  • Both output layouts are followed — the older optimisation and MD blocks and the OPT| and MD| lines of newer versions.

HiveBoard follows a CP2K job by reading its input (&GLOBAL, &FORCE_EVAL, &MOTION), the main output, and the files CP2K names after the project: the -pos-1 trajectory and the -1.restart input. Following the job installs nothing on the cluster and changes nothing in the folder. In the job list, your own job carries the code tag CP2K and its kind of run, such as Geometry opt or MD.

What HiveBoard shows

Progress and time left

KindCountsAgainst
Geometry opt, TS searchThe optimisation step being worked onMAX_ITER of &GEO_OPT (200 if not set)
Cell optThe optimisation step being worked onMAX_ITER of &CELL_OPT (200 if not set)
MDStep reports in the outputThe number of time steps (STEPS)
NEBBand stepsMAX_STEPS of &BAND
Energy, Energy + forcesSCF stepsMAX_SCF

The time left is the time per step times the steps left, never longer than the time before the wall-time limit. For MD, HiveBoard uses CP2K’s own average CPU time per MD step; otherwise the time used divided by the steps done (”~…s per optimisation step × up to … left (often finishes sooner)”). When the output ends with “PROGRAM ENDED AT”, the bar is full.

Two output layouts are followed: for optimisations the blocks of versions up to 2024.1 and the OPT| lines from 2024.2; for MD the blocks up to 7.1 and the MD| lines from 8.1. Typical status sentences: “Optimising the geometry: step … of up to ….”, “Optimisation converged after … steps.”, “Molecular dynamics: … of … steps done.”, “Converging the wavefunction: SCF step ….”

Figures and charts

The Overview shows the figures that apply: Total energy (the latest energy evaluation, in Eh), Optimisation step, Max gradient and RMS gradient (hover them for the thresholds), Internal pressure (cell optimisation), MD steps, Simulated time, Temperature, Conserved quantity, Pressure, Time per MD step, Band step, Last SCF, Atoms, Warnings (as CP2K counts them at the end), Run time and Version.

The charts:

  • an optimisation — Energy per optimisation step (eV, relative to the latest) and Maximum gradient (with a line at its threshold);
  • MD — Temperature and Conserved quantity (its drift, in meV);
  • MD, NEB, vibrations, path-integral MD and Monte Carlo — Potential energy per energy evaluation;
  • every run — SCF convergence (latest steps), on a log scale against EPS_SCF.

A chart appears once it has two points.

Errors and warnings

When CP2K aborts, the warning quotes the message in its [ABORT] box: “CP2K aborted: …”. Warnings count the SCF cycles that ended with “SCF run NOT converged” and say when an optimisation used all its allowed steps. “No output update for N min — job may be stalled.” appears when the main output has not changed for more than 15 minutes while the job runs.

Setup

The Setup tab’s Calculation setup shows Run type, Project, Force method, Electronic structure, Functional, Basis set, Pseudopotential, Grid cutoff, k-points, SCF tolerance, SCF steps allowed, Orbital transformation, Smearing, Dispersion, Charge, Multiplicity, Ensemble, Time step, Target temperature, Thermostat, Optimiser, Force tolerance, Band and Parallel — each where the input or output gives it.

HiveBoard does not restart CP2K runs: Continue is offered for VASP only. A CP2K run is continued from its <project>-1.restart input and the RESTART.wfn wavefunction, which you set up yourself.

Kinds of run it tells apart

RUN_TYPE in the input decides. HiveBoard takes the first that fits:

KindWhat it means
NEBNudged elastic band — a reaction path between two minima (RUN_TYPE BAND)
TS searchTransition-state search with the dimer method (GEO_OPT, TYPE TRANSITION_STATE)
Cell optOptimisation of the cell and the atoms in it (RUN_TYPE CELL_OPT)
Geometry optOptimisation of the atomic positions in a fixed cell (RUN_TYPE GEO_OPT)
MDBorn-Oppenheimer molecular dynamics (RUN_TYPE MD)
Path-integral MDPath-integral molecular dynamics (RUN_TYPE PINT)
Monte CarloMonte Carlo sampling (RUN_TYPE MC, TMC, TAMC)
VibrationsNormal modes by finite differences (RUN_TYPE VIBRATIONAL_ANALYSIS)
RT-TDDFTReal-time propagation or Ehrenfest dynamics
Linear responseLinear-response properties (RUN_TYPE LINEAR_RESPONSE)
BSSECounterpoise correction of a basis-set superposition error
EnergySingle-point energy (RUN_TYPE ENERGY)
Energy + forcesSingle-point energy and forces — also what CP2K runs when RUN_TYPE is not given

The 3-D structure

The Structure tab shows the first of these that yields atoms:

  1. <project>-pos-1.pdb, written when &TRAJECTORY asks for PDB — every step, with the cell.
  2. <project>-pos-1.xyz — every step, without a cell.
  3. <project>-1.restart — the latest geometry and its cell.
  4. The starting geometry and cell stated once in the output’s header.
  5. The input’s &COORD, with &CELL when it is given as A, B and C vectors.

A trajectory shows up to its last 40 frames. A queued job shows only the input geometry — see Queued jobs and reused folders.

Files it recognises

The What it is column of the Files tab names these files:

RoleNamesWhat it is
Input*.inpNested sections — &GLOBAL (RUN_TYPE, PROJECT), &FORCE_EVAL (&DFT, &SUBSYS), &MOTION
Output*.out, *.logThe main output (-o file, or redirected standard output)
Trajectory*-pos-1.xyzPositions after every step (XYZ, no cell)
PDB trajectory*-pos-1.pdbPositions after every step, when &TRAJECTORY FORMAT PDB is set (carries the cell)
Restart*-1.restartA complete input holding the latest geometry and cell — what a restart reads
Wavefunction*-RESTART.wfn, *-RESTART.kpWavefunction restart (SCF_GUESS RESTART reads it); the same for a k-point run
MD energies*-1.enerMD energies: step, time, kinetic, temperature, potential, conserved quantity
Other per-step files*-vel-1.xyz, *-frc-1.xyz, *-1.cell, *-1.stressMD velocities; forces, cell vectors and stress tensor after every step
NEB replicas*-pos-Replica_nr_*.xyzOne trajectory per NEB replica
Grid and DOS*.cube, *.pdosDensity or orbital on a grid; projected density of states

A file is read as the input only if it holds &FORCE_EVAL or &GLOBAL, and as the output only if it holds CP2K| lines; of several, the newest is read. Wavefunction restarts (and their .bak- copies) and cube files are marked as large: the download button on the row asks before copying one to your computer.

How HiveBoard recognises a CP2K folder

  • Tell-tale names: files named after the project — *-pos-1.xyz, *-1.ener, *-1.restart, *-RESTART.wfn, *-RESTART.kp.
  • Signature: an input whose top has a &GLOBAL or &FORCE_EVAL section; or an output that begins with DBCSR| or CP2K| lines, or “PROGRAM STARTED AT” and a date.
  • Shared names: *.inp, *.out and *.log belong to many codes and count only with the signature.

HiveBoard goes by the folder’s files, not by your batch script or the program it starts (cp2k.psmp, cp2k.popt …). More in How codes are recognised.

What it was checked against

Real outputs of CP2K 2.6 to 2023.1. The OPT| layout of 2024.2, the [ABORT] box and NEB were written from the source only.

HiveBoard is an independent program: it reads the files CP2K writes and is not made by, or connected with, CP2K’s developers.

Known limits

  • The .xyz trajectory is drawn without a cell: a structure source takes its cell only from its own text.
  • A cell given as lengths and angles (ABC and angles) is not read as a cell.
  • RUN_TYPE is read from the top of the input. An input whose &GLOBAL comes very late falls to the default kind, Energy + forces — put &GLOBAL first.
  • A variable-cell run, such as a cell optimisation, is drawn in its last cell in every frame.
  • In a folder that holds several calculations, the newest input and the newest output are picked separately and may belong to different runs.

Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.

↑ ↓ to moveEnter to openEsc to close