Computational Physics (Lecture 3)

Slides:



Advertisements
Similar presentations
Request Dispatching for Cheap Energy Prices in Cloud Data Centers
Advertisements

SpringerLink Training Kit
Luminosity measurements at Hadron Colliders
From Word Embeddings To Document Distances
Choosing a Dental Plan Student Name
Virtual Environments and Computer Graphics
Chương 1: CÁC PHƯƠNG THỨC GIAO DỊCH TRÊN THỊ TRƯỜNG THẾ GIỚI
THỰC TIỄN KINH DOANH TRONG CỘNG ĐỒNG KINH TẾ ASEAN –
D. Phát triển thương hiệu
NHỮNG VẤN ĐỀ NỔI BẬT CỦA NỀN KINH TẾ VIỆT NAM GIAI ĐOẠN
Điều trị chống huyết khối trong tai biến mạch máu não
BÖnh Parkinson PGS.TS.BS NGUYỄN TRỌNG HƯNG BỆNH VIỆN LÃO KHOA TRUNG ƯƠNG TRƯỜNG ĐẠI HỌC Y HÀ NỘI Bác Ninh 2013.
Nasal Cannula X particulate mask
Evolving Architecture for Beyond the Standard Model
HF NOISE FILTERS PERFORMANCE
Electronics for Pedestrians – Passive Components –
Parameterization of Tabulated BRDFs Ian Mallett (me), Cem Yuksel
L-Systems and Affine Transformations
CMSC423: Bioinformatic Algorithms, Databases and Tools
Some aspect concerning the LMDZ dynamical core and its use
Bayesian Confidence Limits and Intervals
实习总结 (Internship Summary)
Current State of Japanese Economy under Negative Interest Rate and Proposed Remedies Naoyuki Yoshino Dean Asian Development Bank Institute Professor Emeritus,
Front End Electronics for SOI Monolithic Pixel Sensor
Face Recognition Monday, February 1, 2016.
Solving Rubik's Cube By: Etai Nativ.
CS284 Paper Presentation Arpad Kovacs
انتقال حرارت 2 خانم خسرویار.
Summer Student Program First results
Theoretical Results on Neutrinos
HERMESでのHard Exclusive生成過程による 核子内クォーク全角運動量についての研究
Wavelet Coherence & Cross-Wavelet Transform
yaSpMV: Yet Another SpMV Framework on GPUs
Creating Synthetic Microdata for Higher Educational Use in Japan: Reproduction of Distribution Type based on the Descriptive Statistics Kiyomi Shirakawa.
MOCLA02 Design of a Compact L-­band Transverse Deflecting Cavity with Arbitrary Polarizations for the SACLA Injector Sep. 14th, 2015 H. Maesaka, T. Asaka,
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Fuel cell development program for electric vehicle
Overview of TST-2 Experiment
Optomechanics with atoms
داده کاوی سئوالات نمونه
Inter-system biases estimation in multi-GNSS relative positioning with GPS and Galileo Cecile Deprez and Rene Warnant University of Liege, Belgium  
ლექცია 4 - ფული და ინფლაცია
10. predavanje Novac i financijski sustav
Wissenschaftliche Aussprache zur Dissertation
FLUORECENCE MICROSCOPY SUPERRESOLUTION BLINK MICROSCOPY ON THE BASIS OF ENGINEERED DARK STATES* *Christian Steinhauer, Carsten Forthmann, Jan Vogelsang,
Particle acceleration during the gamma-ray flares of the Crab Nebular
Interpretations of the Derivative Gottfried Wilhelm Leibniz
Advisor: Chiuyuan Chen Student: Shao-Chun Lin
Widow Rockfish Assessment
SiW-ECAL Beam Test 2015 Kick-Off meeting
On Robust Neighbor Discovery in Mobile Wireless Networks
Chapter 6 并发:死锁和饥饿 Operating Systems: Internals and Design Principles
You NEED your book!!! Frequency Distribution
Y V =0 a V =V0 x b b V =0 z
Fairness-oriented Scheduling Support for Multicore Systems
Climate-Energy-Policy Interaction
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Ch48 Statistics by Chtan FYHSKulai
The ABCD matrix for parabolic reflectors and its application to astigmatism free four-mirror cavities.
Measure Twice and Cut Once: Robust Dynamic Voltage Scaling for FPGAs
Online Learning: An Introduction
Factor Based Index of Systemic Stress (FISS)
What is Chemistry? Chemistry is: the study of matter & the changes it undergoes Composition Structure Properties Energy changes.
THE BERRY PHASE OF A BOGOLIUBOV QUASIPARTICLE IN AN ABRIKOSOV VORTEX*
Quantum-classical transition in optical twin beams and experimental applications to quantum metrology Ivano Ruo-Berchera Frascati.
The Toroidal Sporadic Source: Understanding Temporal Variations
FW 3.4: More Circle Practice
ارائه یک روش حل مبتنی بر استراتژی های تکاملی گروه بندی برای حل مسئله بسته بندی اقلام در ظروف
Decision Procedures Christoph M. Wintersteiger 9/11/2017 3:14 PM
Limits on Anomalous WWγ and WWZ Couplings from DØ
Presentation transcript:

