CE 400 Honors Seminar Molecular Simulation Prof. Kofke Department of Chemical Engineering University at Buffalo, State University of New York Class 3.

Slides:



Advertisements
Similar presentations
GASES! AP Chapter 10. Characteristics of Gases Substances that are gases at room temperature tend to be molecular substances with low molecular masses.
Advertisements

Chapter 11 Gases Copyright McGraw-Hill
Chapter 5 Gases John A. Schreifels Chemistry 211.
Nature of Science Metric System-International System of Units (SI)
1 CE 530 Molecular Simulation Lecture 2 David A. Kofke Department of Chemical Engineering SUNY Buffalo
The Scientific Method.
Mark S. Cracolice Edward I. Peters Mark S. Cracolice The University of Montana Chapter 4 Introduction to Gases.
The properties of matter must be measured correctly and reported without ambiguity.
CE 400 Honors Seminar Molecular Simulation Prof. Kofke Department of Chemical Engineering University at Buffalo, State University of New York Class 1.
Chapter 1 Introduction: Matter and Measurement
Scientific Measurement
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
Section 2: Standards of Measurement
INTRODUCTION TO CHEMISTRY Systems of Measurement Professor Bob Kaplan University Department of Science.
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 11 Some materials adapted from Prof. Keith E. Gubbins:
Ch 23 pages Lecture 15 – Molecular interactions.
CHAPTER 14 THE BEHAVIOR OF GASES:
SI units, metric units, scientific notation, and dimensional analysis
Quinnipiac University
Free energies and phase transitions. Condition for phase coexistence in a one-component system:
Analyzing Data. Units and Measurements  Units  Système Internationale D’Unités ▪ Units were not always exact ▪ Scientists report data, and this data.
1 Chapter 6: The States of Matter. 2 PHYSICAL PROPERTIES OF MATTER All three states of matter have certain properties that help distinguish between the.
The Properties of Gases. Properties of Gases 1. Gases expand to fill the container. 2. Gases take on the shape of the container. 3. Gases are highly compressible.
Honors Chemistry, Chapter 10 Page 1 Chapter 10 – Physical Characteristics of Gases.
Constant-Volume Gas Thermometer
Chapter 10 Gases Chemistry, The Central Science, 10th edition
Gases Chapter 10 Gases. Gases Characteristics of Gases Unlike liquids and solids, they  Expand to fill their containers.  Are highly compressible. 
Matter and Measurement Mrs. Alvarez.  Definition: Mass per unit volume of a substance  Formula: D = m/V ; units: g/mL, g/cm 3, kg/L.
Prentice Hall © 2003Chapter 10 Chapter 10 Gases CHEMISTRY The Central Science 9th Edition David P. White.
Metric System for Recording Measurments. Why do we use a standard system? So that measurements can be consistent among people from all over the world.
Chapter 13 Section 13.2 The Ideal Gas Law.
Gases Chapter 10 Gases. Gases Characteristics of Gases Unlike liquids and solids, they  _______________ to fill their containers.  Are highly _______________.
Behavior of Gases  Gases behave much differently than liquids and solids and thus, have different laws.  Because gas molecules have no forces keeping.
Matter and Measurement Mrs. Alvarez 9/2013.  Definition: Mass per unit volume of a substance  Formula: D = m/V ; units: g/mL, g/cm 3, kg/L.
MTH 232 Section 10.1 The Measurement Process. 1.Choose the property, or attribute, of an object or event that is to be measured. 2.Select an appropriate.
Dissipative Particle Dynamics. Molecular Dynamics, why slow? MD solves Newton’s equations of motion for atoms/molecules: Why MD is slow?
GASES.
Metric System Podcast For Chemistry.
Gases Unit 6. Kinetic Molecular Theory  Kinetic energy is the energy an object has due to its motion.  Faster object moves = higher kinetic energy 
Chapter 101 Gases. 2 Homework: 10.12, 10.28, 10.42, 10.48, 10.54, 10.66,
Gases: Chapter – Characteristics of Gases Physical properties of gases are all similar. Composed mainly of nonmetallic elements with simple formulas.
Interacting Molecules in a Dense Fluid
Gases Pressure Boyle’s Law Charles’ Law Gay-Lussac’s Law
Quinnipiac University
Metric System.
GASES. Gases  The physical state of gases is defined by several physical properties  Volume  Temperature  Amount (commonly expressed as number of.
THE GAS LAWS AVOGADRO’S, BOYLE’S, CHARLES’S, GAY-LUSSAC’S AND COMBINED GAS LAWS.
KINETIC MOLECULAR THEORY COLLISION THEORY OF GAS MOLECULES Unit 7-Behavior of Gas Molecules.
Prentice Hall © 2003Chapter 10 Chapter 10 Gases CHEMISTRY The Central Science 9th Edition.
CHAPTER 1, SECTION 2 Standards of Measurement. IS AN EXACT QUANTITY THAT PEOPLE AGREE TO USE TO COMPARE MEASUREMENTS WHY WOULD A STANDARD BE IMPORTANT?
Intro to Gases. First, remember the 3 states of matter…
Chapter 1 The Nature of Science.
Gas Laws.
Measurements and Problem Solving in Chemistry
Chemistry: the field of study concerned with the characteristics, composition, and transformations of matter Matter: anything that has mass and occupies.
Quinnipiac University
Quinnipiac University
Quinnipiac University
Quinnipiac University
Quinnipiac University
Quinnipiac University
Chapter Two: Introduction to Engineering Calculations
Quinnipiac University
Lecture Presentation Chapter 10 Gases.
Quinnipiac University
Quinnipiac University
The Scientific Method.
Quinnipiac University
Graphing!.
Presentation transcript:

CE 400 Honors Seminar Molecular Simulation Prof. Kofke Department of Chemical Engineering University at Buffalo, State University of New York Class 3

2 Dimensions and Units 1. Magnitudes Typical simulation size very small – atoms Important extensive quantities small in magnitude –when expressed in macroscopic units Small numbers are inconvenient Two ways to magnify them –work with atomic-scale units ps, amu, nm or Å –make dimensionless with characteristic values model values of size, energy, mass

3 Dimensions and Units 2. Scaling Scaling by model parameters –size  –energy  –mass m Choose values for one atom/molecule pair potential arbitrarily Other model parameters given in terms of reference values –e.g.,  2 /  1 = 1.2 Physical magnitudes less transparent Sometimes convenient to scale coordinates differently

4 D & U 3. Corresponding States Lennard-Jones potential in dimensionless form Parameter independent! Dimensionless properties must also be parameter independent –convenient to report properties in this form, e.g. P*(  *,T*) –select model values to get actual values of properties –Basis of corresponding states Equivalent to selecting unit value for parameters

5 Dimensions and Units 4. Corresponding States Example –Want pressure for methane at mol/cm 3 and 167 K –LJ model parameters are  = nm,  /k = K –Dimensionless state parameters  * =  3 = ( mol/cm 3 )(3.790  cm) 3 (6.022  molecules/mole) = 0.6 T* = T/(  /k) = (167 K)/(142.1 K) = –From LJ equation of state P* = P  3 /  = –Corresponding to a pressure P = (142.1 K)(13.8 MPa-Å 3 /molecule )/(3.790Å) 3 = 5.3 MPa 53 bars

6 Units in Etomica 1. All internal calculations are based on a consistent set of units –Mass: amu or Dalton, 1/N A grams = 1.66  grams –Length: Angstrom, meters –Time: picosecond, seconds Conversion to other units is done for input or output by a Device or Display Default action is to perform no conversion –Temperature is given as k B T, in units of amu-A 2 /ps 2 Default I/O unit system can be changed –MKS (CGS, English, atomic, etc. to be defined) –Lennard-Jones –At beginning of simulation, use (for example) setUnitSystem(etomica.units.UnitSystem.MKS);

7 Units in Etomica. 2. A Unit class has the information needed to perform conversions Unit formed from two elements –Prefix: milli, kilo, mega, nano, pico, etc. –BaseUnit: meter, gram, second, etc. –For example: import etomica.units; new Unit(Prefix.KILO, Gram.UNIT); –Can construct without prefix specified (none by default) Display/Device units specified with setUnit method setUnit(new Unit(Second.UNIT)); Lennard-Jones units use size and energy scales for conversions –By default,  = 3 Angstroms,  /k = 300K

8 Units and Spatial Dimensions Most often we simulate 2-dimensions systems –Easier to visualize Some physical quantities have units defined exclusively for 3-dimensional systems –Pressure: pounds per square inch, bars, mm Hg, etc. –Volume: cubic centimeters, liters, gallons, etc. Etomica offers two approaches –Report in appropriate 2-D units pounds per inch, Newtons per meter, square centimeters, etc. –Ascribe an artificial “depth” to the simulation Volume = (depth)  (area) Presently –LJ UnitSystem will report in appropriate 2-D units –MKS UnitSystem ignores the problem (a bug!)

9 Notes About Etomica Version now in use was completed in early June Much development/debugging of API proceeded over summer –Etomica GUI hasn’t yet been brought up-to-date –Progress now being made with it, and expected to become available Real Soon Now –In the meantime, please be patient! Etomica crashes in two known circumstances: –Assembly of incompatible components Soft potential with hard integrator, for example –Jamming of molecules with hard integrator

10 Equations of State 1. The “equation of state” is the pressure-volume-temperature behavior of a fluid (or solid) Consider: –What happens to the pressure as the volume decreases (density increases) at fixed temperature? –What happens to the density as temperature increases at fixed pressure? –Must it always happen this way? What is the law relating pressure, temperature, density? –Is it exact, like the law F = ma?

11 Equations of State 1. The “equation of state” is the pressure-volume-temperature behavior of a fluid (or solid) Consider: –What happens to the pressure as the volume decreases (density increases) at fixed temperature? It increases, always. –What happens to the density as temperature increases at fixed pressure? It decreases (hot expands), usually. –Must it always happen this way? Yes and no. What is the law relating pressure, temperature, density? –PV = nRT, the ideal gas law –Is it exact, like the law F = ma? No! (nor is F = ma, for that matter).

12 Equations of State 2. The ideal-gas law is, well, an idealization –Appropriate at low density, and (less so) at high temperature Real materials deviate from ideal-gas behavior –Repulsions between molecules tend to increase pressure above ideal –Attractions tend to decrease pressure below ideal Here’s an empirical equation of state for the 2-D hard sphere model –Note the adherence to ideal-gas behavior at low density –It is hard to make good, general-purpose equations of state for real materials

13 Monte Carlo Simulation: Buffon’s Needle Consider a grid of equally spaced lines, separated by a distance d Take a needle of length l, and repeatedly toss it at random on the grid Record the number of “hits”, times that the needle touches a line, and “misses”, times that it doesn’t –OK, do it!

14 Monte Carlo Simulation: Buffon’s Needle Consider a grid of equally spaced lines, separated by a distance d Take a needle of length l, and repeatedly toss it at random on the grid Record the number of “hits”, times that the needle touches a line, and “misses”, times that it doesn’t Buffon showed that the probability of a “hit” is This “experiment” provides a means to evaluate pi

15 Monte Carlo Simulation: Area of Circle Consider selecting many points at random in a unit square What is the fraction of the selections that lie in the unit circle? 1 1

16 Monte Carlo Simulation: Area of Circle Fraction falling in circle is given by the ratio of their areas This gives another experiment to measure pi Let’s try it!

17 Random Number Generation Random number generators –subroutines that provide a new random deviate with each call –basic generators give value on (0,1) with uniform probability –uses a deterministic algorithm (of course) usually involves multiplication and truncation of leading bits of a number Returns set of numbers that meet many statistical measures of randomness –histogram is uniform –no systematic correlation of deviates no idea what next value will be from knowledge of present value (without knowing generation algorithm) but eventually, the series must end up repeating Some famous failures –be careful to use a good quality generator linear congruential sequence Plot of successive deviates (X n,X n+1 ) Not so random!