Professional Documents
Culture Documents
Lecture 3
Lecture 3
p= momenta
r= positions
d E (X ) E E= total energy=Hamiltonian H
exp bE
exp b E pV
exp b E mN
How we calculate average properties
• In molecular simulations, the macroscopic values of a
thermodynamic property A are averages of microscopic
quantities.
• In MD, usually we compute time averages of the
instantaneous values of A, that depend on the microstate X
(positions and momenta of all atoms )
t t
1
A t lim AX(t)dt with X(t) = x1, y1, z1,..., x N , yN , z N ,..., m1vx 1, m1vy 1, m1vz 1,...mN vxN , mN vyN , mN vzN
t t
t 0
NVT ensemble
431- 78648 Laboratory of Molecular Design and
Materials Simulation
Operatively…
t
1
Phase average of A
A t lim
A X(t) dt
t 0
A(t ) X (t )
A( X ) X (t ) dX
Time average of A
X space
1 1
VIRIAL THEOREM p k BT
3 V i 1... N
ri Fiint
• Atoms that are far apart more than the cut off
distance are assumed not to interact at all.
• Cutoff distance can be set to 9-12 Angstroms.
z is a dimensionless parameter:
r R R0
z =12 gives the same long range attraction as LH
431- 78648 Laboratory of Molecular Design and
Materials Simulation
Build the polymer chain
•Create a new project with a new model (CTRL +N).
•Rename both the project and the model to pma.
•Build the polymer chain:
•click on Builders|Polymer builder.
•In the Monomer pull-down menu select Methyl
acrylate,
•in the Number field enter 75
•switch from isotactic to atactic.
•Leave the Number of chains and Number of
repetitions at 1. Click OK.
•The dialog closes and the pma chain appears in the
model window.
•Now you need to assign a force-field to the system. Click
on Assign force field icon in the Toolbar.
•Select the Dreiding force field. Click OK. The dialog closes.
431- 78648 Laboratory of Molecular Design and
Materials Simulation
Generate a polymer chain box
•Click on Modify cell button and in the dialog check Map atoms
into cell. The model you get should look similar than the one
pictured below (in CPK style). Uncheck this option, click on OK to
apply the option and close the dialog.
Since we have a complex polymer structure and we are using an accurate long
range treatment for electrostatics, these calculations can last up to 2 hours.
•Make sure that the structure which corresponds to the results model is the last
obtained at the geometry optimization: deploy the Conformations level and click to
select the last one. Then reduce the bu_pma_opt (output) tree.
•Select bu_pma_opt (output) in the Project manger and do a right click to open
the context menu. Select LAMMPS.
•Change Name of job to bu_pma_nvt, leave Molecular dynamics as Type of
calculation and select the NVT ensemble. Click Next .
•In the Non-bond interactions page, set the Cutoff to 9 Å,
•click on For Coulomb interaction use and select Particle mesh in the pull-down
menu. Click Next.
The Molecular dynamics page appears. Leave all default parameters and click
on Next to continue.
In the following Temperature control page again leave everything at default and
click Next. In the Output page set the Write trajectory to file every to 1000 time
steps. Click on Finish to submit the calculation. A dialog box will appear and ask
you if you want to start the calculation now. Click Yes.
431- 78648 Laboratory of Molecular Design and
Materials Simulation
MD NVT Run-results
A new experiment level appears in the Project manager with the name LAMMPS
MD calculation. Under this level the result level of the simulation indicated by the
name Result for bu_pma_nvt. In this level there is already the input
structure bu_pma_nvt (input) and the Data files level.
You can view the progress of the calculation by using Tools | Job manager.
When the job is completed load the results of the molecular dynamics calculation.
In the Frames dialog uncheck Calculate bonds. A new model calledbu_pma_nvt
(output) is generated.
You can now animate the trajectory by clicking on the Animate trajectory button in
the Toolbar. The evolution of the total energy and its components can be viewed by
clicking on the Show trajectory graph button in the Toolbar. The final structure of
the simulation should look like this:
•This calculation was performed to relax the polymer structure, now we will do a
final MD run, in the NPT ensemble, using the equilibrated amorphous structure
from the NVT molecular dynamics run.
•Select bu_pma_nvt (output) in the Project manager and Select LAMMPS.
Change Name of job to bu_pma_npt, in the Type of calculation pull-down
menu select Molecular dynamics as type of calculation and use the NPT
ensemble. Click on Next button.
•In the Non-bond interactions page, set the Cutoff to 9 Å and click on For
Coulomb interaction use and in the pull-down menu select Particle mesh.
Check also the option Calculate intermolecular interactions. Click Next.
The Molecular dynamics page appears. Leave all default and click on Next to
continue.
In the Temperature control and Pressure control pages again leave
everything at default and click Next on both pages. In the Output page set the
Write trajectory to file every to 1000 time steps.
Click on Finish to submit the calculation. A dialog box will appear and ask you if
you want to start the calculation now. Click Yes. The simulation will start now.
VOLUME
Applying the formula above yields a value for the solubility parameter, δ =
18.5 (J/cm3)1/2. The experimental solubility parameter for amorphous PMA is in the
range 19.9 to 21.3(J/cm3)1/2 (van Krevelen, 1990). Please note that the predicted
value deviates less than 7 % from the experimental value. In order to have an even
better agreement with the experimental value should run a longer NPT simulation in
order to better converge <Ei> and <V> and reduce the error on their values.
Now display the density and calculate the average over the same interval. The
average value should <ρ>=1.22 g/cm3 and a deviation of 0.016 which is in perfect
agreement with the experimental value.