Written and maintained by CASRAI Editorial Board
Published
On this page
CP2K is open-source software for quantum chemistry and solid-state physics simulations of atoms, molecules, liquids and periodic materials. Understanding a CP2K result means separating the physical model, the calculation task and the computing environment. This guide connects those choices to the inputs, convergence evidence and output records needed to interpret a calculation.
Definition and scope
The CP2K project describes a framework spanning electronic-structure methods, semiempirical approaches and classical force fields. Its named components include Quickstep, the FIST force-field implementation and quantum mechanics/molecular mechanics, usually abbreviated QM/MM. CP2K therefore identifies a software package; it does not, by itself, specify the theory used in a particular study.
That distinction matters when reading a methods section. “Calculated with CP2K” leaves several different questions unanswered: which model represented the system, which task the program performed, and which numerical settings controlled the calculation. A useful description connects the package name to those particulars rather than treating the program as the method.
For researchers working across chemistry’s experimental and computational approaches, the useful boundary is the atomistic model. A simulated structure or energy belongs to a defined calculation. It should be described with the corresponding model and task, rather than presented as a property established solely by choosing a familiar program. The sections below provide a vocabulary for making that description explicit.
How CP2K works in practice
The Gaussian Plane Wave manual explains an important CP2K approach: Gaussian-type orbitals form the primary basis, while the electronic density is transferred to a regular grid. Fast Fourier transforms support solving the Poisson equation, and the resulting electrostatic potential is integrated back into the Gaussian basis. The method uses different representations for different parts of the computation.
This explains why the basis set and the integration grid deserve separate entries in a calculation record. “Gaussian and plane waves” does not mean that one setting describes both representations. When comparing two inputs, identifying an unchanged basis name does not settle whether their grid settings also match.
The project’s energy-and-forces tutorial makes the input structure concrete. Its main input contains GLOBAL and FORCE_EVAL sections. Nested sections specify the system, DFT settings, integration grid, exchange-correlation treatment and self-consistent-field calculation. The example also uses separate basis-set and pseudopotential parameter files. The main input’s names refer to entries in those files; a filename alone is not the full parameter definition.
An interpretation of an input is consequently more useful when it follows the nesting. GLOBAL describes the overall job, while FORCE_EVAL groups the settings associated with evaluating forces. For a collaborator, this is a way to locate the relevant choices without mistaking every keyword for a separate scientific method.
The GLOBAL reference also documents controls that affect the record itself. PROJECT_NAME supplies the basis for names of trajectory and other generated files. PRINT_LEVEL controls output verbosity, and ECHO_INPUT can print the input with defaults. These controls help explain why two output collections can look different even when their main filenames look similar. For a handover, associate the generated files with their originating job and distinguish explicit input choices from defaults. The linked trunk manual describes development documentation; use the manual corresponding to the installed version when interpreting a real calculation.
Methods and related concepts
The CP2K features catalogue distinguishes electronic-structure calculations, ab-initio molecular dynamics and mixed quantum-classical simulations. It lists DFT, Hartree–Fock, MP2 and RPA energies and forces among Quickstep capabilities. It also describes classical force-field simulations. These are different modeling approaches within the package, rather than interchangeable names for the same calculation.
The catalogue describes CP2K as optimized for pseudopotential-based GPW calculations while also supporting all-electron and pure plane-wave or Gaussian approaches. A report should identify the approach actually used. The presence of a capability in the catalogue does not establish that it was selected in an input, or that every listed feature was combined in that calculation.
The GLOBAL reference supplies a second distinction: RUN_TYPE selects the top-level task. ENERGY evaluates energy; ENERGY_FORCE evaluates energy and forces; MD performs molecular dynamics; GEO_OPT selects geometry optimization. CELL_OPT includes optimization of both cell vectors and atomic positions. The task and the electronic-structure method answer different questions.
For example, a static energy-and-force result should not be called a trajectory simply because the software also supports molecular dynamics simulation. Equally, the task name alone does not identify the underlying force model. Describing both provides a compact, more informative account of what was calculated.
Numerical convergence and grid settings
The CP2K cutoff tutorial distinguishes CUTOFF from REL_CUTOFF. CUTOFF controls the finest integration-grid cutoff, with Ry as the default unit. REL_CUTOFF controls assignment of product Gaussian functions to grid levels. A large CUTOFF cannot compensate for an unsuitable REL_CUTOFF that places functions on an excessively coarse grid.
The tutorial investigates settings through a series of single-point calculations and examines energies and grid assignments. Its reasoning is more useful than adopting one demonstrated parameter pair for every system. A convergence record should show the settings compared, the resulting observable and the criterion used to decide that the differences are acceptable for the intended calculation.
For interpreting such records, keep the input unit beside the reported value. The tutorial notes that cutoff values printed in atomic units in the output use Hartree, whereas the input default is Rydberg; one Hartree equals two Rydberg. Two numbers cannot be compared meaningfully until that unit distinction has been resolved.
A review can therefore separate three items: the chosen representation, the numerical settings and the evidence supporting them. This separation prevents a methods paragraph from offering a parameter list as though it were itself a demonstration of convergence. It also makes clear what a colleague would need to inspect before reusing the settings.
Where CP2K matters for research laboratories
Running CP2K on shared computing resources adds an operational layer to the scientific input. NIH’s Biowulf documentation identifies a cp2k module and a CP2K_SETUP environment variable, recommends batch execution for most jobs, and shows an example that loads the module, sources the setup and launches an input through Slurm. These are documented Biowulf arrangements, rather than universal CP2K installation instructions.
NERSC’s CP2K documentation presents separate Perlmutter examples for CPU and GPU containers. It also notes an MPI application-binary-interface issue affecting multinode performance for the listed GPU image. A container name and launch configuration therefore belong beside the calculation input when documenting an execution environment.
NERSC explains that performance depends on system size and run type, with multinode scaling affected by work per MPI rank. It recommends testing a representative case at different node counts. That supports a measured resource request based on the intended workload; it does not support assuming that a larger allocation always produces a proportionate reduction in runtime.
For a lab handing a calculation between researchers or computing facilities, keep the scientific comparison distinct from the execution comparison. If the input, parameter files and launch environment all change together, the record should say so. A useful handover lets the next researcher identify which differences concern the model and which concern running it.
Common misunderstandings
A tutorial input is a universal production setting
The static tutorial explicitly uses an eight-atom silicon example calculated with CP2K 2.4. Its value here is to explain the relationship between the main input and supporting files. Reusing its physical system or numerical choices for another study requires a separate scientific justification; the example’s successful execution does not supply that justification.
The task name completely describes the simulation
RUN_TYPE and the model are separate parts of the description. A methods note becomes clearer when it states what CP2K was asked to compute alongside how the interactions were represented. This also gives a reader a direct way to compare the note against the input rather than infer the method from an output filename.
A facility’s batch script is portable without review
Biowulf’s module-based example and NERSC’s container-based examples document different environments. Preserve the script used for the actual run, but treat the facility’s instructions as the authority for that facility. Copying a script’s resource layout into another environment does not establish either compatibility or suitable scaling there.
A CP2K calculation record checklist
The following checklist is an editorial synthesis of the project and facility documentation, rather than an official CP2K compliance standard. It connects documented inputs and outputs to a research handover. The downloadable data table below maps selected artifacts to their documented functions and sources; it complements this review rather than reproducing a ready-made benchmark.
- Identify the scientific calculation. State the system, modeling approach and requested task together. A colleague should be able to distinguish a static calculation, optimization and dynamics run from this description.
- Keep the actual input dependencies. Retain the main input with the basis and potential files it references. The static tutorial makes their separate roles explicit; preserving just the main filename leaves part of that example unspecified.
- Keep numerical evidence alongside the chosen settings. Record what was compared during a convergence investigation, including units. The point is to explain the choice, rather than provide an isolated pair of cutoff values.
- Identify the execution environment. Associate the run with its module or container and launch script. This allows a later comparison to separate changes in scientific settings from changes in the computing arrangement.
- Retain the relevant output references. The CP2K project asks users to cite the scientific articles listed in the output’s REFERENCES section for the modules and methods used. That provides a calculation-specific starting point for attribution.
As an illustrative composite, consider a collaborator receiving a silicon energy-and-force input plus one energy value. A review organized by this checklist would ask for the referenced parameter files, grid-convergence evidence and execution record before treating the package as a reproducible handover. This is a documentation example, not a new simulation or a claim that the calculation passed validation.
Now consider two versions of that handover. One identifies an energy-and-force task and includes a different launch script; the other changes the task to molecular dynamics. The first comparison raises an execution-environment question. The second changes what the program was asked to calculate. Neither should be summarized merely as “the same CP2K calculation on another computer.” A useful comparison note names the changed item and points to the corresponding input or execution artifact. If a numerical setting also changes, attach the relevant comparison evidence as a separate part of the record. This keeps a reproducibility discussion focused on identifiable differences, rather than on a software name shared by both runs.
The same record can serve different checks. A coauthor can compare the methods description with the input; a computing specialist can inspect the launch environment; another researcher can examine the numerical evidence. Keeping those checks explicit supports computational reproducibility without equating a completed run with a scientifically validated result.
Sources
- CP2K project: About CP2K, checked 2026-11-17.
- CP2K project: Features, checked 2026-11-17.
- CP2K manual: Gaussian Plane Wave, checked 2026-11-17.
- CP2K project: How to Calculate Energy and Forces, checked 2026-11-17.
- CP2K manual: How to Converge the CUTOFF and REL_CUTOFF, checked 2026-11-17.
- CP2K manual: GLOBAL, checked 2026-11-17.
- NIH HPC: CP2k on Biowulf, checked 2026-11-17.
- NERSC documentation: CP2K, checked 2026-11-17.
Data: CP2K calculation artifacts and documented functions
Original crosswalk compiled from CP2K project tutorials and reference documentation, NIH Biowulf documentation and NERSC documentation. It relates calculation inputs, numerical evidence, execution examples and output references to their documented functions; it contains no measured simulation results.
| Artifact or setting | Documented function | Primary source | Source URL |
|---|---|---|---|
| Main input | Defines system and job parameters | How to Calculate Energy and Forces | https://www.cp2k.org/howto:static_calculation |
| Basis-set file | Supplies named basis parameters | How to Calculate Energy and Forces | https://www.cp2k.org/howto:static_calculation |
| Pseudopotential file | Supplies named pseudopotential parameters | How to Calculate Energy and Forces | https://www.cp2k.org/howto:static_calculation |
| RUN_TYPE | Selects the top-level calculation task | GLOBAL reference | https://manual.cp2k.org/trunk/CP2K_INPUT/GLOBAL.html |
| Grid-convergence series | Compares single-point energies and grid assignments | How to Converge the CUTOFF and REL_CUTOFF | https://manual.cp2k.org/trunk/methods/dft/cutoff.html |
| Biowulf batch example | Loads cp2k, sources CP2K_SETUP and runs through Slurm | NIH HPC: CP2k on Biowulf | https://hpc.nih.gov/apps/cp2k.html |
| Perlmutter launch examples | Specify separate CPU and GPU container environments | NERSC: CP2K | https://docs.nersc.gov/applications/cp2k/ |
| Output REFERENCES section | Lists articles for the modules and methods used | About CP2K | https://www.cp2k.org/ |
Sources
- CP2K: About CP2K (accessed 2026-11-17)
- CP2K: How to Calculate Energy and Forces (accessed 2026-11-17)
- CP2K manual: GLOBAL (accessed 2026-11-17)
- CP2K manual: How to Converge the CUTOFF and REL_CUTOFF (accessed 2026-11-17)
- NIH HPC: CP2k on Biowulf (accessed 2026-11-17)
- NERSC: CP2K (accessed 2026-11-17)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







