Talk:Mod:csw114liquidsim
JC: General comments: Good report with all tasks answered and results well presented. Make sure you fully understand the background theory behind each task though so that you know exactly what the task is asking you and why.
Introduction to molecular reaction dynamics
TASK: Open the file HO.xls. In it, the velocity-Verlet algorithm is used to model the behaviour of a classical harmonic oscillator. Complete the three columns "ANALYTICAL", "ERROR", and "ENERGY": "ANALYTICAL" should contain the value of the classical solution for the position at time , "ERROR" should contain the absolute difference between "ANALYTICAL" and the velocity-Verlet solution (i.e. ERROR should always be positive -- make sure you leave the half step rows blank!), and "ENERGY" should contain the total energy of the oscillator for the velocity-Verlet solution. Remember that the position of a classical harmonic oscillator is given by (the values of , , and are worked out for you in the sheet).
TASK: For the default timestep value, 0.1, estimate the positions of the maxima in the ERROR column as a function of time. Make a plot showing these values as a function of time, and fit an appropriate function to the data.
In this section of the experiment,the Veloctiy-Verlet algorithm was used to model the behaviour of a classical harmonic oscillator.
From the data provided in the HO.xls files,the three columns "ANALYTICAL", "ERROR", and "ENERGY" were completed.
The graphs below plots 1) displacement,2) total enery 3) absolute error between the classical and Verlet-Velocity derived solutions.
Displacement vs Time | Energy vs Time | Error vs Time |
---|---|---|
![]() |
![]() |
![]() |
The total energy of a classical harmonic oscillator was obtained by summing its potential and kinetic energy, according to the equation:
From the graphs shown above, we can see that displacement and energy display an oscillating behaviour while the error between the classical and Verlet-Velocity derived solutions increases over time
The position of the maxima in the error column were found and plotted as a function against time.
TASK: Experiment with different values of the timestep. What sort of a timestep do you need to use to ensure that the total energy does not change by more than 1% over the course of your "simulation"? Why do you think it is important to monitor the total energy of a physical system when modelling its behaviour numerically?
Several different timesteps were experimented with to observe its effects on the harmonic oscilator.
From the plots above, we can see that increasing the timestep for each simulation has the effect of increasing the amplitude and frequency of the oscillator.
The error also increases as the timestep increases. This is because data is sampled at a less frequent rate, increasing the margin for error in the system as a result.
We must monitor the total energy of a system to ensure that is obeying the law of energy conservation. By monitoring the total energy, we can monitor the equilibration process of the system.
JC: Did you decide which timestep gives you a variation in energy of less than 1? Why does the error oscillate over time?
Atomic Forces
TASK: For a single Lennard-Jones interaction, , find the separation, , at which the potential energy is zero. What is the force at this separation?
When modelling simple fluid systems, the Lennard Jones Potential is suitable to describe the interactions of atom pairs to a high degree of accuracy.
The separation distance when potential energy = 0 occurs when . The force experienced at this distance is equivalent to (Workings shown in the table below)
Separation distance | Force |
---|---|
|
|
TASK: Find the equilibrium separation,
At equilibrium separation, the attractive and repulsive forces balances out each other. This occurs when . The equilibrium separation occurs at . The well depth at this separation was evaluated to be . (Working shown below)
Separation | Well Depth |
---|---|
|
|
TASK: Evaluate the integrals , , and when .
The Lennard Jones potential curve was evaluated for 3 sets of limits, each representing different seperation distances between two atoms.
|
|
|
JC: Maths correct and well laid out.
Modelling realistic volumes of liquids
TASK: Estimate the number of water molecules in 1ml of water under standard conditions. Estimate the volume of water molecules under standard conditions.
The number of water molecules in 1 mL of water under standard conditions were estimated.
Estimating number of H2O molecules in 1 mL |
---|
|
The volume of 10000 water molecules were evaluated as shown below:
Estimating volume of 10000 H2O molecules |
---|
|
JC: There should be 3x10^22 molecules of water in 1 ml, you are just out by a factor of 10, check your working. Volume of 10000 molecules is correct.
Periodic Boundary Function
TASK: Consider an atom at position in a cubic simulation box which runs from to . In a single timestep, it moves along the vector . At what point does it end up, after the periodic boundary conditions have been applied?.
Implementing a Periodic boundary function implies that when a particle interacts across a specified boundary , they can exit one end of the box and re-enter the other end. This enables the total number of particles in a box to stay constant. With the example shown below. The particle travels along a vector which would cause it to exit the box. However, instead of moving to the "next simulation box", the periodic boundary function stipulates that it "re-enters" the same simulated box via the opposite side, as demonstrated with its final position vector.
Position Vector |
---|
Position Vector After periodic boundary function = (0.2, 0.1, 0.7) |
JC: Correct.
Estimating Real Parameters for an Argon Atom
TASK: The Lennard-Jones parameters for argon are . If the LJ cutoff is , what is it in real units? What is the well depth in ? What is the reduced temperature in real units?
When working with the Lennard Jones potential, "reduced units" are often used to simplify mathematical calculations. Scaling factors are applied to experimental quantities to make expressions less cumbersome. In the exercise below, the real parameters for an Argon atom were calculated based on the reduced units provided.
Distance | Energy | Force |
---|---|---|
|
|
|
JC: Good.
Equilibrium
Defining positions of atoms
TASK: Why do you think giving atoms random starting coordinates causes problems in simulations?
Giving atoms a random staring position would only introduce computational errors if the two atoms end up on the same starting position. This would affect the pairwise atomic interactions calculated by the Lennard Jones potential. If the atoms are superimposed on top of each other, it would imply a separation distance of 0, causing its potential to tend to . This would introduce errors when defining properties such as mass or velocity.
JC: If particles start too close together the high repulsion forces can make the simulation unstable and cause it to crash.
Creating a simulation box
TASK: Satisfy yourself that this lattice spacing corresponds to a number density of lattice points of .
Consider instead a face-centred cubic lattice with a lattice point number density of 1.2. What is the side length of the cubic unit cell?
The simulation box used in this section of the experiment, has a lattice density of 0.8.
For a primative lattice structure with one atom per unit cell
For a FCC lattice with 4 atoms per unit cell and a number density of 1.2, the length of the unit cell was approximately 1.493. (Workings shown below)
TASK: Consider again the face-centred cubic lattice from the previous task. How many atoms would be created by the create_atoms command if you had defined that lattice instead?
If a FCC lattice was used , 4000 atoms will be created as there are 4 lattice points per unit cell and the simulation box contains 1000 unit cells.
JC: Correct.
Setting properties of atoms
TASK: Using the LAMMPS manual, find the purpose of the following commands in the input script:
mass 1 1.0 pair_style lj/cut 3.0 pair_coeff * * 1.0 1.0
The following code used in simulations is related to the physical interactions between atoms.
Code | Purpose |
---|---|
Each atom is associated with a specific mass. | |
It calculates the pairwise interactions between atoms using the Lennard-Jones potential. | |
The "wildcard" asterisk is able to set coefficients for all pairs of atom interactions within the system. |
JC: What are the forcefield coefficients for the Lennard Jones potential? Why do we use a cutoff for the potential?
TASK: Given that we are specifying and , which integration algorithm are we going to use? We are able to use the Velocity-verlet alogritym as we have defined and .
Running the Simulation
TASK: Look at the first code below. what do you think the purpose of these lines is? Why not just write (second code)?
First code | Second code |
---|---|
### SPECIFY TIMESTEP ### variable timestep equal 0.001 variable n_steps equal floor(100/${timestep}) variable n_steps equal floor(100/0.001) timestep ${timestep} timestep 0.001<br> ### RUN SIMULATION ### run ${n_steps} run 100000 |
timestep 0.001 run 100000 |
The codes shown in the boxes can be used when running simulations of a system.
Using the code in the first box allows us to vary the timestep of the simulation while running it for the same amount of time.
It calculates the number of steps needed for the simulation to be ran within a fixed time.
Although the number of steps taken will vary with timeset but it is within a fixed time frame.
The code in the second box will also allow us to vary the timestep but under slightly different conditions. This code would change the run time of the simulation and does not calculate the number of steps needed to be taken to run the simulation for a fixed time frame.
JC: Both pieces of code will run the same simulation, but the advantage of using variables as in the first case is that if we change the timestep, all properties which depend on the value of the timestep are also changed automatically.
Checking Equilibration
TASK: make plots of the energy, temperature, and pressure, against time for the 0.001 timestep experiment (attach a picture to your report). Does the simulation reach equilibrium? How long does this take? When you have done this, make a single plot which shows the energy versus time for all of the timesteps (again, attach a picture to your report). Choosing a timestep is a balancing act: the shorter the timestep, the more accurately the results of your simulation will reflect the physical reality; short timesteps, however, mean that the same number of simulation steps cover a shorter amount of actual time, and this is very unhelpful if the process you want to study requires observation over a long time. Of the five timesteps that you used, which is the largest to give acceptable results? Which one of the five is a particularly bad choice? Why?
The thermodynamics output of the "melt crystal" simulations were analysed. The simulation was ran at a timestep of 0.01.Graphs of energy, temperature and pressure against times are plotted and shown below:
Total Energy vs Time | Temperature vs Time | Pressure vs Time |
---|---|---|
![]() |
![]() |
![]() |
From the graphs, we see see that the system reaches equilibrium as the output can be seen fluctuating around a constant value. It can be seen that the system reaches equilibrium around 0.3 to 0.4.
Several simulations were ran at different time steps, a plot of total energy of each system vs time is shown in the graph below
Total energy vs Time (At different timesteps) |
---|
![]() |
As the time step decreases, the total number of steps taken in the simulation increases.
From the data, we can see that total energy for a timestep =0.015, increases with time and diverges. The system has not reached equilibrium and will not provide useful information can be gathered.It breaking the law of conservation of mass and is an indication that there are errors within the simulation.
With the 4 other timesteps chosen, it can be seen that total energy decreases over time and slowly begins to fluctuation around an equilibrium value.
With a smaller timestep chosen the accuracy of calculations increase. This would imply that among the 5 simulations ran, a timestep of 0.001 would provide the most accurate physical data regarding our system under consideration. However, it would be computationally very expensive. On the other hand a timestep of 0.0025 would provide a good balance, providing accuracy whilst giving us a reasonable time to monitor the system. The data obtained at a timestep of 0.0025 shows that it provides comparable output data in relation to a timestep of 0.001.
JC: The largest timestep doesn't conserve energy, but mass is unaffected by the timestep. The average total energy should not depend on the choice of timestep, as it does for 0.01 and 0.0075, so the best choice is 0.0025.
Running simulations under specific conditions
Thermostats and Barostats
TASK: We need to choose so that the temperature is correct if we multiply every velocity .Solve these to determine .
The temperature of the system can be controlled by multiplying it with a constant factor .
In the calculations below, a value of has been calculated to ensure that the instantaneous temperature (T) is equivalent to the target temperature .
Multiplying every velocity by gamma
JC: Correct, gamma is the positive root as we don't want to change the direction of the particles velocity, just scale the magnitude of the velocity.
Examining the Input Script
TASK: Use the manual page to find out the importance of the three numbers 100 1000 100000. How often will values of the temperature, etc., be sampled for the average? How many measurements contribute to the average? Looking to the following line, how much time will you simulate?
The following lines of code were used to run the simulation.
Input code |
---|
fix aves all ave/time 100 1000 100000 v_dens v_temp v_press v_dens2 v_temp2 v_press2<br> run 100000 |
The first value 100 stipulates that the simulation will calculate average thermodynamic data with a space of every 100 timesteps. The second value 1000 causes the simulation to use 1000 data points to calculate the thermodynamic values. The third value,10,000, refers to the total number of timesteps to be used in the simulation.
With a timestep of 0.0025 and 10000 steps will result in a simulation time of 250.
Equation of State
TASK: Choose 5 temperatures (above the critical temperature ), and two pressures (you can get a good idea of what a reasonable pressure is in Lennard-Jones units by looking at the average pressure of your simulations from the last section). This gives ten phase points — five temperatures at each pressure. Create 10 copies of npt.in, and modify each to run a simulation at one of your chosen points. You should be able to use the results of the previous section to choose a timestep. Submit these ten jobs to the HPC portal. While you wait for them to finish, you should read the next section.
TASK: Use software of your choice to plot the density as a function of temperature for both of the pressures that you simulated. Your graph(s) should include error bars in both the x and y directions. You should also include a line corresponding to the density predicted by the ideal gas law at that pressure. Is your simulated density lower or higher? Justify this. Does the discrepancy increase or decrease with pressure?
Variable | Values |
---|---|
Pressure | 2.45 , 2.75 |
Temperature | 1.6, 1.8, 2.0, 2.2, 2.4 |
Timestep | 0.0025 |
In this section of the experiment, the isobaric-isothermal ensemble is used to calculate the equation of state This produced a set of 10 data points which are plotted in the graph shown below. The ideal gas equation was also used to 'predict' the density at each given temperature.
Pressure = 2.75 | Pressure = 2.45 |
---|---|
![]() |
![]() |
We can see that the ideal gas law predicts a higher density value compared to calculated values as it does not take into account inter-atomic interactions. The ideal gas law treats atoms as randomly moving points without any volume. It assumes that there are no repulsive interactions between atoms. Atoms would be closer together in comparison to the Lennard Jones potential model as they are not repelling each other. This leads to a higher calculated density as there are more atoms per unit area (in the ideal gas model).
On the other hand, the calculated densities are derived using the Lennard Jones potential and takes into account attractive and repulsive forces between atoms, resulting in deviations between the predicted and calculated densities. The ideal gas equation is only useful for modelling real fluidic systems at low densities where there are minimal atom interactions.
JC: Correct, how does the discrepancy between the ideal gas and simulation results change with pressure and temperature? Plot all of the data on one graph to see the trends more clearly.
Calculating Heat Capacities using statistical physics
TASK: As in the last section, you need to run simulations at ten phase points. In this section, we will be in density-temperature phase space, rather than pressure-temperature phase space. The two densities required at and , and the temperature range is . Plot as a function of temperature, where is the volume of the simulation cell, for both of your densities (on the same graph). Is the trend the one you would expect? Attach an example of one of your input scripts to your report.
Heat capacity refers to the amount of energy needed to raise the temperature of a system by 1k.
In this section, the heat capacities were plotted as a function of time to produce a total of 10 data points as shown in the graph below. The simulation conditions used are shown in the table on the right
Variable | Values |
---|---|
Density | 0.2,0.8 |
Temperature | 2.0, 2.2, 2.4, 2.6, 2.8 |
Atoms | 3375 |
Total energy vs Time (At different timesteps) |
---|
![]() |
From the graph, we can see that increasing the temperature leads to a decrease in heat capacity.
As the temperature of the system increases, it is possible to excite the particles to a higher energy level. However, as the higher energy states become increasingly populated, it becomes harder for the system to absorb more energy, thus leading to a lower specific heat capacity
From the graph, we can also see that density is proportional to heat capacity. Increasing the density of a system increases the number of atoms per unit cell. This increases the number of accessible mirco-states. The system is able to absorb more energy per unit cell, thus leading to a higher heat capacity. This also shows that heat capacity is an extensive property.
It can be inferred that the system has a finite number of energy levels as the heat capacity has not reached a constant value.
JC: Remember that your simulations are classical so there are no discrete energy levels. Why did you choose to fit your data with the line shown in the graph?
Input code
The following input code was used to calculate the heat capacity
Input code |
---|
#### DEFINE SIMULATION BOX GEOMETRY ### variable density equal 0.2 lattice sc ${density} region box block 0 15 0 15 0 15 create_box 1 box create_atoms 1 box ### DEFINE PHYSICAL PROPERTIES OF ATOMS ### mass 1 1.0 pair_style lj/cut/opt 3.0 pair_coeff 1 1 1.0 1.0 neighbor 2.0 bin ### SPECIFY THE REQUIRED THERMODYNAMIC STATE ### variable T equal 2.0 variable p equal 2.6 variable timestep equal 0.0025 ### ASSIGN ATOMIC VELOCITIES ### velocity all create ${T} 12345 dist gaussian rot yes mom yes ### SPECIFY ENSEMBLE ### timestep ${timestep} fix nve all nve ### THERMODYNAMIC OUTPUT CONTROL ### thermo_style custom time etotal temp press thermo 10 ### RECORD TRAJECTORY ### dump traj all custom 1000 output-1 id x y z ### SPECIFY TIMESTEP ### ### RUN SIMULATION TO MELT CRYSTAL ### run 10000 unfix nve reset_timestep 0 ### BRING SYSTEM TO REQUIRED STATE ### variable tdamp equal ${timestep}*100 fix nvt all nvt temp ${T} ${T} ${tdamp} run 10000 unfix nvt fix nve all nve reset_timestep 0 thermo_style custom step etotal temp atoms vol density variable energy equal etotal variable energy2 equal etotal*etotal variable temp equal temp variable temp2 equal temp*temp variable N equal atom variable N2 equal atoms*atoms variable vol equal vol variable density equal density fix aves all ave/time 100 1000 100000 v_energy v_energy2 v_temp v_temp2 v_density run 100000 variable T2 equal f_aves[4] variable tempave equal f_aves[3] variable E2 equal f_aves[1]*f_aves[1] variable EE equal f_aves[2] variable top equal ${EE}-${E2} variable heatcap equal (${top}/${T2})*${N2} variable heatcapvol equal ${heatcap}/vol print "Here are the results from this calculation!! " print "--------" print "Temperature: ${tempave}" print "Heat Capacty/Vol: ${heatcapvol}" print "Heat Capacty: ${heatcap}" |
Structural properties and the radial distribution function
TASK: perform simulations of the Lennard-Jones system in the three phases. When each is complete, download the trajectory and calculate . Plot the RDFs for the three systems on the same axes, and attach a copy to your report. Discuss qualitatively the differences between the three RDFs, and what this tells you about the structure of the system in each phase. In the solid case, illustrate which lattice sites the first three peaks correspond to. What is the lattice spacing? What is the coordination number for each of the first three peaks?
Phase | Temperature | Density |
---|---|---|
Solid | 1.2 | 1.1 |
Liquid | 1.2 | 0.8 |
Gas | 1.2 | 0.1 |
Data on the structure of the Lenard Jones system can be characterised by its radial distribution function. In this section of the experiment, the radial distribution functions were calculated for the solid, liquid, and vapour phases . Plots of are shown below. Simulation conditions are provided on the right. A timestep of 0.002 was used to perform this set of simulations.
vs distance | vs distance |
---|---|
![]() |
![]() |
A peak indicates a favoured separation distance for the neighbours from a reference atom.
The number of peaks in each radial distribution function decreases in the following manner : Solid> Liquid >Gas.
- Gas Phase
The rdf of the Gas phase shows one main peak before it decays to a value of one as the distance r increases. Structurally, the Gaseous phase lacks a regular structure thus heavily influencing its rdf. It also suggest that it only has one coordination sphere surrounding the reference atom. The peak present for the gaseous states is significantly broadened possibly due to the thermal motion of the atoms.
- Liquid Phase
The rdf of the liquid phase shows a fewer number of peaks compared to the solid phase. This is because there is local ordering within the liquid phase but no long range order. The first peak in the rdf is the highest, indicating that the reference atom experiences the strongst attractive and repulsive interactions with its nearest neighbour.
- Solid Phase
The rdf of the Solid phase shows multiple peaks even as the distance increases. This is because Solids display long range order where atoms are arranged in a orderly manner. Each peak on the rdf of the solid phase corresponds to the atoms 'nearest neighbour, with the first peak corresponding to the first nearest neighbours, second peak corresponding to the second nearest neighbour etc.
For a face centered cubic lattice, with a lattice parameter "a" and unit cell length of 1.49380, the distance of its neighbours were calculated and compared to experimental values as shown in the table below:
Peak Number | Lattice Spacing (Theoratical) | Lattice Spacing (Calculations) | Coordination Number |
---|---|---|---|
1 (Nearest Neighbour) | 1.025 | 12 | |
2 (Second Nearest Neighbour) | 1.457 | 6 | |
3 (Third Nearest Neighbour) | 1.825 | 24 |
A zoomed in version of the radial distribution function for the solid simulation is shown below. The distances between the reference atom and its 3 nearest neighbors are indicated on the graph.
Radial Distribution Function Solid Phase |
---|
![]() |
JC: Good description of the solid, liquid and gas RDFs. The lattice spacing is the width of the unit cell, not the distance to the first nearest neighbour in an fcc lattice, what do the results in your table show? How did you calculate the coordination numbers for the first three peaks? Showing the atoms responsible for these peaks on a diagram of an fcc lattice would have been good.
Dynamical properties and the diffusion coefficient
Mean Squared Displacement
TASK: make a plot for each of your simulations (solid, liquid, and gas), showing the mean squared displacement (the "total" MSD) as a function of timestep. Are these as you would expect? Estimate D in each case. Be careful with the units! Repeat this procedure for the MSD data that you were given from the one million atom simulations.
The mean squared displacements of small and large systems were studied for the solid, liquid and gaseous phase. This was plotted as a function against time and shown below:
Phase | Mean Squared Displacement (Total) - Small Systems | Mean Squared Displacement (Total) - Large Systems |
---|---|---|
Solid | ![]() |
![]() |
Liquid | ![]() |
![]() |
Gas | ![]() |
![]() |
From the graphs showing Mean Squared Distance against timestep, the diffusion coefficient for each system can be estimated using the following equation .The diffusion coefficients were estimated for each system and shown in the table below:
Phase | Diffusion Coefficent - Small Systems | Diffusion Coefficient - Large Systems |
---|---|---|
Solid | ||
Liquid | ||
Gas |
From the table, we can see that the diffusion coefficient increases in the following order: Solid , Liquid. Gas.
The diffusion coefficient of the solid phase is negligible as the atoms are held in fixed positions.
The diffusion coefficients for the Liquid and Gaseous phases increase with time. In these two phases, the atoms are no longer held in fixed positions and have greater molecular motion. The gaseous phase shows a higher diffusion coefficient compared to the liquid phase. This is due to the difference in densities between the two states. In the gaseous phase, molecules have a greater mean free path and can travel a further distance before colliding with another molecule.
Moreover, atoms in the gaseous phase experience weaker intermolecular forces and are able to move with a greater degree of freedom.
The simulation was also repeated for large systems containing one million atoms and the results are similar to the results obtained from simulations of small systems
JC: To calculate D you should only fit a straight line to the linear part of the MSD graph as this is the diffusive regime, not the whole data set. Why is the gas MSD graph curved at short times?
Velocity Autocorrelation Function
TASK: In the theoretical section at the beginning, the equation for the evolution of the position of a 1D harmonic oscillator as a function of time was given. Using this, evaluate the normalised velocity autocorrelation function for a 1D harmonic oscillator
The normalised velocity autocorrelation function for a 1D harmonic oscillator is evaluated.
VACF of the 1D Harmonic Oscilator. |
---|
|
JC: Correct result, but the integral of cos(t)xsin(t) is not sin^2(t) in the last but one line. cos(t)xsin(t) is an odd function so the integral from -inf to inf will be zero.
On the same graph, with x range 0 to 500, plot with and the VACFs from your liquid and solid simulations. What do the minima in the VACFs for the liquid and solid system represent? Discuss the origin of the differences between the liquid and solid VACFs. The harmonic oscillator VACF is very different to the Lennard Jones solid and liquid. Why is this? Attach a copy of your plot to your writeup.
The velocity autocorrelation function of both Solid and Liquid simulations as well as the approximation from the 1 dimensional harmonic oscillator are plotted in the graph shown below:
Velocity Auto-correlation Function vs Timestep |
---|
![]() |
The mimimas in the VACFs for the solid and liquid systems indicate that the velocities of the atoms are reversed
The VACFs for the solid and liquid phase show the behavior of a dampened oscillator. They do not display perfect oscillatory behaviour due to frictional forces which causes it to oscillate with a frequency and amplitude that decreases over time. In the solid phase, atoms are held in fixed positions and can interact with neighboring atoms. In the liquid phase, atoms are no longer held in fixed positions and are able to move around more freely to interact with other atoms. The increased motion in the liquid phase has an increases dampening effect on its oscillatory behavior. As such, the VACF for the liquid phase decays at a much quicker rate compared to the solid phase.
The VACF for the Harmonic oscillator represents a situation where there are no interactions to dampen oscillatory motion. It oscillates with only the restoring force acting on the system.The velocity goes in the reverse direction at the end of each oscillation. The VACF does not decay unlike the phases modelled using the Lennard-Jones potential.
JC: What do you mean by frictional forces? The VACF decays because of collisions between particles.
TASK: Use the trapezium rule to approximate the integral under the velocity autocorrelation function for the solid, liquid, and gas, and use these values to estimate in each case. You should make a plot of the running integral in each case. Are they as you expect? Repeat this procedure for the VACF data that you were given from the one million atom simulations. What do you think is the largest source of error in your estimates of D from the VACF?
The trapezium rule was used to estimate the integral under the VACF for the solid liquid and gaseous phase. The calculation was also performed on a simulation of one million atoms. The plots are shown in the table below.
Phase | Running Integral Value - Small Systems | Running Integral Value - Large Systems |
---|---|---|
Solid | ![]() |
![]() |
Liquid | ![]() |
![]() |
Gas | ![]() |
![]() |
From the graphs, the diffusion coefficient for each system can be estimated using the following equation The diffusion coefficients were estimated for each system and shown in the table below:
Phase | Diffusion Coefficent - Small Systems | Diffusion Coefficient - Large Systems |
---|---|---|
Solid | ||
Liquid | ||
Gas |
The diffusion coefficients obtained by approximating the area under the VACF integrals show a similar trend to the diffusion coefficients obtained from the MSD graphs. One source of error when estimating the diffusion coefficient from the VACF would be an ineffective trapezium approximation to the VACF curves. In the future, smaller timesteps could use used. This would provide a better estimation for the area under the integral by producing a better trapezium approximation.
However, the greatest source of error while running the VACF simulation would be the amount of time units simulated when running the simulation. From the running integral graphs, we can see that the liquid and gaseous phases have not reached equilibrium and its value is still increasing. Running the simulation for a longer time would allow it to reach equilibrium and lead to a better estimation of diffusion coefficient values.
JC: Good.