Skip to content

8.5 NpT dynamics, pressure units and a stable simulation cell

These are unexecuted teaching inputs and starting settings to test. Original figures are schematics, not computed results. Use licensed VASP and PAW data, replace every placeholder, record the executable version and validate convergence.

8.5.1 Model, units and provenance

Use eV for energy, Å for length and eV/Å for force; 1 kbar = 0.1 GPa. State normalization per atom, molecule, primitive cell or simulation cell. Record PAW identifiers, release, ZVAL, ENMAX and permitted hashes; never redistribute POTCAR. SCF convergence addresses the chosen electronic problem; convergence of the target property requires separate tests.

 NpT dynamics, pressure units and a stable simulation cell — original conceptual schematic

Original schematic. Curves explain concepts; blank data areas await verified learner results. No calculation is claimed.

8.5.2 Worked case: procedure, interpretation and checks

Intuition

NVT fixes the container; NpT lets the container respond. In a small periodic calculation, instantaneous stress can fluctuate enormously. The barostat reacts to a noisy microscopic quantity through artificial cell degrees of freedom, so both pressure accuracy and cell-response timescale matter. Pressure is not validated by merely seeing a line labelled “external pressure.”

Prerequisites. Use a fully periodic bulk solid or liquid with sensible initial density. Complete fixed-cell pilot tests first. Converge stress with basis and k sampling on representative states. Underconverged basis sets can produce Pulay stress, biasing equilibrium volume even when total energies appear stable. The ISIF documentation discusses stress and cell optimization requirements; use explicit convergence tests rather than copying a fixed multiplier as universal truth. ISIF

VASP’s standard Langevin NpT route couples ionic and lattice motion. It needs cell freedom, atomic friction, lattice friction and fictitious lattice mass; availability depends on the build. PMASS is an artificial cell mass in amu, not the material’s molar mass. PMASS

The stated PMASS and frictions are trial settings. VASP uses kbar for PSTRESS: 10 kbar is 1 GPa, not 10 GPa. Positive external pressure corresponds to compression in this convention. Do not mix tensile-positive stress from another package with VASP pressure without transforming definitions. PSTRESS

Practical steps

  1. At the starting volume, run fixed-cell checks and plot all six independent stress components, temperature and energy. A high initial pressure may reflect wrong density or electronic stress error.
  2. Enable the tested NpT controls for a short segment. Save cell vectors every frame in a format/reader that preserves variable cells. Do not reconstruct the entire trajectory with the first frame’s lattice.
  3. Monitor volume, density, cell lengths, angles, minimum cell height and determinant. A positive volume alone does not exclude a severely skewed cell.
  4. If cell motion is violent, stop and diagnose starting density, timestep, stress convergence, lattice mass and friction. A larger PMASS generally slows cell response; an excessively small one can destabilize it. Slowing the barostat does not correct wrong stress.
  5. Separate the initial volume relaxation from stationary production. Compare multiple time blocks and independent starting volumes; estimate autocorrelation rather than treating every cell snapshot as independent.
  6. For a liquid, consider whether cell-shape wandering is meaningful or harmful. Use supported constraints only after understanding their implementation for your version. Do not assume ISIF=4 or 7 implements the desired NpT constraint, since the documented Langevin route does not provide those combinations. MDALGO
  7. Report mean volume and density with uncertainty, target pressure, pressure convention, cell constraints and all barostat settings. If using the averaged volume for a later NVT run, separately validate that transfer and re-equilibrate.

Surface warning and interpretation

Do not apply a bulk isotropic NpT recipe to a slab plus vacuum. The empty region participates in the numerical cell volume, while a physical external-pressure bath for a surface requires a more careful model. The barostat can collapse or distort vacuum. Interfaces often need a fixed lateral area/cell or a properly justified anisotropic/constrained treatment, not merely a changed ISIF value.

Instantaneous pressure is noisy; long-lived drift in mean volume is more concerning than one pressure spike. A crystalline shear or phase transition can be physical, but first exclude lattice integration instability. Check whether it recurs under smaller timestep, better stress convergence, different barostat response and independent initial conditions.

Traps: confusing kbar and GPa; forcing mean pressure to match within one short picosecond; reducing ENCUT for faster NpT while ignoring stress; calling a collapsed liquid cell a phase transition; computing density from an incorrectly parsed constant cell; reporting temperature control without reporting lattice control.

Exercise. For your chosen bulk system, design two PMASS branches and two starting-volume branches. Define what time-series evidence distinguishes reversible equilibration, persistent drift and cell pathology. Do not predict a thermal expansion coefficient from the input alone.

8.5.3 Unexecuted inputs and analysis scaffolds

These are unexecuted teaching inputs and starting settings to test. Original figures are schematics, not computed results. Use licensed VASP and PAW data, replace every placeholder, record the executable version and validate convergence.

8.5.3.1 Input block 1

# UNEXECUTED NpT delta: example TWO-species fully periodic bulk
IBRION = 0
MDALGO = 3
ISIF = 3
TEBEG = 600
TEEND = 600
POTIM = 0.5
NSW = 2000
LANGEVIN_GAMMA = 5.0 5.0
LANGEVIN_GAMMA_L = 5.0
PMASS = 1000
PSTRESS = 0.0
ISYM = 0

8.5.5 Technical sources