Skip to content

Electronic Charge Density Mesh Calculation

This tutorial page explains how to calculate and visualize the electronic charge density mesh based on Density Functional Theory. We consider crystalline silicon in its standard equilibrium cubic-diamond crystal structure, and use Quantum ESPRESSO as our main simulation engine during this tutorial.

Quantum ESPRESSO version considered in this tutorial

The present tutorial is written for Quantum ESPRESSO at versions 5.2.1, 5.4.0, 6.0.0 or 6.3.

Create job

Silicon in its cubic-diamond crystal structure is the default material that is shown on new job creation, unless this default was changed by the user following account creation. If silicon is still the default choice, it will as such be automatically loaded at the moment of the opening of Job Designer.

Choose Workflow

Workflows for calculating the electronic density mesh through Quantum ESPRESSO can readily be imported from the Workflows Bank into the account-owned collection. This workflow can later be selected and added to the Job being created.

Set Sampling in Reciprocal Space

It is critical to have a high k-point density in order to calculate the electronic density with sufficient accuracy and to properly visualize the resulting charge density iso-surfaces.

For Quantum ESPRESSO, the workflow for "Electronic Density Mesh" contains only one unit that produces an output file called density.xsf.

We set the size of the grid of k-points to 18 x 18 x 18 in the first workflow unit. This provides a dense enough k-point sampling in order to resolve the fine features present within the electron charge density mesh. The validity of this choice of k-grid size for yielding accurate results of order meV in the final energy can be verified by performing the relevant convergence study.

Submit Job

Before submitting the job, the user should click on the "Compute" tab of Job Designer and inspect the compute parameters included therein. Silicon is a small structure, so 4 CPUs and 1 minute of calculation runtime should be sufficient.

Examine Results

Once the computation is complete at the end of Job execution, switching to the Files tab of Job Viewer will show a listing of the files and directories on the system associated with the electronic density job under consideration.

The file that is of interest to us in this case is the aforementioned "density.xsf" output file, containing the results for the electronic charge density computation.

Preparing for Visualization

Open remote Desktop

Following Job execution, we are now ready to visualize graphically the electron density mesh. The next step is to open a Remote Desktop Connection so that graphical interface programs for visualization purposes can be run. Instructions on how to open the Remote Desktop Interface starting from our Web Interface can be found here.

Open visualization software

The next steps depend on the analysis and visualization software preferred by the user. We provide below two examples supported on our platform, for the cases of XCrysden and VESTA respectively. Instructions on how to open Applications in the Remote Desktop Environment can be retrieved in this page.

If the default project was used for the electron charge density calculation, then the location of the "density.xsf" output file referenced in what follows will be: /home/<username>/data/<username>/<job name>/. Otherwise, the full path to the file is shown underneath the filename among the list of entries in the Files tab of Job Viewer.

Visualize Charge Density with XCrysden

The user should first open the XCrysden analysis and visualization software suite.

Within XCrysden, the user should first go to "File" > "Open", and then navigate to the directory where the "density.xsf" electron density file was saved by the previously-executed Job. This opens the file for a visualization of the electron density.

At this stage, the user can adjust the value of charge density to be shown, and toggle the isosurface buttons to display the corresponding data.

Visualize Charge Density with Vesta

The user can alternatively open the VESTA analysis and visualization software package, for achieving the same objective and purpose as with XCrysden described above.

Within VESTA, first go to file->Open and then browse to the directory where the electron density file (density.xsf) is located. This file should be opened in order to visualize the electron density of the material under investigation.

Animation

We demonstrate the above-mentioned steps involved in the creation and execution of an electronic charge density mesh computation workflow on silicon, using the Quantum ESPRESSO simulation engine, in the following animation.

In this particular example, we consider the usage of VESTA for visualizing the output contents of the electron charge density file. In the final part of the animation, we adjust the iso-surface value to have the electronic density more visible as yellow iso-surfaces, demonstrating how the electron density within the dimensions of the unit cell is highly concentrated around the second atom in the two-atom basis of crystalline silicon. The electron densities around the other atoms do not fully show up in this visualization, since their iso-surfaces are truncated by the sides of the unit cell (this truncation shows up as blue planes on the edges of the unit cell).