Skip to content

BMD Compute Workflows

Lee Burton edited this page Sep 26, 2026 · 4 revisions

BMD Compute Workflows

Authority. BMD Compute is authoritative for how BMD VASP calculations are generated and executed. BMDex supplies curated supporting data, evidence and tools. Scientific validation and adoption are separate human review.

This page explains why BMD Compute's workflows are built from the stages they contain. It does not define them.

This is the second of four pages:

  1. VASP — fundamentals: the density-functional physics and the core VASP settings.
  2. BMD Compute Workflows (this page): why calculations are sequences of stages and what passes between them.
  3. BMD Compute INCARs: the complete INCARs of each workflow and what their settings mean.
  4. BMD Compute Advanced Options: optional physics and method modifiers.

How to read this page

Each workflow section has two parts:

  • BMD workflow facts — what BMD Compute does, taken from the workflow definitions and the generated INCARs. These are established.
  • The physics — the general numerical and physical reasons why sequences like this are used in DFT practice. This is the wiki's explanation. Unless it says otherwise, it is not a statement of BMD Compute's own rationale.

The four workflows

In BMD Compute you choose a workflow by the result you want. Each workflow is a fixed sequence of stages, and each stage is a separate VASP run.

Desired output Stages, in order
Static Energy PBE Static Energy
Relaxed Structure PBE Geometry Optimisation → PBE Geometry Optimisation
Density of States PBE Geometry Optimisation → HSE06 Static Energy → HSE06 Density of States
Band Structure PBE Geometry Optimisation → HSE06 Static Energy → HSE06 Band Structure

The complete INCAR for every stage is on BMD Compute INCARs.

Why a calculation is a sequence of stages

A single VASP run answers one kind of question well, and different questions need settings that pull in different directions:

  • Finding the structure means following forces and stresses downhill on the Born–Oppenheimer energy surface. It needs one self-consistent (SCF) solution per ionic step, and settings that behave well while the geometry changes.
  • Establishing the electronic ground state of a fixed structure needs a well-converged basis and Brillouin-zone integration at that geometry.
  • Spectral quantities, such as a density of states or a band structure, need Kohn–Sham eigenvalues on k-point sets chosen for that purpose.

Splitting these into stages lets each run use settings suited to its job.

What passes between stages

Two kinds of information can, in principle, pass from one stage to the next:

  • The structure: the lattice vectors and atomic positions at the end of a stage.
  • The electronic state: the converged density and orbitals.

In VASP these correspond to files (a relaxed structure is written to CONTCAR; the density can be written to CHGCAR and the orbitals to WAVECAR), and a later run can read them.

What is established for BMD Compute:

  • In the Relaxed Structure workflow, Stage 2 starts from the structure produced by Stage 1.
  • No stage in any of the four workflows writes WAVECAR (LWAVE = False throughout).
  • The stages that write CHGCAR (LCHARG = True) are the PBE Static Energy stage and the HSE06 Static Energy stage. The Geometry Optimisation, HSE06 Density of States and HSE06 Band Structure stages do not.
  • No stage sets ISTART or ICHARG explicitly.

Not specified here: which files BMD Compute copies from one stage to the next, and whether any later stage reads a previous stage's CHGCAR. This page describes hand-offs conceptually only. The KPOINTS used by each stage are also not specified here.


Static Energy

BMD workflow facts

  • One stage: PBE Static Energy.
  • It is a single-point calculation (NSW = 0) at the structure you supply, using the tetrahedron method (ISMEAR = -5), and it writes the charge density, local potential, all-electron densities, electron localisation function and projected output.

The physics

Scientific result. The self-consistent PBE ground state of the given structure at fixed geometry: its total energy, electron density and electronic structure on the calculation's k-point mesh.

Why there are no earlier stages. The structure is taken as given. This is appropriate when the structure is already the one you want to study, for example an experimental structure or one relaxed consistently elsewhere. The energy is only as meaningful as the structure: the static energy of an unrelaxed structure is not an equilibrium energy, and energies should only be compared between calculations with consistent settings.