Computational Physics (Lecture 3)

Interpolation Computer is a system with finite number of discrete states. In numerical analysis, the results obtained from computations are always approximations of the desired quantities and in most cases are within some uncertainties. Interpolation is needed When we need to infer some information from discrete data.

Lagrange interpolation and Aitken method. The simplest way to obtain the approximation of f (x) for x ∈ [xi , xi+1] is to construct a straight line between xi and xi+1. Lagrange interpolation and Aitken method. How to obtain the generalized interpolation formula passing through n data points?

Least-square approximation The global behavior of a set of data in order to understand the trend. The most common approximation: based on the least squares of the differences between the approximation pm(x) and the data f (x). What’s the proper way to handle data with highly oscillated nature.

Spline approximation A set of data that varies rapidly over the range of interest A typical spectral measurement that contains many peaks and dips. fit the function locally and to connect each piece of the function smoothly. A spline interpolates the data locally through a polynomial fits the data overall by connecting each segment of the interpolation polynomial by matching the function and its derivatives at the data points.

Artificial neural network Inspired by the biological neural networks Can be regarded as a special kind of interpolation. Perceptron weights, w1,w2,…w1,w2,…, real numbers expressing the importance of the respective inputs to the output. The neuron's output, 0 or 1, determined by whether the weighted sum ∑wjxj is less than or greater than some threshold value.

Training data Public layer and hidden layers

Numerical Calculus the heart of describing physical phenomena. The velocity and the acceleration of a particle are the first-order and second-order time derivatives of the corresponding position vector…

Numerical differentiation Taylor exapnsion: f (x) = f (x0) + (x − x0) f ‘(x0) + (x − x0)2/2! f’’ (x0)+ · · The first-order derivative of a single-variable function f (x) around a point xi is defined from the limit f ‘(xi ) = lim (Δ x→0) [f (xi + Δx) − f (xi )] / Δ x divide the space into discrete points xi with evenly spaced intervals, h. f i’= (fi+1 − fi)/h + O(h). Can be improved if we expand around i+1 and i-1: f i’= (fi+1 − fi-1)/2h+ O(h). A three point formula: For a second-order derivative. A three point formula is given by the combination:

Numerical Integrations For a integral: We just divide the region [a,b] into n slices with an interval of h.

Trapezoid rule In the standard integration method To evaluate the integration of each slice, we can approximate the f(x) in the region linearly. F(x) = fi+(x-xi)(fi+1-fi)/h Integrating each slice, we have

Random method Just take N points randomly in the region, evaluate the function on those points and take average, times the integration area. Simple sampling method. 0 1 𝑓 𝑥 𝑑𝑥 ≃1/𝑁 𝑖=1 𝑁 𝑓(𝑥𝑖)

Two Problems: Calculate: accurate value: 102 0.879679 1.47x 10-2 1.69 x 10-2 0.1 1.69 x 10-1 103 0.871238 4.92x 10-3 5.45 x 10-3 3.16x 10-2 1.72x 10-1 104 0.869603 3.03 x 10-3 1.74 x 10-3 10-2 1.74 x 10-1 105 0.866777 2.26 x 10-4 5.61x 10-4 3.16x 10-3 1.77 x 10-1 106 0.866876 1.11x 10-4 1.77x 10-4 0.001 107 0.867004 3.63x 10-5 5.60x 10-5 3.16x 10-4 1.77x10-1 108 0.866947 2.97x 10-5 1.77x 10-5 10-4 109 0.866956 1.89x 10-5 5.60x 10-6 3.16x 10-5

Relative error as a function of N F(x)

Sample code to illustrate the simple sampling method // An example of integration with direct Monte Carlo // scheme with integrand f(x) = x*x. import java.lang.*; import java.util.Random; public class Monte { public static void main(String argv[]) { Random r = new Random(); int n = 1000000; double s0 = 0; double ds = 0; for (int i=0; i<n; ++i) { double x = r.nextDouble(); double f = x*x; s0 += f; ds += f*f; } s0 /= n; ds /= n; ds = Math.sqrt(Math.abs(ds-s0*s0)/n); System.out.println("S = " + s0 + " +- " + ds);

