Ab initio Molecular Dynamics Simulations of Li-ion Diffusion in Solid State Electrolytes
Tutorial Created with Software Release: 2025-1
Topics: Energy Capture & Storage
Methodology: Periodic Quantum Mechanics
Products Used: MS Maestro , Quantum Espresso
|
680 MB |
This tutorial is written for use with a 3-button mouse with a scroll wheel.
Words found in the Glossary of Terms are shown like this: Workspacethe 3D display area in the center of the main window, where molecular structures are displayed
Abstract:
In this tutorial, we will perform an ab initio molecular dynamics simulation and calculate the Li-ion diffusion in a solid state electrolyte.
Tutorial Content
-
Performing AIMD Simulations
1. Introduction to ab initio Molecular Dynamics
Modeling Li-ion diffusion in solid-state electrolyte materials, like Li3PS4, is key to understanding how lithium ions move through the system. This is important to design the next-generation solid state batteries with improved performance and safety.
In this tutorial, we will use ab initio molecular dynamics (AIMD) to study the dynamics of a Li3PS4 electrolyte system. AIMD allows us to study these dynamics with high accuracy even if reliable force fields for classical molecular dynamics are not available. Although nudged elastic band (NEB) simulations are able to predict ion migration barriers and thus inform about diffusive properties, they rely on the knowledge or an assumption of the diffusion pathways. Furthermore, NEB samples isolated Li movements in defined local environments only. This restriction can lead to incorrect results in battery materials as both Li and transition metal disorder as well as correlated Li movements can play an important role in such materials. AIMD, however, investigates all diffusion events at a specified temperature without prior assumptions by the user.
Despite all of these benefits, the length and timescale for these calculations are much smaller compared to classical molecular dynamics simulations due to their high computational cost. This means that studied systems sizes are limited to a few hundred atoms and total simulation times are in the order of picoseconds. Due to this restriction, the user must make sure that a proper amount of diffusion events (ion hops) are sampled during the AIMD simulation to obtain a diffusion coefficient with reasonable accuracy. Investigating Li ion diffusion at elevated temperatures could be one way to increase the number of hops and the mean square displacement of the ions.
In this tutorial, we will model the Li-ion diffusion in amorphous Li3PS4. First, we will import and optimize a bulk crystal structure of Li3PS4 using Quantum ESPRESSO (QE). Then, we will set up an AIMD simulation on our equilibrated amorphous structure and calculate the diffusion coefficient of the Li-ions in the equilibrated system. The chosen parameters are for the purpose of this tutorial and might deviate for other systems or if an increased accuracy is needed.
If you are unfamiliar with handling periodic structures or performing solid-state calculations with MS Maestro, two foundational tutorials are available and recommended: Building and Manipulating Crystal Structures and Electronic Structure Calculations of Bulk Crystals Using Quantum ESPRESSO.
2. Creating Projects and Importing Structures
At the start of the session, change the file path to your chosen Working Directorythe location where files are saved in MS Maestro to make file navigation easier. Each session in MS Maestro begins with a default Scratch Projecta temporary project in which work is not saved, closing a scratch project removes all current work and begins a new scratch project, which is not saved. A MS Maestro project stores all your data and has a .prj extension. A project may contain numerous entries corresponding to imported structures, as well as the output of modeling-related tasks. Once a project is saved, the project is automatically saved each time a change is made.
Structures can be built in MS Maestro or can be imported using File > Import Structures (or drag-and-dropped), and are added to the Entry Lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion and Project Tabledisplays the contents of a project and is also an interface for performing operations on selected entries, viewing properties, and organizing structures and data. The Entry Lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion is located to the left of the Workspacethe 3D display area in the center of the main window, where molecular structures are displayed. The Project Tabledisplays the contents of a project and is also an interface for performing operations on selected entries, viewing properties, and organizing structures and data can be accessed by Ctrl+T (Cmd+T) or Window > Project Table if you would like to see an expanded view of your project data.
- Double-click the Materials Science icon
- (No icon? See Starting Maestro)
- Go to File > Change Working Directory
- Find your directory, and click Choose
- Pre-generated input and results files are included for running jobs or examining output. Download the zip file here: schrodinger.com/sites/default/files/s3/release/current/Tutorials/zip/aimd.zip
- After downloading the zip file, unzip the contents in your Working Directorythe location where files are saved for ease of access throughout the tutorial
- Go to File > Save Project As
- Change the File name to AIMD_tutorial and click Save
- The project is now named
AIMD_tutorial.prj
- The project is now named
- Go to File > Import Structures
- Navigate to where you saved the tutorial files and Open
Li3PS4.mae- The new entry is selected(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries in the Workspacethe 3D display area in the center of the main window, where molecular structures are displayed and is includedthe entry is represented in the Workspace, the circle in the In column is blue
Note: Please refer to the Glossary of Terms for the difference between includedthe entry is represented in the Workspace, the circle in the In column is blue and selected(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries.
The imported entry is now available in the workspace. This experimental crystal structure is available from The Materials Project Database and can be imported using the Query Materials Project Database panel where then the file can be downloaded. This structure has the ID mp-985583. This asymmetric unit does not need any further preparation and is ready for QE simulations.
3. Running and Analyzing Convergence Tests for the Energy Cutoffs and K-point Grids
In this section, we will run convergence tests to investigate the accuracy of the total energy calculation with respect to integration grids in reciprocal (k) space and to the size of the plane wave basis for wavefunctions and charge density. The convergence of the total energy will allow us to make an appropriate choice for the k-point grid and wavefunction/density energy cutoff parameters for the following calculations. If you are familiar with QE convergence testing, skip to Section 4 or to learn more about QE convergence calculations, see the Quantum ESPRESSO Calculations Panel and the Convergence Test Viewer Panel documentation.
For the convergence tests, we will use the structure imported in Section 2.
- With Li3PS4 includedthe entry is represented in the Workspace, the circle in the In column is blue and selected(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries in the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion, go to Tasks > Materials > Quantum Mechanics > Quantum ESPRESSO > Quantum ESPRESSO Calculations
- The Quantum ESPRESSO Calculations panel opens
- Ensure that Use structures from shows Project Table (1 selected entry)
- Check the Convergence tests box
- Click Pseudopotentials
- In Path click Browse
- Navigate to where you saved the tutorial file and choose the
all_pbe_UPF_v1.5directory- The Pseudopotentials panel is automatically filled with the paths to the directory and recognizes the Li, P, and S specific pseudopotential files
- Click OK to close the Pseudopotentials panel
- A message appears that the energy cutoffs were not defined. Click OK to close the message as we will define the cutoffs in the next step
Note: Pseudopotentials are not included with the Quantum ESPRESSO installation and must be downloaded separately. There are several libraries available (see this link for more information). The pseudopotentials used in this tutorial can be downloaded from GBRV pseudopotential site.
Note: Pseudopotentials are usually generated for a specific type of density functional. It is therefore recommended to employ the same type of density functional, if possible, in all QE calculations used in generation of the pseudopotentials. The functional used for the generation of the pseudopotential is stated in the Pseudopotentials panel (see the Figure)
- In the Theory tab, ensure the following are selected:
- Non-polarized for Spin treatment
- Disabled for DFT+U treatment
- GGA for Density functional type
- PBE for Density functional
- DFT-D3 for Dispersion correction
- Note that the inclusion of D3 dispersion is not critical for bulk solid state materials
- Uncheck Use symmetry
- Select Grid place distance and set to 0.08
- Check the box to Include Γ-point and click Update K-point mesh
- The number of k-points will update to 4
- Switch to the SCF tab
- For Max steps in SCF, input 200
- Select Fixed for Occupations
Note: The values of the wavefunction and charge density cutoffs will be overwritten by the values provided in the Convergence tests tab
- Switch to the Convergence tests tab
-
Make the following selections:
- Minimum energy cutoff to 20 Ry for wavefunctions
- Maximum energy cutoff to 100 Ry for wavefunctions
- Step size to 10 Ry
- Charge density multiplier to 8
- Check Grid plane distance, with the following settings:
- Max: 0.08
- Decrement: 0.01
- Steps: 8
- Check Include Γ-point
- Click Update K-point mesh
- Click Save to return to the Quantum ESPRESSO Calculations panel
- Change the job Name to convergence_Li3PS4
- Adjust the job settings (
) as needed
- This job requires a CPU host. The job can be completed in several days using 8 CPUs
Note: The QE parallel options -npools must be a divisor of the number of threads and is used to evaluate several k-points at once. Other systems might require different parallelization settings, for more information check this help topic
- If you would like to run the job, click Run. Otherwise, we will proceed with pre-generated results in the next steps
- Close the Quantum ESPRESSO Calculations panel
- From the main menu, choose File > Import Structures
- Navigate to where you downloaded the tutorial file and choose
Section_03 > convergence_Li3PS4.maegzfile - Click Open
- A new group with 72 structures is added to the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion. The entire group is automatically selected(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries and the first entry is includedthe entry is represented in the Workspace, the circle in the In column is blue in the workspacethe 3D display area in the center of the main window, where molecular structures are displayed
- Maintain the entire entry group selection
- Use the WAM (workflow action menu) button (
) to open the Convergence Tests Viewer
- Alternatively, go to Tasks > Materials > Quantum Mechanics > Quantum ESPRESSO > Convergence Tests Viewer
- The Convergence Tests Viewer panel opens
The Convergence Tests Viewer panel will be used to analyze the results of the convergence calculations
- Click Load data from Workspace
- This loads in the entry group from the previous calculation
- Check Convert energy to eV
- Check Show relative energy
- Energy values are now displayed relative to the lowest energy value in the data set
- In Wavefunction cutoffs (Ry) column, shift-click entries 40 through 100
- The graph shows convergence with k-points for the different wavefunction cutoffs. We observe a fast convergence with the number of k-points already after 8 k-points. This means that we can use the 2 x 2 x 3 k-point grid.
- In # of k-points column, click 8 (2, 2, 3)
- The graph shows the convergence with respect to the wavefunction cutoff for our chosen k-point grid. We observe a fast convergence after a wavefunction cutoff of 40 Ry.
4. Optimizing Atomic Positions and Creating a Supercell
In this section, we will optimize the Li3PS4 structure at the quantum mechanical (QM) level. We will geometry optimize the crystal structure using DFT, ensuring that it is sufficiently relaxed in preparation for further calculations. Here, we will use parameters for the wavefunction cutoff energy and k-point grid that were determined from the convergence testing in Section 3.
For the optimization calculation, we will use the structure imported in Section 2.
- With Li3PS4 includedthe entry is represented in the Workspace, the circle in the In column is blue and selected(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries in the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion, go to Tasks > Materials > Quantum Mechanics > Quantum ESPRESSO > Quantum ESPRESSO Calculations
- The Quantum ESPRESSO Calculations panel opens
- Ensure that Use structures from shows Project Table (1 selected entry)
- Check the Optimize atomic positions and cell box and uncheck all other boxes
- Click Pseudopotentials
The pseudopotential panel should have remembered the location of the pseudopotentials used in the convergence calculation. If this is not the case, use the next several steps to set them once again
- In Path click Browse
- Navigate to where you saved the tutorial file and choose the
all_pbe_UPF_v1.5directory- The Pseudopotentials panel is automatically filled with the paths to the directory and recognizes the Li, P, and S specific pseudopotential files
- Click OK to close the Pseudopotentials panel
- A message appears that the energy cutoffs were not defined. Click OK.
- In the Theory tab, ensure the following are selected:
- Non-polarized for Spin treatment
- Disabled for DFT+U treatment
- GGA for Density functional type
- PBE for Density functional
- DFT-D3 for Dispersion correction
- Uncheck Use symmetry
- Set the Grid plane distance to 0.04000, check Include Γ-point, and click Update K-point mesh to update the Monkhorst-Pack grid values
- The relationship between the density and the Monkhorst Pack definition can be checked with the Update K-point mesh option. This leads to the grid from the convergence test.
- Go to the SCF tab
- For Custom energy cutoff for wavefunctions, input 40
- For Custom energy cutoff for charge density, input 320
- For Max steps in SCF, input 200
- Select Gaussian Smearing, input 0.003
- Go to the Optimization tab
-
Make the following selections:
- Number of steps to 200
- Total energy threshold to 1e-06 Ry
- Force threshold to 0.00050 Ry/Bohr
- Click Save to return to the Quantum ESPRESSO Calculations panel
- Change the Job Name to optimization_Li3PS4
- Adjust the job settings (
) as needed
- This job requires a CPU host. The job can be completed in approximately 12 hours using 8 CPUs
- If you would like to run the job, click Run. Otherwise, we will proceed with pre-generated results
- Close the Quantum ESPRESSO Calculations panel
- To proceed with pre-generated files, from the main menu, choose File > Import Structures
- Navigate to where you downloaded the tutorial file and choose the
Section_04 > optimization_Li3PS4.maegzfile - Click Open
- A new entry group is added to the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion
Our cell now contains 128 atoms. Feel free to right click on the entry name and rename if you would like.
5. Performing AIMD Simulations
In this section, we will perform AIMD calculations on our supercell. This simulation needs to be performed at a higher temperature than the system's melting point in order to observe jumps in reasonable times for the amorphous structure. Note that we will not be using the correct volume at 1000K for the purpose of the tutorial. Instead, the volume will stay fixed as the temperature increases during the AIMD simulation.
For the AIMD simulation, we will use the supercell.
- With the new P1 supercell includedthe entry is represented in the Workspace, the circle in the In column is blue and selected(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries in the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion, go to Tasks > Materials > Quantum Mechanics > Quantum ESPRESSO > Quantum ESPRESSO Calculations
- The Quantum ESPRESSO Calculations panel opens
- Ensure that Use structures from shows Project Table (1 selected entry)
- Check the Molecular dynamics box
- Click Pseudopotentials
The pseudopotential panel should have remembered the location of the pseudopotentials used in the convergence and optimization calculations. If this is not the case, use the next several steps to set them once again
- In Path click Browse
- Navigate to where you saved the tutorial file and choose the
all_pbe_UPF_v1.5directory- The Pseudopotentials panel is automatically filled with the paths to the directory and recognizes the Li, P, and S specific pseudopotential files
- Click OK to close the Pseudopotentials panel
- A message appears that the energy cutoffs were not defined. Click OK.
- In the Theory tab, ensure the following are selected:
- Non-polarized for Spin treatment
- Disabled for DFT+U treatment
- GGA for Density functional type
- PBE for Density functional
- DFT-D3 for Dispersion correction
- Uncheck Use symmetry
- Γ-point only (real wavefunctions) for the Brillouin zone partition options
- Switch to the SCF tab
- Keep all options the same as set for the optimization calculation
- Switch to the Dynamics tab
- Set the Time step to 2 fs
- Set the temperature to 1000 K
- This simulation needs to be performed at a higher temperature than the system's melting point. This means that the structure will become amorphous and we will investigate the diffusion coefficient in the final amorphous structure.
Note: AIMD simulation times should be fairly long to properly study the ion hoping in conductive materials. The 10 ps used here are just for the purpose of this tutorial, consider a production style run of >50 ps if resources allow.
- Click Save to return to the Quantum ESPRESSO Calculations panel
- Change the job Name to AIMD_Li3PS4
- Adjust the job settings (
) as needed
- This job requires a CPU host. The job can be completed in approximately two weeks on 16 CPUs
- If you would like to run the job, click Run. Otherwise, we will proceed with pre-generated results in the next section
- Close the Quantum ESPRESSO Calculations panel
- To proceed with pre-generated files, from the main menu, choose File > Import Structures
- Navigate to where you downloaded the tutorial file and choose the
Section_05 > AIMD_Li3PS4.maegzfile - Click Open
- A new entry group is added to the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion
Due to the vast amount of movement in the simulation the imported structure will look like the Figure.
Using the periodic structure tools in the bottom right corner of the GUI, you can translate your system to a first unit cell and recalculate connectivity to generate a cleaner looking structure.
6. Performing and Analyzing Diffusion Coefficient Calculations
The Diffusion Coefficient calculation can now be performed on the equilibrated system. In this section, the Diffusion Coefficient panel will collect diffusion data for the Li ions, and then the Diffusion Coefficient Results panel will be used to analyze the results.
- Ensure that AIMD_Li3PS4 is selected(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries in the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion and includedthe entry is represented in the Workspace, the circle in the In column is blue in the workspacethe 3D display area in the center of the main window, where molecular structures are displayed
- Go to Tasks > Materials > Classical Mechanics > Diffusion Coefficient > Diffusion Coefficient Calculations
- The Diffusion Coefficient panel opens
- In the Trajectory section, select Use existing
- This will use the trajectory generated from the AIMD simulation
- In the Fitting range section, change the Include Tau values from range from 0 to 0.01 ns (10 ps)
- Since we will be adjusting the fitting boundaries, these Tau values are the linear region when the results are imported and can be changed interactively through the viewer panel
Now we can specify for which ions or molecules we want to calculate diffusion parameters.
- Go to the Diffusion Parameters tab
- For Atoms for diffusion parameters, we must define the lithium ions. Clear the default (
) and type (atom.ele Li)
- Other methods for selecting the lithium atoms are available including Pick or the other dropdowns in the panel
- Read more about ASL
- Change the Job name to diffusion_coefficient_Li
Adjust the job settings (
) as needed. This job requires a CPU . The job can be completed in about 5 minutes.
- If you would prefer not to run the job, import
Section_06 > diffusion_coefficient_Li > diffusion_coefficient_Li.maegzfrom the provided tutorial files via File > Import Structures in the diffusion_coefficient_Li directory. Otherwise, click Run - Close the Diffusion Coefficient panel
When the job completes or after importing, a new entry group is added to the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion entitled diffusion_coefficient_Li
- Select(1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries and includethe entry is represented in the Workspace, the circle in the In column is blue the output in the entry lista simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion and workspacethe 3D display area in the center of the main window, where molecular structures are displayed, respectively.
- Use the WAM (workflow action menu) button (
) to open the Diffusion Coefficient Viewer
- Alternatively, access the panel via Tasks > Materials > Classical Mechanics > Diffusion Coefficient > Diffusion Coefficient Results
- The Diffusion Coefficient Viewer panel opens
The Diffusion Parameters tab displays values of diffusion coefficients and includes a plot of the mean square distance (MSD) against simulation time difference (Tau).
You can manually adjust the bounds of the linear fit using the interactive sliders in the plot. The diffusion coefficient based on these modified bounds is computed in real-time below. In general, you should fit into the linear region of the curve. There is no consensus method for choosing the bounds of the fit, therefore it’s important to report these bounds for the sake of reproducibility. As a very loose recommendation, one should exclude the short timescale behavior, where the curve follows a ballistic trajectory and the atoms velocities have not been greatly impacted by interaction with surrounding atoms, as well as long times where the uncertainty is higher.
The Diffusion Trace tab shows the trace for a specified Mass center in three 2D plots. These plots trace the movement of a single species over the course of the trajectory. They are a visual tool that can help identify anisotropic diffusive behavior as well as deviations from Brownian motion. The 2D plots show projections of the coordinates in each of the three planes: XY, XZ and YZ. In this case, the atoms mainly vibrate with limited overall movement due to the small system size and short AIMD simulation time. Feel free to explore the Diffusion Trace tab.
For best practices, in addition to performing AIMD simulations >50 ps, multiple replicates should also be considered. Long trajectories and the usage of replicate systems is best for modeling the Li ion mobility in well conductive materials.
AIMD paired with diffusion coefficient calculations can be used to get the migration energy barrier by running simulations at multiple temperatures and fitting Arrhenius relationship to the data. This would generate the global migration energy for the system from the slope of the fitted line. However, it is not shown here due to the high computational expense of such simulations.
7. Conclusion and References
In this tutorial, we learned to perform AIMD simulations and model Li-ion diffusion in solid state electrolytes.
For further learning:
For introductory content, focused on navigating the Schrödinger Materials Science interface, an Introduction to Materials Science Maestro tutorial is available. Please visit the materials science training website for access to 70+ tutorials. For scientific inquiries or technical troubleshooting, submit a ticket to our Technical Support Scientists at help@schrodinger.com.
For self-paced, asynchronous, online courses in Materials Science modeling, including access to Schrödinger software, please visit the Schrödinger Online Learning portal on our website.
For some related practice, proceed to explore other relevant tutorials:
- Topics in solid-state modeling:
For further reading:
- Analysis of Diffusion in Solid-State Electrolytes through MD Simulations, Improvement of the Li-Ion Conductivity in β-Li3PS4 as an Example. DOI: 10.1021/acsaem.8b00457
- Li-ion site disorder driven superionic conductivity in solid electrolytes: a first-principles investigation of β-Li3PS4. DOI: 10.1039/C6TA07713G
- First-principles molecular simulations of Li diffusion in solid electrolytes Li3PS4. DOI: 10.1016/j.commatsci.2015.05.022
- See the help documentation
8. Glossary of Terms
Entry List - a simplified view of the Project Table that allows you to perform basic operations such as selection and inclusion
Included - the entry is represented in the Workspace, the circle in the In column is blue
Project Table - displays the contents of a project and is also an interface for performing operations on selected entries, viewing properties, and organizing structures and data
Recent actions - This is a list of your recent actions, which you can use to reopen a panel, displayed below the Browse row. (Right-click to delete.)
Scratch Project - a temporary project in which work is not saved, closing a scratch project removes all current work and begins a new scratch project
Selected - (1) the atoms are chosen in the Workspace. These atoms are referred to as "the selection" or "the atom selection". Workspace operations are performed on the selected atoms. (2) The entry is chosen in the Entry List (and Project Table) and the row for the entry is highlighted. Project operations are performed on all selected entries
Working Directory - the location where files are saved
Workspace - the 3D display area in the center of the main window, where molecular structures are displayed