Molecular Dynamics Simulations for Generating Amorphous Structures

Version: X-2025.06

In this tutorial, you will learn how to use QuantumATK NanoLab GUI to

  • Prepare an initial structure for amorphous SiO2 using Amorphous Prebuilder based on Packmol.

  • Set-up Molecular Dynamics (MD) melt-quench and subsequent MD equilibration simulations to generate a final equilibrated amorphous SiO2 structure using classical Force Fields.

  • Analyze obtained results, such as radial and angular distribution functions, RDF and ADF, to verify the quality of the generated amorphous SiO2 structure.

  • Set-up a geometry optimization simulation for amorphous SiO2 in order to obtain a 0 K structure, representing the most stable configuration. This optimized structure can serve as a reference state for further calculations of electronic properties, phonons and other thermodynamic properties.

All the workflow, input and output files can be found in the Example Project - X-2025.06 ‣ Am-SiO2-MD folder.

Prerequisites

introbar

Setting-Up Molecular Dynamics Simulations

To create a workflow for generating an initial amorphous structure, performing MolecularDynamics melt-quench and equilibration simulations in the qatkicon-nl-workflow Workflow Builder, follow the step-by-step protocol described below. Here, we will use a classical Force Field Tersoff_SiO_2007.

  1. Go to the Block CatalogTemplates tab ‣ Molecular Dynamics category on the right hand panel and drag-and-drop the Constant Density Melt Quench (Force Field) template to the middle Workflow AreaBuild tab. You see the warning signs, because the Force Field calculator and the initial amorphous structure are not yet specified for these blocks (see the next steps).

    ../../../_images/md-workflow-v2.png
  2. Click on the AmorphousPrebuilder block to set up a generation of an initial amorphous structure from selected elements on-the-fly. It will use Packmol to randomly pack atoms into a bulk configuration given a list of elements stoichiometry and material density.

  • Click on Add row button.

    ../../../_images/amorphous-prebuilder-1.png
  • In the opened Periodic Table window, click on Si to add it to the AmorphousPrebuilder.

  • Repeat the steps to add O to the AmorphousPrebuilder.

    ../../../_images/amorphous-prebuilder-2.png
  • Set Stoichiometry 1 to Si and 2 to O.

  • Set Size multiplier to 100 to generate an initial amorphous cell with 100 Si and 200 O atoms.

  • For Density option, choose By atomic mass and specify 2.2 \(g ⋅ cm^{-3}\) Mass density for the amorphous SiO2 structure. This will automatically determine the Lattice constant of 16.55 Å.

    ../../../_images/amorphous-prebuilder-3.png
  • The generated initial amorphous structure will automatically be passed into the 2nd part of the simulation workflow, which includes melt-quench and equilibration MD simulations.

  1. Click on the Set ForceFieldCalculator block and choose Tersoff_SiO_2007 Classical Force Field.

    ../../../_images/force-field-block-v2.png

Tip

  • For systems for which there is no conventional Force Field available or the quality is not good, we recommend to use Machine Learned Force Fields (ML FFs). Consider:

  1. Using pre-trained custom Moment Tensor Potentials (MTPs) for a specific target system and application or pre-trained universal MACE or M3GNet Neural Network (NN) potentials. The list of available ML FFs can be found in the SetMachineLearnedForceFieldCalculator block.

  2. Training and employing custom Moment Tensor Potentials (MTPs) for a specific target system and application. Learn about the MTP training here: https://docs.quantumatk.com/tutorials/mtp-training-c-am-TiSi/mtp-training-c-am-TiSi.html.

  3. Training new or finetuning existing MACE NN potentials. Learn about training MACE potentials here: https://docs.quantumatk.com/tutorials/mace-training-c-am-TiSi/mace-training-c-am-TiSi.html.

4. Click on the Melt (Langevin) block, which contains settings for the Langevin type MD simulations at high (i.e., 5000 K) temperature to melt the structure. In this example, you will run 30 000 MD steps with a time step of 1 fs, resulting in a total MD melt simulation time of 30 ps. Use the settings set by the template.

../../../_images/melt-langevin-block.png
  1. Click on the Constant volume quench (NVT NoseHoover) block, which contains settings for the NVT Nose Hoover type MD simulations to quench the structure from 5000 K to 600 K using -88 \(Kps^{-1}\) Heating rate within 50 ps (50 000 MD steps with a time step of 1 fs). Use the settings set by the template.

    ../../../_images/constant-volume-quench-block.png
  2. Click on the Constant volume equilibration (NVT NoseHoover) block, which defines settings for the NVT Nose Hoover type MD equilibration simulations. In this example, you will equilibrate the system for 100 ps at 600 K in order to reach a stable state where system’s temperature and energy are stable, thus allowing us to obtain meaningful RDF and ADF values.

    ../../../_images/constant-volume-equilibration-block.png

Tip

  1. In the Molecular Dynamics block, one can choose between various Molecular Dynamics methods: NVE Velocity Verlet, NVT Berendsen, NVT Bussi Donadio Parrinello, NVT Nose Hoover, Langevin, NPT Berendsen, NPT Bernetti Bussi, NPT Martyna Tobias Klein, Non Equilibrium Momentum Echange and Stress Strain. Read these technical notes on Molecular Dynamics to learn more.

  2. In the Molecular Dynamics block, it is possible to edit a variety of MD parameters, such as a number of steps, time step, reservoir temperature, heating rate, target temperature, friction, velocity initialization type and temperature.

  1. Go to the Block CatalogQuantumATK tab ‣ Optimization and Dynamics category on the right hand panel and drag-and-drop the OptimizeGeometry block to the middle Workflow AreaBuild tab.

    ../../../_images/md-workflow-with-geom-opt.png
  2. Click on the OptimizeGeometry block to set the OptimizeGeometry to obtain the 0K structure of amorphous SiO2 using the same Tersoff_SiO_2007 Classical Force Field.

  • Set a tighter than default Force tolerance (0.001 \(eV ⋅ Å^{-1}\)).

  • Increase Maximum number of steps to 2000, as many more optimization steps are needed when performing a geometry optimization with classical Force Fields.

  • Constrain cell in x, y and z directions and un-click Constrain Bravais lattice.

    ../../../_images/geom-opt-block-amorphous.png