Example 2: Calculate: Accurate result: Using the above method: 102 0.52577 0.392 0.287 0.100 2.87 103 0.79895 0.755x 10-1 0.900x 10-1 0.316x10-1 2.85 104 0.88543 0.246 x 10-1 0.269 x 10-1 0.100 x 10-1 2.69 105 0.87210 0.919 x 10-2 0.864x 10-2 0.316x 10-2 2.73 106 0.86581 0.190x 10-2 0.274x 10-2 0.100x 10-2 2.74 107 0.86485 0.798x 10-3 0.868 x 10-3 0.316 x 10-3 108 0.86377 0.456 x 10-3 0.275 x 10-3 0.100 x 10-3 2.75 109 0.86418 0.218 x 10-4 0.868 x 10-4 0.316x10-4

In this example The function is significant in the range of [2,4] So it’s no good to eventually divide [0,10]

Introduction to Crystal structure -continued

reciprocal lattice Important to study reciprocal lattice Primitive translation vectors t1, t2 and t3 In the reciprocal space, we have g1, g2 and g3 ti∙gj =2 πδij 2 π factor is to simplify some expressions. If a crystal rotation of t1, t2, t3 is performed in the direct space, the same rotation of g1, g2, g3 occurs in the reciprocal space. The propagation of wavevector k of a general plane wave exp(ik∙r) has the reciprocal length dimension!

reciprocal space All the points defined by the vectors of the type: gm = m1 g1 + m2 g2 + m3 g3 Reciprocal lattice Note: Only related to the translation properties of the crystal and not to the basis. Solve that general equation, we have: g1=2 (t2 x t3) / Ω Ω = t1 ·(t2 х t3) volume of the primitive cell g2=2 (t3 x t1) / Ω g3=2 (t1 x t2) / Ω Examples:sc <==> sc fcc <==> bcc bcc <==> fcc

Useful Properties The direct and reciprocal lattices obey some simple useful properties 1, the volume Ωk of the unit cell in the reciprocal space is (2π)3 times the reciprocal of the volume of the unit cell in the direct lattice. Will be assigned as a homework to prove this 2, g m∙t n =integer∙2π 3, If a vector q satisfies the relation , q∙t n =integer∙2π for any t n , q has to be a reciprocacl lattice vector. 4, A plane wave exp(ik ∙r) has the lattice periodicity if and only if the wavevector k equals a reciprocal lattice vector. W(r) = exp(i g m ∙r)

Fourier expansion Plane wave: W(r) = exp(i g m ∙r) remain unchanged if we replace r==> r+tn. A function f(R) periodic in the direct lattice can be expanded in the form F(r)= 𝑔𝑚 𝑓 𝑚𝑒𝑥𝑝(i g m ∙r) Where, the sum is over reciprocal lattice vectors.

Distance between lattice planes g m∙t n =integer∙2π Consider a family of planes in the direct space defined by the equations: g m∙r =integer∙2π All translation vectors belong to the family of planes. The distance between two consecutive planes is d= 2π/ g m Every reciprocal lattice vector is normal to a family of parallel and equidistant planes containing all the direct lattice points.

MAX VON LAUE 1914 Nobel Laureate in Physics for his discovery of the diffraction of X-rays by crystals.

Laue Condition and Bragg rule Introduce Fourier Components of Charge density Suppose G is the reciprocal vector K is the scattering vector: difference between the ingoing and outgoing wave vectors. Laue Condition

SIR WILLIAM HENRY BRAGG (1862-1942) 1915 Nobel Laureate in Physics for their services in the analysis of crystal structure by means of X-rays SIR WILLIAM HENRY BRAGG (1862-1942) SIR WILLIAM LAWRENCE BRAGG(1890-1971)

elastic diffraction: |k0|= |k|= |k - G| Squared 2 k •G = G2 Bragg plane Laue condition => Bragg law n2dhkl sin 

3, Show the packing fraction in the following crystal structures: bcc = (√3/8)pi, fcc = (√ 2/6)pi, and Diamond=(√ 3/16)pi. 4, write a small program to integrate f(x) = x2 from [-1, +1] using trapezoidal rule and random sampling. Calculate the squared deviation from the true value as a function of M sample points or N slices and compare the difference of these two algorithms. Submit your HW solution, code, and a brief report of problem 4 to our TA.