Lecture 1
Lecture 1
Lecture 1
78648
Laboratory of
Molecular Design and
Materials Simulation
Chemical and
Process Engineering
OUTLINE
•Instructor
•Course Schedule and organization
•Reference books
•Final exam
•Introduction to Molecular Dynamics
•Software used in the course: MAPS
•Applications of Molecular Simulations
https://www.youtube.com/watch?v=FDvbfjxGeok
Software Installation
• Many Physically-Based
Simulations model
easily observable real
world phenomena.
• Molecular Dynamics
Simulations model
things too small for us
to observe directly.
Why Not Quantum Mechanics?
• Modeling the motion of a complex molecule
by solving the wave functions of the various
subatomic particles would be accurate…
22
U ( x , y , z ) ( x , y , z ) E ( x , y , z )
2m
• But it would also be very hard to program
and take more computing power than
anyone has
Classical Mechanics
• Bonded Neighbors
• Non-Bonded Atoms (either other atoms
in the same molecule, or atoms from
different molecules)
V ( R ) E bonded E nonbonded
Non-Bonded Atoms
Aik C ik
E Lennard Jones 12 6
nonbonded rik rik
pairs
The van der Waals Potential
The Constants A and C
depend on the atom
types, and are derived
from experimental data.
Aik Cik
12 6
nonbonded rik rik
pairs
The Electrostatic Potential
qi qk
Eelectrostatic
nonbonded Drik
pairs
Coulomb’s Law
q1q2
F
4 0 r 2
The Non-Bonded Potential
E bond stretch K
1, 2 pairs
b (b b0 ) 2
Bond Angle Potentials
E bond bend K (
angles
0 ) 2
Torsional Potentials
Described by a
dihedral angle and
coefficient of
symmetry (n=1,2,3),
around the middle
bond.
Averaging
P, T, V
3 variables to define
the state 1020 variables to
define the state
Some introductory
concepts of
STATISTICAL
MECHANICS
Microscopic configurations: ENSEMBLES
• An ensemble is formed by a set of configurations (microscopic box formed
by N molecules, specified by 6N variables=3N coordinates (x,y,z)+3N
velocities (vx, vy, vz)) that all satisfy certain macroscopic constraints:
– NVE ensemble is formed by all possible configurations of N molecules with total
energy E and total volume V. (MICROCANONICAL ENSEMBLE)
– NVT ensemble is formed by all possible configurations of N molecules with
temperature T and total volume V. (CANONICAL ENSEMBLE)
– NPT ensemble is formed by all possible configurations of N molecules with
temperature T and pressure p.
- mVT ensemble is formed by all possible configurations of molecules with
chemical potential m, temperature T, total volume V. (N Not fixed) (GRAND
CANONICAL ENSEMBLE) useful for phase equilibria
• The several configurations belonging to a same ensemble are, in general,
not distributed evenly, i.e. they are not all equally probable.
Probability functions
d 2 ri
Fi mi ai mi 2 ri = particle position
dt
Integration of Newton’s law for all particles gives us the positions and
velocities ri(t) and ri’(t) at each time for each particle i.
From such information, using Statistical Mechanics laws (averaging)
we obtain average macroscopic quantities as in a real experiment
MD is more similar to real experiments than MonteCarlo (the other
important molecular simulation technique)
Averaging
P, T, V
STATISTICAL
3 variables to define MECHANICS
the state 1020 variables to
define the state
431- 78648 Laboratory of Molecular Design and
Materials Simulation
Force Fields implemented in LAMMPS
A force field has 2 parts: the formulas that define it and the coefficients used for a
particular system. Formulas implemented in LAMMPS correspond to formulas commonly
used in the
CHARMM (MacKerell, Bashford, Bellott, Dunbrack, Evanseck, Field, Fischer, Gao, Guo,
Ha, et al, J Phys Chem, 102, 3586 (1998)
AMBER (Cornell, Cieplak, Bayly, Gould, Merz, Ferguson, Spellmeyer, Fox, Caldwell,
Kollman, JACS 117, 5179-5197 (1995).)
DREIDING force fields.
DREIDING is a generic force field developed by the Goddard group at Caltech and is
useful for predicting structures and dynamics of organic, biological and main-group
inorganic molecules.
Building molecules
MAPS Manual\Tutorials\Fast Track Tutorials
LAMMPS
MAPS Manual\Tutorials\LAMMPS
Manual-1
1.1. Sketching tools to quickly create 3D molecular models
In the viewer, you can enable or disable the Sketch toolbar:
Add atom: select the build item you need (atom or group) and click the
atom to which the build item should be attached to
Sketcher select the element you want to sketch with, click on the sketching
tool and start drawing the system of interest.
Delete hydrogens: this option reverses the action of the add hydrogens button. It
removes all hydrogen atoms added by clicking on the add hydrogens button.
Replace atom: modifies the system by replacing one atom with another atom or
group. Select the build item you want to introduce and click on the atom you want to
replace.
Invert stereo chemistry of atom: invert stereo chemistry of atom changes the
conformation of a stereo center from S to R or vice versa if the atom selected is a
chiral atom.
Move group : selecting this enables you to perform rotations and translations
on a part of the molecule. Unselecting this switches back to the full mode where
the whole system is rotated and/or translated.
Manual-4
Modify cell: opens a dialog for modifying cells, create supercells or remove
symmetry (make P1 symmetry). A click on this button opens the Unit cell dialog.
Clean structure: allows you to quickly optimize the structure of the system
sketched using the Universal Force Field (UFF)
Warning : this is not a very reliable method and thus a proper optimization
procedure should be used.
Fix atoms: allows you to fix atom. Click on this icon to open the corresponding
dialog (displayed below). In this dialog you can either select to fix atomic position.
Assign force field: this button calls the Assign force field dialog which allows
you define the force field to be used in a classical simulation i.e., geometry
optimization or molecular dynamics.
Manual-5
Build item: select the atom or group which should be added when
the Add Atom/group button is active and an atom is clicked at in the model
viewer. The list can be modified by selecting the last item (Edit list). Selecting
this item opens the Select building item dialog.
Note : you can create your own fragments by drawing and saving them as *.cml
file in the groups folder of MAPS. Please see Saving a model as template.
Torsion angle: select the torsion angle to apply when groups are added
in the model viewer.
Manual-Amorphous builder 1
Input
Composition table: in this table you can specify the composition of the amorphous system to be build.
Each row corresponds to one component of the system. In the Project column choose the project in
which the model you want to use is located. In the Molecule column select the model.
Use Number column to specify the number of molecules for the corresponding component. Changing the
number of molecules for a component the Density will be updated. Use Add and Delete buttons located
at the right of this table, in order to add or delete components.
Matrix model: check this check box to use a model as a starting point for the amorphous system growth.
The adjacent combo boxes select model you want to use (first the project where the model is located and
the actual model).
a, b, c, α, β, γ: cell parameters. Changing any one of these parameters, the Volume and the Density will
be updated.
Temperature [K]: specifies the temperature for constructing the amorphous system.
Density [g/cm3]: specifies the target density for the amorphous system to be build. The density will be
used to construct a box containing the amorphous system. Box edges will be adjusted in a affine way and
the Volume will be updated.
Volume [Å3]: specifies the volume for the amorphous system to be built. The volume will will be used to
construct a box containing the amorphous system. Box edges will be adjusted in a affine way and
the Density will be updated.
Seed for random number generator: specifies the seed for the random number generator.
Manual-Amorphous builder 2
Options
Use threads: this option allows you to continue working with MAPS whilst the amorphous system is under
construction. This is useful, especially in the cases of large systems.
Use flexible bonds and angles: check this check box to use flexible bonds and bond angles during the
construction of an amorphous system. If this check box is not checked, bonds and angles will be set to
their equilibrium values.
Insert simultaneously: check this check box to grow all the molecules simultaneously in the simulation's
box. If this box is not checked the molecules will be inserted one at a time. This will result in a different
conformation.
Lateral atoms at the end: check this check box to insert lateral atoms (e.g. H) after the insertion of the
backbone of the molecule. If this check box is not checked, lateral atoms will be inserted in the simulation
box, after the insertion of the backbone atom on which they are attached.
Create a new project: check this check box to create a new project for the amorphous system. If this
check box is not checked, the amorphous system will be created in the same project as the model
corresponding to the first component.
Use non bonded interactions: check this check box to include non bonded interactions in the calculation
of systems' energy. If this check box is not checked, non bonded interactions will be excluded from energy
calculations. In this case, only hard sphere overlap and concatenation checks will affect the insertion of
molecules in the simulation box.
Build trials: specifies the maximum number of trials (bt) for the growth of a molecule in the simulation
box. Depending on the value of the back steps, it is possible to "recoil back" all the already inserted
particles of a molecule during the growth procedure of the molecule. This is considered a failed build
trial.Note: bt ≥ 1. Proposed value: bt ≤ 20.
Manual-Amorphous builder 3
Insertion trials: Specifies the number of trials (nt) for the insertion of the first particle of a molecule in the
simulation box.Note: nt ≥ 1. Proposed value: nt ≥ 50.
Single step trials: specifies the maximum number of positions (np) that a particle can try in a recoil
growth insertion step.Note: np ≥ 1. Proposed value: 8 ≤ np ≤ 20.
Back steps: specifies the maximum number of particles (np) that can be "recoiled back" in order to
escape from a trap during the recoil growth procedure.Note: 0 ≤ np ≤ number of molecule's particles.
Proposed value: 2 ≤ np ≤ 5.
Scale groups: specifies the scale factor (sf) for the group size. Change this in order to avoid
concatenations during the first steps of minimization (after building the amorphous system).Note: If np ≥ 1
and if sf = 1.0 no scaling is performed. Proposed value: 1.0 ≤ sf ≤ 2.0.
Scale lateral bonds: specifies the scale factor (sf) for the bond lengths of atoms that are attached to a
group and have only one bond (e.g., hydrogen atoms).Note: 0.1 ≤ sf ≤ 1.0. If sf = 1.0 no scaling is
performed.
Scale hard sphere: Specifies the scale factor (sf) for the hard sphere overlap check.Note: 0.0 ≤ sf ≤ 2.0.
If sf = 1.0 no scaling is performed. Proposed values: 0.5 ≤ sf ≤ 0.6.
2D periodic: check this check box to remove periodicity on Z direction (2D periodic boundary conditions).
Confine in z direction: check this check box to convert cell z planes to impenetrable walls. In this way,
the system is confined between the two planes (sandwich). The adjacent speed boxes define the position
of the confine planes.
Manual-Amorphous builder 3
low plane offset: use this spin box to change the offset of the low confine plane in z direction. The low
plane should always remains below the high plane.
high plane offset: use this spin box to change the offset of the high confine plane in z direction. The high
plane should always remains above the low plane.
Graft molecules: check this check box to graft the inserted molecule on z low/high confine plane.
on low plane: use this spin box to change the number of molecule grafted on the low confine plane. If
atoms belong to GRAFT_POINTS group exist in the matrix model and they are located below the low
plane, the graft point will be the projection of these atoms on the low plane. In a different case the graft
point will be selected randomly on the low plane.
on high plane: use this spin box to change the number of molecule grafted on the high confine plane. If
atoms belong to GRAFT_POINTS group exist in the matrix model and they are located abode the high
plane, the graft point will be the projection of these atoms on the high plane. In a different case the graft
point will be selected randomly on the high plane.
Software Used