Relaxed Structure

BMD workflow facts

  • Two consecutive PBE Geometry Optimisation stages.
  • Both stages use identical INCAR settings: variable-cell relaxation of positions, cell shape and volume (ISIF = 3) by conjugate gradients (IBRION = 2), up to 99 ionic steps, force criterion 0.01 eV/Å (EDIFFG = -0.01), ENCUT = 580.0.
  • Stage 2 starts from the structure produced by Stage 1.

The physics

Scientific result. The PBE equilibrium structure (lattice vectors and atomic positions): the structure at which the forces on all atoms and the stress on the cell vanish, to within the convergence criteria.

Why relax twice? Repeating a variable-cell relaxation from its own result is common DFT practice. One well-established reason is the basis-set effect called Pulay stress, explained below. Restarting can also help in other ways, for example when the first run starts far from equilibrium and uses up its ionic steps, or simply to confirm that the structure no longer changes. The wiki does not state BMD Compute's own rationale for the second stage beyond the sequence itself.

Pulay stress and repeated variable-cell relaxation

The plane waves in the basis are ei(k+G)·r, with G the reciprocal-lattice vectors. At the start of a run, VASP selects the G vectors whose kinetic energy ħ²|k+G|²/2m lies below ENCUT for the initial cell, and keeps that set of plane waves for the whole run.

When a variable-cell relaxation changes the cell, the reciprocal lattice changes with it, so the kinetic energies of the retained plane waves change. If the cell contracts, the G vectors lengthen and the fixed set now reaches above the nominal cutoff; if the cell expands, it falls short of it. By the end of the run, the basis is no longer the one a fresh run at ENCUT would use for the new cell.

In a complete basis this would not matter. In a truncated basis, the total energy depends on how complete the basis is, and the stress (the derivative of the energy with respect to strain) picks up a contribution from that dependence rather than from the physics. This spurious contribution is the Pulay stress. Its size depends on how strongly the total energy still changes with the cutoff. Because the energy decreases as the basis grows, the Pulay stress acts to shrink the cell, so relaxations at too low a cutoff tend to underestimate the equilibrium volume.

Two things reduce it:

  • A cutoff well above the POTCAR's recommended ENMAX. The closer the basis is to complete, the less the energy depends on the cutoff, and so the smaller the Pulay stress.
  • Restarting the relaxation. A new run rebuilds the plane-wave set for the current cell at the nominal cutoff. If the first relaxation changed the volume substantially, the second relaxation corrects the structure with a basis consistent with the new cell. If the second relaxation barely changes the structure, the result is stable with respect to the basis; if it changes it noticeably, the first result was not reliable on its own.

Neither step removes basis-set error entirely; they reduce the inconsistency between the basis and the final cell.


Density of States

BMD workflow facts

  • Three stages: PBE Geometry Optimisation → HSE06 Static Energy → HSE06 Density of States.
  • Stage 1 has the same settings as each Geometry Optimisation stage in the Relaxed Structure workflow. There is one geometry optimisation stage in this workflow, not two.
  • Stage 2, the HSE06 Static Energy stage, is a self-consistent single-point hybrid-functional calculation (NSW = 0). It is identical in the Density of States and Band Structure workflows. It writes CHGCAR but not WAVECAR.
  • Stage 3 is also a self-consistent single-point HSE06 calculation (NSW = 0), with the tetrahedron method (ISMEAR = -5), a fine energy grid for the DOS (NEDOS = 4001) and site- and orbital-projected output (LORBIT = 11).

The physics

Scientific result. The HSE06 electronic density of states,

g(E) = Σn ∫BZ δ(E − En(k)) dk / ΩBZ,

and its site- and orbital-projected components, evaluated at the PBE-relaxed structure. It shows how Kohn–Sham states are distributed in energy, and is used for example to read off band edges and gaps and to see which atoms and orbitals form the valence and conduction bands.

