VASP: The Vienna Ab initio Simulation Package#
Introduction#
VASP (Vienna Ab initio Simulation Package) is one of the most widely used software packages for performing ab initio quantum mechanical calculations using density functional theory (DFT). Developed at the University of Vienna, VASP has become a standard tool in computational materials science for studying the electronic structure and properties of materials.
What is VASP?#
VASP is a plane-wave DFT code that can:
Calculate ground-state electronic structures
Perform geometry optimisations
Run molecular dynamics simulations
Compute various materials properties
Handle periodic systems effectively
Key Features#
Efficiency: Optimised algorithms for large-scale calculations
Accuracy: Implements current DFT methods
Versatility: Supports various functionals and calculation types
Scalability: Excellent parallel performance on HPC systems
Reliability: Thoroughly tested and validated
Capabilities of VASP#
1. Electronic Structure Calculations#
Band Structures: Complete electronic band diagrams
Density of States (DOS): Total and projected DOS
Charge Densities: Spatial distribution of electrons
Work Functions: Surface electronic properties
Fermi Surfaces: For metallic systems
2. Structural Properties#
Geometry Optimisation: Finding equilibrium structures
Lattice Parameters: Determining crystal structures
Surface Reconstructions: Studying surface arrangements
Defect Structures: Vacancies, interstitials, substitutions
Phase Transitions: Structural transformations
3. Mechanical Properties#
Elastic Constants: Full elastic tensor
Bulk Modulus: Compressibility
Phonon Calculations: Vibrational properties
Thermal Expansion: Temperature-dependent properties
4. Magnetic Properties#
Collinear Magnetism: Ferromagnetic/antiferromagnetic states
Non-Collinear Magnetism: Complex spin arrangements
Spin-Orbit Coupling: Relativistic effects
Magnetic Anisotropy: Directional preferences
5. Optical Properties#
Dielectric Functions: Frequency-dependent response
Absorption Spectra: Optical absorption
Reflectivity: Surface optical properties
Electron Energy Loss: EELS spectra
6. Advanced Calculations#
GW Approximation: Many-body corrections
BSE: Bethe-Salpeter equation for excitons
RPA: Random phase approximation
Hybrid Functionals: HSE06, PBE0
Van der Waals: DFT-D3, vdW-DF
VASP vs MACE: Key Differences#
Aspect |
VASP |
MACE |
---|---|---|
Method |
Ab initio DFT |
Machine Learning Potential |
Accuracy |
Reference quality |
~1-5 meV/atom from DFT |
Speed |
Hours to weeks |
Seconds to minutes |
System Size |
~100-1000 atoms |
~10,000-1,000,000 atoms |
Training Data |
Not required |
Essential |
Properties |
All electronic properties |
Energy, forces, stress |
Transferability |
Universal |
Limited to training domain |
Cost |
Commercial licence |
Open source |
Hardware |
HPC clusters |
Single workstation possible |
When to Use VASP#
New Systems: Exploring unknown materials
Electronic Properties: Band gaps, DOS, charge densities
High Accuracy: Reference calculations
Complex Properties: Optical, magnetic, excited states
Method Development: Testing new functionals
Publication Standards: When DFT reference is required
When to Use MACE#
Large Systems: >1000 atoms
Long Timescales: Extended MD simulations
High Throughput: Screening many structures
Known Chemistry: Within training domain
Finite Temperature: Thermal properties
Real-Time Applications: Interactive simulations
Technical Details#
Input Files#
VASP requires four main input files:
Tip
Do note that these are by far non-exhaustive as VASP contains a list of lots of input parameters that can vary with workflows, materials and systems under study. For more information, refer to the VASP documentation at VASP Wiki INCAR tags.
INCAR: Calculation parameters
SYSTEM = Silicon
ENCUT = 400
PREC = Accurate
ISMEAR = 0
SIGMA = 0.05
POSCAR: Crystal structure
Silicon
1.0
5.43 0.00 0.00
0.00 5.43 0.00
0.00 0.00 5.43
Si
8
Direct
0.00 0.00 0.00
0.25 0.25 0.25
...
KPOINTS: k-point sampling
Automatic mesh
0
Monkhorst-Pack
8 8 8
0 0 0
POTCAR: Pseudopotentials (provided with licence)
Output Files#
OUTCAR: Detailed output
CONTCAR: Final structure
EIGENVAL: Eigenvalues
DOSCAR: Density of states
CHGCAR: Charge density
WAVECAR: Wavefunctions
Computational Workflow Comparison#
VASP Workflow#
Prepare input files
Submit to HPC queue
Wait hours/days for completion
Post-process results
Analyse properties
MACE Workflow#
Load pre-trained model (or train custom model)
Run calculation (seconds/minutes)
Immediate results
Iterate rapidly
Use VASP for validation if needed
Practical Considerations#
Computational Cost#
VASP Scaling:
CPU time ~ N³ (N = number of electrons)
Memory ~ N²
Typical calculation: 100-10,000 CPU hours
MACE Scaling:
CPU time ~ N (N = number of atoms)
Memory ~ N
Typical calculation: 1-100 CPU hours
Accuracy Considerations#
VASP:
Systematic errors from functional choice
Convergence with respect to:
Plane-wave cutoff
k-point sampling
SCF tolerance
MACE:
Errors from:
Training data quality
Model architecture
Extrapolation beyond training
Integration Strategy#
An effective approach often combines both methods:
Initial Exploration: Use MACE for rapid screening
Refinement: Validate interesting structures with VASP
Training Data: Generate VASP data for MACE training
Property Calculation: Use VASP for electronic properties
Dynamics: Use MACE for long MD trajectories
Example: Studying a New Material#
Traditional VASP-Only Approach#
Structure prediction (days-weeks)
Geometry optimisation (hours-days)
Property calculations (days)
Limited configurational sampling
MACE-Accelerated Approach#
Rapid structure search with MACE (hours)
Screen 1000s of configurations (hours)
Validate top candidates with VASP (days)
Train specialised MACE model
Extensive sampling and dynamics
Licensing and Access#
VASP#
Commercial Software: Requires paid licence
Academic Licence: ~€4000-5000 for group
Installation: Complex, requires expertise
Support: Professional support available
MACE#
Open Source: MIT licence
Free: No cost
Installation: Simple pip install
Community: Active development and support
Future Perspectives#
The future of materials modelling likely involves:
Hybrid Workflows: VASP for reference, MACE for production
Active Learning: MACE identifies where VASP calculations are needed
Multi-Fidelity: Combining different levels of theory
Automated Workflows: Seamless integration of both approaches
Conclusion#
VASP and MACE serve complementary roles in modern computational materials science:
VASP: A standard tool for ab initio calculations, providing reference-quality results and access to all electronic properties
MACE: Enables simulations at scales and timescales not feasible with DFT
Understanding when and how to use each tool is important for efficient materials research. Whilst VASP remains essential for electronic structure calculations and method validation, MACE provides new possibilities for large-scale simulations and rapid materials screening. The combination of these approaches represents a promising direction for computational materials discovery.