Note

  • Note, that when calculating electronic properties, it is important to perform a prior geometry optimization with DFT to get accurate electronic properties. In such a case, drag-and-drop the qatkicon-scripter-calculator SetLCAOCalculator and additional OptimizeGeometry blocks to the workflow to set up the simulation.

  1. Change the Workflow name in the Workflow Stash and Filename as needed (e.g., Am-SiO2-MD-Tersoff.hdf5).

  2. Click on the qatkicon-builder-sendto Send content to other tools button and choose Jobs as a script to send the workflow to the qatkicon-nl-jobs Jobs tool in order to submit this job on a local machine or a remote cluster. It is recommended to use threading for Force Field simulations.

  3. This also generates a Python script Am-SiO2-MD-Tersoff.py, based on this workflow. It can be opened and edited with the qatkicon-nl-editor Editor tool and then sent to the qatkicon-nl-jobs Jobs tool.

Analyzing Molecular Dynamics Simulations

Once the calculation has finished, we are ready to analyze the results.

  1. Go to the qatkicon-search1 Data View tool.

  2. In the Data Sources, select the file Am-SiO2-MD-Tersoff.hdf5 and then in the Data View window double-click on the qatkicon-builder-md-box md object from the melt Langevin MD to open it with the Movie Tool.

    ../../../_images/data-view-md-v2.png
  3. Use the Movie Tool to investigate the temperature as well as the kinetic, potential and total energies, pressure, density and volume of the system as a function of simulation time, 30 ps in this case. You will observe the temperature oscillating around the set temperature (5000 K).

  4. Simultaneously, an animation of the motion of the atoms is displayed. Right-click on the structure in the Movie tool to check the box Show bonds and use the qatkicon-jobmanager-play-enabled Play button to see the evolution of structure throughout the MD simulation.

    ../../../_images/movie-tool-langevin-melt.png
  5. Come back to the Data View window and double-click on the qatkicon-builder-md-box md_2 object from the quench NVT Nose Hoover MD to open it with the Movie Tool.

  6. Use the Movie Tool to investigate the temperature as well as the kinetic, potential and total energies, pressure, density and volume of the system as a function of simulation time, 50 ps in this case. The temperature is gradually reduced from 5000 K to ~ 600 K as set in the workflow.

    ../../../_images/movie-tool-nvt-quench.png
  7. Come back to the Data View window and double-click on the qatkicon-builder-md-box md_4 object from the NVT Nose Hoover type MD equilibration simulations to open it with the Movie Tool. The temperature fluctuates around the set value of 600 K, and the energies also fluctuate around their equilibrium values, indicating that the system is stable. This allows us to obtain meaningful RDF and ADF values from this trajectory.

    ../../../_images/movie-tool-nvt-equilibration.png
  8. Come back to the Data View window and right-click on the qatkicon-builder-md-box md_4 object from the NVT Nose Hoover type MD equilibration simulations to open it with the Molecular Dynamics Analyzer to plot calculated RDF and ADF for amorphous SiO2.

  9. In order to plot RDF:

  • Click on Analysis type selection box and choose to plot Radial Distribution.

  • Click on Selection 1 and Selection 2 boxes to choose for which element combinations to plot RDF.

  • Click Plot to generate RDF plots for Si-O, Si-Si and O-O one-by-one.

  • Click on the qatkicon-2Dplot-target Inspect tool to examine the exact RDF values.

    ../../../_images/rdf-v2.png

Note

Calculated radius values for the 1st coordination sphere obtained from the RDF plot: \(r_{Si-O}\) = 1.675 Å, \(r_{Si-Si}\) = 3.175 Å and \(r_{O-O}\) = 2.675 Å are in a reasonably good agreement with experimental values for fused silica at 300 K: \(r_{{Si-O}_{exp}}\) = 1.62 Å, \(r_{{Si-Si}_{exp}}\) = 3.12 Å and \(r_{{O-O}_{exp}}\) = 2.65 Å [1].

  1. In order to plot ADF:

  • Click on Analysis type selection box and choose to plot Angular Distribution.

  • Click on Center, Neighbor 1 and Neighbor 2 boxes to choose for which element combinations to plot ADF.

  • Click Plot to generate ADF plots for Si-O-Si and O-Si-O one-by-one.

    ../../../_images/adf-v2.png

Note

Calculated angle values for all the coordination spheres obtained from the ADF plot: \(\theta_{O-Si-O}\) = 110.5° and \(\theta_{Si-O-Si}\) = 144.5° are also in a reasonably good agreement with experimental values for fused silica at 300 K: \(\theta_{{O-Si-O}_{exp}}\) = 109.7° and \(\theta_{{Si-O-Si}_{exp}}\) = 152.0° [2].

  1. Come back to the Data View window and right-click on the qatkicon-scripter-optimize optimize_trajectory object from the final geometry optimization at 0 K and to see the evolution of structure throughout the geometry optimization simulation. The geometry converged in 611 steps.

    ../../../_images/movie-tool-geom-opt-final.png
  2. Right-click on the the optimized geometry qatkicon-scripter-bulk optgeom in Data View and choose to Open with Builder. The optimized geometry will be automatically saved in the qatkicon-nl-builder Builder Stash, so you could use it for other simulations.

References