Why the PBE geometry optimisation comes first. Relaxation needs forces and stresses at every ionic step, and so an SCF solution at every step. With a hybrid functional each SCF solution is far more expensive than with PBE, because the exact-exchange operator couples pairs of orbitals across pairs of k-points. Relaxing with PBE gives the structure at a small fraction of the cost.

The result is therefore a hybrid-functional electronic structure evaluated at a PBE-relaxed geometry, not at the HSE06 equilibrium geometry. PBE tends to slightly overestimate the lattice constants of many solids, and band gaps depend on the lattice constant, so this is part of what the result means. When you report it, state both the functional used for the geometry (PBE) and the functional used for the electronic structure (HSE06).

Why there is an HSE06 Static Energy stage. This stage solves the hybrid-functional Kohn–Sham equations self-consistently at the fixed relaxed geometry. It establishes the HSE06 electronic ground state of that structure: the self-consistent orbitals, density and total energy at the hybrid level of theory, together with the full set of static outputs (charge density, local potential, all-electron densities, electron localisation function).

A hybrid Hamiltonian depends on the occupied orbitals, not only on the density, so a PBE ground state does not define an HSE06 one. The static stage is where the hybrid-functional ground state of the relaxed structure is established and recorded. Whether the final stage reads anything from it, or reconverges from its own starting point, is not specified here; the final stage is itself self-consistent.

Why the final stage is specific to a density of states. A density of states is an integral over the whole Brillouin zone. It needs eigenvalues on a uniform k-point mesh and an integration method suited to that mesh, such as the tetrahedron method used in Stage 3. The k-point mesh BMD Compute uses for this stage is not specified here.


Band Structure

BMD workflow facts

  • Three stages: PBE Geometry Optimisation → HSE06 Static Energy → HSE06 Band Structure.
  • Stages 1 and 2 have the same settings as Stages 1 and 2 of the Density of States workflow.
  • Stage 3 is a self-consistent single-point HSE06 calculation (NSW = 0) with Gaussian smearing of very small width (ISMEAR = 0, SIGMA = 0.01).

The physics

Scientific result. The HSE06 band structure En(k): the Kohn–Sham eigenvalues of each band n along a path of high-symmetry directions in the Brillouin zone, at the PBE-relaxed structure. From it you can see whether the gap is direct or indirect, where the band extrema lie, and how the bands disperse (for example their curvature, which relates to effective masses).

Why the first two stages are needed. For the same reasons as in the Density of States workflow: the PBE stage establishes the geometry at affordable cost, and the HSE06 Static Energy stage establishes the self-consistent HSE06 electronic ground state of that structure. The same point about reporting both functionals applies.

Why the final stage differs from the density-of-states stage. A band structure is not an integral over the Brillouin zone; it is the set of eigenvalues at specific k-points along a path. Two consequences follow:

  • Occupations. The tetrahedron method needs a uniform mesh, so it cannot be applied to points along a path. Gaussian smearing with a very small width is used instead, as in Stage 3.
  • k-points and self-consistency. With a semilocal functional such as PBE, a converged density fixes the Kohn–Sham potential, and eigenvalues at any other k-points can be computed non-self-consistently in that fixed potential. With a hybrid functional this does not work, because the exact-exchange operator is built from the orbitals on the whole uniform mesh. The standard approach is a self-consistent run on a regular, weighted mesh with the path k-points added at zero weight, so that they receive eigenvalues from the self-consistent Hamiltonian without contributing to the density. Stage 3 is indeed self-consistent; the exact k-point construction BMD Compute uses is not specified here. The manual walk-through in Calculating Band Structure in VASP shows the zero-weight procedure as a teaching example.

Not yet specified

  • The file-level hand-off between stages (which of CONTCAR, CHGCAR and WAVECAR are passed, and how later stages read them).
  • The KPOINTS construction for each stage, including the Density of States mesh and the Band Structure path.

Related pages

Clone this wiki locally