Learn VASP, LAMMPS and Slurm
Short films and plain guides for running simulations on a cluster.
Nothing matches yet. Try VASP, k-points, POTCAR or LAMMPS.
What is VASP?
What VASP is and how it works: the electron loop inside it, the four input files it needs, what it writes back, and why its answers need checking.
VASP
What are VASP's input files?
What INCAR, POSCAR, KPOINTS and POTCAR each hold, what a line of each looks like, and how CONTCAR starts the next run.
VASP
What is a pseudopotential?
What a pseudopotential replaces, why it makes VASP affordable, how PAW restores the detail, what the name endings mean, and how POTCAR is built.
VASP
What are k-points?
KPOINTS in VASP: what k-points are, how the KPOINTS file or KSPACING sets the mesh, and why metals need more of them than insulators.
VASP
What is an interatomic potential?
What an interatomic potential is, the main kinds in LAMMPS (pair, many-body, machine-learned), how a script uses one, and what to check.
LAMMPS
Why test convergence?
What ENCUT and the k-points do, why no value can be known in advance, and what a real cutoff test on silicon looks like.
VASP
What is DFT (density-functional theory)?
What density functional theory is, in plain words: the density instead of every electron, the Kohn-Sham equations, functionals, and what DFT gets right.
VASP
What is LAMMPS?
What LAMMPS is: a molecular dynamics code driven by an input script, what it simulates, the files it reads and writes, and how a run works.
LAMMPS
What is molecular dynamics?
What molecular dynamics is: atoms moved step by step by the forces between them, what it can tell you, and how VASP and LAMMPS do it.
VASP · LAMMPS
How does molecular dynamics move atoms?
How molecular dynamics moves atoms one time step at a time: forces, velocities and positions, the integrator LAMMPS uses, and what limits the step.
LAMMPS · VASP
What is Slurm?
What Slurm is: the scheduler that runs jobs on a shared cluster, how partitions, nodes and the queue work, and the commands you will use.
Slurm
What is Quantum ESPRESSO?
What Quantum ESPRESSO is, what its main program pw.x calculates, the files a run reads and writes, and how to cite it.
Quantum ESPRESSO
What is in a Quantum ESPRESSO input file?
The namelists and cards of a pw.x input file, read line by line from the official silicon example, and the units each one uses.
Quantum ESPRESSO
How does Quantum ESPRESSO use pseudopotentials?
What a UPF file holds, where pw.x looks for it, how the pseudopotential sets ecutwfc and ecutrho, and where the repository points for libraries.
Quantum ESPRESSO
How do I run my first Quantum ESPRESSO calculation?
Run the official silicon SCF example with pw.x, follow the electron loop in the output, and find the total energy and the convergence line.
Quantum ESPRESSO
How do I run my first VASP calculation, end to end?
Run your first VASP calculation step by step: the four input files, a relaxation of silicon, submitting it, and reading the result.
VASP · Slurm
What cutoff energy (ENCUT) should I use in VASP?
How to choose ENCUT in VASP: what the cutoff does, why ENMAX is the floor, when to go higher, and how to check that your value is high enough.
VASP
Which smearing (ISMEAR and SIGMA) should I use in VASP?
How to choose ISMEAR and SIGMA in VASP: Gaussian, Methfessel-Paxton or tetrahedron, which suits metals, insulators and DOS runs, and how to check SIGMA.
VASP
How do I test convergence for ENCUT and k-points in VASP?
How to run an ENCUT and k-point convergence test in VASP: what to vary, what to hold fixed, which quantity to watch, and when to stop.
VASP
Which exchange-correlation functional should I use in VASP, and when do I need DFT+U?
What the VASP wiki says PBE, PBEsol, SCAN, hybrids and DFT+U are for, how to switch each on in the INCAR, and what each one costs.
VASP
How do I add van der Waals corrections (IVDW) in VASP?
Why PBE misses dispersion, the IVDW methods VASP offers (DFT-D3, Tkatchenko-Scheffler, MBD, vdW-DF) and what each needs, from the VASP wiki.
VASP
How do I set up a magnetic calculation in VASP?
How to set ISPIN and MAGMOM in VASP for a magnetic material: starting moments per atom, ferro- and antiferromagnetic orders, and how to check the result.
VASP
How do I build a supercell, and how should the k-points change with it?
How to repeat a cell into a supercell in VASP's POSCAR or with LAMMPS's replicate, and how to shrink the k-point mesh so the sampling stays the same.
VASP · LAMMPS
How do I build a surface slab in VASP (layers, vacuum, fixed bottom layers)?
How to build a VASP surface slab: layers, vacuum, Selective dynamics for the bottom layers, k-points, dipole corrections and the surface energy.
VASP
How do I make a point defect (vacancy, substitution, interstitial) in VASP?
How to make a vacancy, a substitution or an interstitial in a VASP supercell: editing POSCAR and POTCAR, symmetry, relaxing, and charged defects.
VASP
How do I set up ab initio molecular dynamics in VASP?
The INCAR tags for ab initio molecular dynamics in VASP: ensemble, thermostat, temperatures, symmetry off and how often to write, from the VASP wiki.
VASP
What time step should I use for molecular dynamics?
How to choose POTIM in VASP or timestep in LAMMPS for molecular dynamics: what limits the step, a safe place to start, and the energy-drift test.
VASP · LAMMPS
How do I choose a thermostat and barostat in LAMMPS?
When to use fix nvt, npt, langevin, csvr or Berendsen in LAMMPS, which need fix nve, and how to set the damping times the manual advises.
LAMMPS
How do I choose and cite an interatomic potential for LAMMPS?
How to choose an interatomic potential for LAMMPS: what each family describes, where to find files, how to test one, and how to cite it.
LAMMPS
Should I start fresh or continue from a previous run?
When to restart VASP or LAMMPS from a previous run and when to start fresh: which files carry over (CONTCAR, WAVECAR, CHGCAR, restart files) and why.
VASP · LAMMPS
How do I avoid a failed VASP or LAMMPS run from bad settings?
The settings that waste a VASP or LAMMPS run, how to check each one by hand before you submit, and what a short test job tells you, from the docs.
VASP · LAMMPS · Slurm
How do I submit a job on a SLURM cluster?
How to submit a VASP or LAMMPS job on a SLURM cluster: the sbatch script line by line, nodes, tasks and walltime, then squeue, sacct and scancel.
Slurm · VASP · LAMMPS
Why is my SLURM job still waiting in the queue?
Why a SLURM job stays pending: how to read the reason squeue gives (Priority, Resources, limits), and what you can change to get it started.
Slurm
How do I estimate how long and how much memory a job will need?
Estimate walltime and memory before submitting: time a short VASP or LAMMPS test, read sacct, scale up, and request with a margin.
Slurm · VASP · LAMMPS
How do I use my cores well in VASP?
How to set NCORE, KPAR and the number of nodes for VASP on a cluster: what each does, how they fit together, and how to test the speed-up.
VASP · Slurm
How do I chain SLURM jobs and run many calculations as a job array?
Split a long VASP or LAMMPS run into chained SLURM jobs with --dependency, and run sweeps as job arrays, from the SLURM documentation.
Slurm
How do I move files to and from a cluster, and keep my storage in check?
Copy files to and from a cluster with rsync, scp and sftp, check what a folder holds with du, and keep VASP and LAMMPS output in check.
Slurm
How do I keep a long LAMMPS run safe?
How to keep a long LAMMPS run safe: restart files, dump size, thermo output and the timer timeout, so a crash or the walltime costs little.
LAMMPS · Slurm
How do I install or compile LAMMPS?
How to get LAMMPS on a cluster: check for a module first, or build it with CMake and the packages your potential needs, then test the binary.
LAMMPS
How do I fix a job that ran out of memory or walltime?
How to fix a SLURM job that ran out of memory or time: how to tell which, then memory per rank, fewer ranks per node, a longer walltime or a restart.
Slurm · VASP
What do VASP's error messages mean, and what should I try?
What a VASP error message means and how to fix it: find the whole message, sort input errors from convergence trouble, and try the fixes in order.
VASP · Slurm
How do I fix a VASP relaxation that won't converge?
Why a VASP relaxation does not converge: electronic loop first, then the ionic settings (IBRION, POTIM, EDIFFG, NSW), and how to continue from CONTCAR.
VASP
How do I spot a molecular dynamics run that has gone wrong, and stop it?
How to spot an MD run gone wrong in VASP or LAMMPS: the warning signs in the output, what usually causes them, and how to stop the job.
VASP · LAMMPS · Slurm
How do I tell a bug in VASP or LAMMPS from my own mistake?
How to tell a bug in VASP or LAMMPS from an input mistake: find your version, check the Known issues page or LAMMPS releases, and build a minimal example.
VASP · LAMMPS
ZBRENT: fatal error in bracketing
What "ZBRENT: fatal error in bracketing" means in a VASP relaxation, the bug fixed in VASP 6.6, and what to try, from the VASP wiki and forum.
VASP · Error page
Error EDDDAV: Call to ZHEGV failed
What "Error EDDDAV: Call to ZHEGV failed" means in VASP, its usual causes from the VASP team's forum answers, and what to try first.
VASP · Error page
WARNING in EDDRMM: call to ZHEGV failed
What "WARNING in EDDRMM: call to ZHEGV failed" means in VASP, when it is harmless, and what the VASP team's forum answers suggest.
VASP · Error page
WARNING: Sub-Space-Matrix is not hermitian in DAV
What "Sub-Space-Matrix is not hermitian in DAV" means in VASP, its usual causes from the VASP team's forum answers, and what to try.
VASP · Error page
VERY BAD NEWS! internal error in subroutine IBZKPT: Reciprocal lattice and k-lattice belong to different class of lattices
What the IBZKPT "different class of lattices" message means in VASP, why it is usually not fatal, and how to choose a compatible k-mesh.
VASP · Error page
Your highest band is occupied at some k-points! ... you have included TOO FEW BANDS!!
What VASP's TOO FEW BANDS warning means, why spin-polarized runs hit it, the NBANDS bug fixed in 6.6.0, and how to choose NBANDS.
VASP · Error page
ERROR: Lost atoms: original N current M
What "ERROR: Lost atoms" means in LAMMPS, why atoms get lost, and the fixes from the manual in the order to try them.
LAMMPS · Error page
ERROR on proc P: Bond atoms N M missing on proc P at step S
What "Bond atoms missing" means in LAMMPS, why bonded atoms go missing in parallel runs, and the fixes from the manual in the order to try them.
LAMMPS · Error page
ERROR on proc P: Out of range atoms - cannot compute PPPM
What "Out of range atoms - cannot compute PPPM" means in LAMMPS, why it happens with PPPM, PPPMDisp and MSM, and the manual's fixes in order.
LAMMPS · Error page
ERROR on proc P: Neighbor list overflow, boost neigh_modify one
What "Neighbor list overflow, boost neigh_modify one" means in LAMMPS, what to check before raising the limit, and how to raise one and page together.
LAMMPS · Error page
ERROR on proc P: Non-numeric atom coords - simulation unstable
What "Non-numeric atom coords - simulation unstable" means in LAMMPS, why positions become NaN or Inf, and the manual's fixes in the order to try them.
LAMMPS · Error page
ERROR: Unrecognized pair style 'X' is part of the Y package which is not enabled in this LAMMPS binary
What "Unrecognized pair style" or "Unrecognized fix style" means in LAMMPS, how to tell a typo from a missing package, and how to get a build with it.
LAMMPS · Error page
OUT_OF_MEMORY: Some of the step tasks have been OOM Killed
What OUT_OF_MEMORY and "oom_kill event" mean on SLURM, how to see what the job used, and how to ask for more with --mem or --mem-per-cpu.
Slurm · Error page
CANCELLED AT ... DUE TO TIME LIMIT
What "CANCELLED ... DUE TO TIME LIMIT" means on SLURM, how to continue a VASP or LAMMPS run, and how to ask for more time.
Slurm · VASP · LAMMPS · Error page
"Batch job submission failed: Invalid account or account/partition combination specified"
sbatch: error: Invalid account or account/partition combination specified. Fix: list your accounts with sacctmgr show associations, then use --account.
Slurm · Error page
"Batch job submission failed: Requested time limit is invalid (missing or exceeds some limit)"
What "Requested time limit is invalid" means on SLURM: a walltime over the partition limit or no --time at all, and how to fix the request.
Slurm · Error page
"Batch job submission failed: Requested node configuration is not available"
sbatch: Requested node configuration is not available means no node can run the job as asked. Fix: check the nodes with sinfo, then ask for less per node.
Slurm · Error page
CANCELLED AT ... DUE TO NODE FAILURE (NODE_FAIL)
What "CANCELLED ... DUE TO NODE FAILURE" and NODE_FAIL mean on SLURM, how to tell whether the job was requeued, and how to continue a VASP or LAMMPS run.
Slurm · VASP · LAMMPS · Error page
How do I read OSZICAR and OUTCAR while a VASP job runs?
What each line of VASP's OSZICAR and OUTCAR means, which numbers to watch while a job runs, and the grep commands for energies, forces and pressure.
VASP
How do I know when a molecular dynamics run is equilibrated?
How to tell when an MD run in VASP or LAMMPS is equilibrated: what to plot, the checks to run, and how much of the start to discard.
VASP · LAMMPS
How do I calculate a band structure or density of states from a static run?
Run a VASP band structure or density of states: a self-consistent run, then a fixed-density run with a k-path or a denser mesh, and the settings to change.
VASP
How do I fit an equation of state for the lattice constant and bulk modulus in VASP?
How to compute an energy-volume curve in VASP and fit a Murnaghan or Birch-Murnaghan equation of state for the lattice constant and bulk modulus.
VASP
How do I compute a formation, adsorption or defect energy from several VASP runs?
How to get an adsorption, surface, formation or defect energy from several VASP runs: the subtraction, the reference runs and the settings to match.
VASP
How do I run a phonon or vibrational-frequency calculation in VASP?
How to compute phonons and vibrational frequencies with VASP finite differences (IBRION 6), read the modes in OUTCAR and spot real imaginary modes.
VASP
How do I find a reaction or diffusion barrier with NEB in VASP?
How to set up a nudged elastic band (NEB) run in VASP, with IMAGES and SPRING, read the barrier from the image folders, and check you found a saddle point.
VASP
How do I compute an RDF, MSD or diffusion coefficient in LAMMPS?
Compute g(r) with compute rdf, the MSD with compute msd and a diffusion coefficient from its slope in LAMMPS, during a run or from a dump.
LAMMPS
What should I record about a calculation for a paper?
What to record from a VASP or LAMMPS run for a methods section: versions, settings, POTCAR titles, potential files and the citations developers ask for.
VASP · LAMMPS
Learn works without Verlet: every step is given with plain input files and cluster commands.