<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vasp.at/wiki/index.php?action=history&amp;feed=atom&amp;title=WRT_DENSITY</id>
	<title>WRT DENSITY - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vasp.at/wiki/index.php?action=history&amp;feed=atom&amp;title=WRT_DENSITY"/>
	<link rel="alternate" type="text/html" href="https://vasp.at/wiki/index.php?title=WRT_DENSITY&amp;action=history"/>
	<updated>2026-04-29T14:38:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://vasp.at/wiki/index.php?title=WRT_DENSITY&amp;diff=34637&amp;oldid=prev</id>
		<title>Huebsch: Created page with &quot;{{DISPLAYTITLE:WRT_DENSITY}} {{TAGDEF|WRT_DENSITY|string|None}} Description: Select which densities associated to the local potential are written as a post-processing step. ---- {{TAG|WRT_DENSITY}} can select one or multiple densities on the real-space grid in the unit cell to be written, e.g.,   {{TAGBL|WRT_POTENTIAL}} = gradient or   {{TAGBL|WRT_POTENTIAL}} = density gradient laplacian It writes the augmented total (core + valence) pseudo densities (charge and magnetiz...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vasp.at/wiki/index.php?title=WRT_DENSITY&amp;diff=34637&amp;oldid=prev"/>
		<updated>2026-03-12T09:25:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DISPLAYTITLE:WRT_DENSITY}} {{TAGDEF|WRT_DENSITY|string|None}} Description: Select which densities associated to the local potential are written as a post-processing step. ---- {{TAG|WRT_DENSITY}} can select one or multiple densities on the real-space grid in the unit cell to be written, e.g.,   {{TAGBL|WRT_POTENTIAL}} = gradient or   {{TAGBL|WRT_POTENTIAL}} = density gradient laplacian It writes the augmented total (core + valence) pseudo densities (charge and magnetiz...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:WRT_DENSITY}}&lt;br /&gt;
{{TAGDEF|WRT_DENSITY|string|None}}&lt;br /&gt;
Description: Select which densities associated to the local potential are written as a post-processing step.&lt;br /&gt;
----&lt;br /&gt;
{{TAG|WRT_DENSITY}} can select one or multiple densities on the real-space grid in the unit cell to be written, e.g.,&lt;br /&gt;
  {{TAGBL|WRT_POTENTIAL}} = gradient&lt;br /&gt;
or&lt;br /&gt;
  {{TAGBL|WRT_POTENTIAL}} = density gradient laplacian&lt;br /&gt;
It writes the augmented total (core + valence) pseudo densities (charge and magnetization, their gradient, and their laplacian) that enter the [[XC functional]] on the plane-wave grid to {{FILE|vaspout.h5}} in VASP units. That is &amp;lt;math&amp;gt;\AA^{-3}&amp;lt;/math&amp;gt; for charge and &amp;lt;math&amp;gt;\mu_B&amp;lt;/math&amp;gt; for the magnetization. Correspondingly,  &amp;lt;math&amp;gt;\AA^{-4}&amp;lt;/math&amp;gt; for the gradient, etc. &lt;br /&gt;
&lt;br /&gt;
With {{TAG|LWRT_AUGMENTED_DENSITY|F}} the densities can be written without augmentation (compensation charge=0). Mind that the augmented densities are still used during [[electronic minimization]] to evaluate the [[XC functional]] (unlike for the [[METAGGA|MGGA]] specific tag {{TAG|LNOAUGXC}}).&lt;br /&gt;
&lt;br /&gt;
The output is written to {{FILE|vaspout.h5}} and can be accessed by HDF5 command-line tools (h5ls, h5dump).&lt;br /&gt;
  h5ls -r vaspout.h5&lt;br /&gt;
The above shows the table of contents of {{FILE|vaspout.h5}}. Depending on the keywords specified with {{TAG|WRT_DENSITY}} and the system it yields&lt;br /&gt;
  /results/gradient        Group&lt;br /&gt;
  /results/gradient/grid   Dataset {3}&lt;br /&gt;
  /results/gradient/structure Group&lt;br /&gt;
  /results/gradient/structure/position Group&lt;br /&gt;
  /results/gradient/structure/position/direct_coordinates Dataset {SCALAR}&lt;br /&gt;
  /results/gradient/structure/position/ion_sha256 Dataset {1}&lt;br /&gt;
  /results/gradient/structure/position/ion_types Dataset {1}&lt;br /&gt;
  /results/gradient/structure/position/lattice_vectors Dataset {3, 3}&lt;br /&gt;
  /results/gradient/structure/position/number_ion_types Dataset {1}&lt;br /&gt;
  /results/gradient/structure/position/position_ions Dataset {1, 3}&lt;br /&gt;
  /results/gradient/structure/position/scale Dataset {SCALAR}&lt;br /&gt;
  /results/gradient/structure/position/system Dataset {SCALAR}&lt;br /&gt;
  /results/gradient/values Dataset {12, 20, 20, 20}&lt;br /&gt;
The grid density can be increased by choosing a higher value for {{TAG|ENCUT}} or explicitly by {{TAG|NGXF}}, {{TAG|NGYF}}, {{TAG|NGZF}}.&lt;br /&gt;
&lt;br /&gt;
The first dimension of the datasets in /results/charge_density is 1 for nonmagnetic calculation, 2 for spin-polarized calculation, and 4 for noncollinear calculations. For the datasets in /results/gradient the first dimension is multiplied by three to account for the three Cartesian directions. The components for the magnetic calculations correspond to the spinor representation with the scalar part in the first component and the magnetic part in the second ({{TAG|ISPIN}}=2) or &amp;lt;math&amp;gt;m_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m_2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m_3&amp;lt;/math&amp;gt; in the 2nd, 3rd and 4th component ({{TAG|LNONCOLLINEAR}}=T) in the basis of Pauli matrices &amp;lt;math&amp;gt;\{\sigma_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\sigma_2&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathbf{\sigma}_3\}&amp;lt;/math&amp;gt; given by {{TAG|SAXIS}}.&lt;br /&gt;
{{Available|6.6.0}}&lt;br /&gt;
== Related tags and articles ==&lt;br /&gt;
&lt;br /&gt;
{{TAG|WRT_POTENTIAL}},&lt;br /&gt;
{{TAG|ENCUT}}, {{TAG|NGXF}}, {{TAG|NGYF}}, {{TAG|NGZF}}&lt;br /&gt;
&lt;br /&gt;
{{sc|WRT_DENSITY|HowTo|Workflows that use this tag}}&lt;br /&gt;
&lt;br /&gt;
[[Category:INCAR tag]][[Category:Charge density]][[Category:Electronic ground-state properties]]&lt;/div&gt;</summary>
		<author><name>Huebsch</name></author>
	</entry>
</feed>