# Calculation Details

We use DFT as implemented in the Vienna Ab Initio Simulation Package (VASP) software [\[1\]](#references) to evaluate the total energy of compounds. For the exchange-correlational functional, we employ a mix of Generalized Gradient Approximation (GGA) and GGA+*U*, or a mix of GGA, GGA+U, and r2SCAN. Both mixing schemes are [described here](/methodology/materials-methodology/thermodynamic-stability/thermodynamic-stability.md). All calculations are performed at 0 K and 0 atm. All computations are performed with spin polarization on and with magnetic ions in a high-spin ferromagnetic initialization (the system can of course relax to a low spin state during the DFT relaxation). For a select number of materials, alternate spin states are searched for. Details on this can be found in the [Magnetic Properties section](/methodology/materials-methodology/magnetic-properties.md).

Input structures are sourced from many different places, including the Inorganic Crystal Structure Database (ICSD). [\[2\]](#references) We relax all cell and atomic positions in our calculation two times in consecutive runs. When multiple crystal structures are present for a single chemical composition, we attempt to evaluate all unique structures as determined by an affine mapping technique. [\[3\]](#references)

More detailed information on the GGA/GGA+U and r2SCAN calculations run by the Materials Project can be found in the following two subsections:

{% content-ref url="/pages/caDA65fTcpzFVmMZlWFi" %}
[GGA/GGA+U Calculations](/methodology/materials-methodology/calculation-details/gga+u-calculations.md)
{% endcontent-ref %}

{% content-ref url="/pages/auYtsX2akEwuhyGKEjAK" %}
[r2SCAN Calculations](/methodology/materials-methodology/calculation-details/r2scan-calculations.md)
{% endcontent-ref %}

## References

\[1]: Kresse, G. & Furthmuller, J., 1996. Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set. Physical Review B, 54, pp.11169-11186.

\[2]: G. Bergerhoff, The inorganic crystal-structure data-base, Journal Of Chemical Information and Computer Sciences. 23 (1983) 66-69.

\[3]: R. Hundt, J.C. Schön, M. Jansen, CMPZ - an algorithm for the efficient comparison of periodic structures, Journal Of Applied Crystallography. 39 (2006) 6-16.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.materialsproject.org/methodology/materials-methodology/calculation-details.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
