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.
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
| Kind | Counts | Against |
|---|---|---|
| Geometry opt, TS search | The optimisation step being worked on | MAX_ITER of &GEO_OPT (200 if not set) |
| Cell opt | The optimisation step being worked on | MAX_ITER of &CELL_OPT (200 if not set) |
| MD | Step reports in the output | The number of time steps (STEPS) |
| NEB | Band steps | MAX_STEPS of &BAND |
| Energy, Energy + forces | SCF steps | MAX_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:
| Kind | What it means |
|---|---|
| NEB | Nudged elastic band — a reaction path between two minima (RUN_TYPE BAND) |
| TS search | Transition-state search with the dimer method (GEO_OPT, TYPE TRANSITION_STATE) |
| Cell opt | Optimisation of the cell and the atoms in it (RUN_TYPE CELL_OPT) |
| Geometry opt | Optimisation of the atomic positions in a fixed cell (RUN_TYPE GEO_OPT) |
| MD | Born-Oppenheimer molecular dynamics (RUN_TYPE MD) |
| Path-integral MD | Path-integral molecular dynamics (RUN_TYPE PINT) |
| Monte Carlo | Monte Carlo sampling (RUN_TYPE MC, TMC, TAMC) |
| Vibrations | Normal modes by finite differences (RUN_TYPE VIBRATIONAL_ANALYSIS) |
| RT-TDDFT | Real-time propagation or Ehrenfest dynamics |
| Linear response | Linear-response properties (RUN_TYPE LINEAR_RESPONSE) |
| BSSE | Counterpoise correction of a basis-set superposition error |
| Energy | Single-point energy (RUN_TYPE ENERGY) |
| Energy + forces | Single-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:
<project>-pos-1.pdb, written when&TRAJECTORYasks for PDB — every step, with the cell.<project>-pos-1.xyz— every step, without a cell.<project>-1.restart— the latest geometry and its cell.- The starting geometry and cell stated once in the output’s header.
- The input’s
&COORD, with&CELLwhen it is given asA,BandCvectors.
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:
| Role | Names | What it is |
|---|---|---|
| Input | *.inp | Nested sections — &GLOBAL (RUN_TYPE, PROJECT), &FORCE_EVAL (&DFT, &SUBSYS), &MOTION |
| Output | *.out, *.log | The main output (-o file, or redirected standard output) |
| Trajectory | *-pos-1.xyz | Positions after every step (XYZ, no cell) |
| PDB trajectory | *-pos-1.pdb | Positions after every step, when &TRAJECTORY FORMAT PDB is set (carries the cell) |
| Restart | *-1.restart | A complete input holding the latest geometry and cell — what a restart reads |
| Wavefunction | *-RESTART.wfn, *-RESTART.kp | Wavefunction restart (SCF_GUESS RESTART reads it); the same for a k-point run |
| MD energies | *-1.ener | MD energies: step, time, kinetic, temperature, potential, conserved quantity |
| Other per-step files | *-vel-1.xyz, *-frc-1.xyz, *-1.cell, *-1.stress | MD velocities; forces, cell vectors and stress tensor after every step |
| NEB replicas | *-pos-Replica_nr_*.xyz | One trajectory per NEB replica |
| Grid and DOS | *.cube, *.pdos | Density 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
&GLOBALor&FORCE_EVALsection; or an output that begins withDBCSR|orCP2K|lines, or “PROGRAM STARTED AT” and a date. - Shared names:
*.inp,*.outand*.logbelong 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
.xyztrajectory is drawn without a cell: a structure source takes its cell only from its own text. - A cell given as lengths and angles (
ABCand angles) is not read as a cell. RUN_TYPEis read from the top of the input. An input whose&GLOBALcomes very late falls to the default kind, Energy + forces — put&GLOBALfirst.- 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.
Related
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.