OPENPH - NUMERICAL PHYSICS LIBRARY

Similar documents
CHAPTER 6 Quantum Mechanics II

CHAPTER 6 Quantum Mechanics II

Exam tomorrow on Chapter 15, 16, and 17 (Oscilla;ons and Waves 1 &2)

Opinions on quantum mechanics. CHAPTER 6 Quantum Mechanics II. 6.1: The Schrödinger Wave Equation. Normalization and Probability

Chapter 13 Lecture. Essential University Physics Richard Wolfson 2 nd Edition. Oscillatory Motion Pearson Education, Inc.

Semiconductor Physics and Devices

Chapter 14: Periodic motion

KEELE UNIVERSITY PHYSICS/ASTROPHYSICS MODULE PHY OSCILLATIONS AND WAVES PRACTICE EXAM

CHAPTER 11 TEST REVIEW

PreClass Notes: Chapter 13, Sections

The Simple Harmonic Oscillator

HS AP Physics 1 Science

Dynamics inertia, mass, force. Including centripetal acceleration

DEFINITIONS. Linear Motion. Conservation of Momentum. Vectors and Scalars. Circular Motion. Newton s Laws of Motion

The maximum kinetic energy is directly proportional to the frequency. The time for one oscillation is directly proportional to the frequency.

PHYSICS. Chapter 15 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT Pearson Education, Inc.

Physics. Light Quanta

Vibrations and Waves Physics Year 1. Handout 1: Course Details

Chapter 16: Oscillatory Motion and Waves. Simple Harmonic Motion (SHM)

Follow links Class Use and other Permissions. For more information, send to:

1) The K.E and P.E of a particle executing SHM with amplitude A will be equal to when its displacement is:

Lecture PowerPoint. Chapter 32 Physics: Principles with Applications, 6 th edition Giancoli

Miami-Dade Community College PHY 2053 College Physics I

Simple Harmonic Motion ===============================================

Pine Hill Public Schools Curriculum

Linear Spring Oscillator with Two Different Types of Damping

CHAPTER 6 Quantum Mechanics II

Section 1 Simple Harmonic Motion. Chapter 11. Preview. Objectives Hooke s Law Sample Problem Simple Harmonic Motion The Simple Pendulum

Unit assessments are composed of multiple choice and free response questions from AP exams.

Course Name: AP Physics. Team Names: Jon Collins. Velocity Acceleration Displacement

Subject Area Competencies and Skills (22nd Edition)

AP PHYSICS 1 BIG IDEAS AND LEARNING OBJECTIVES

Particle Detectors and Quantum Physics (2) Stefan Westerhoff Columbia University NYSPT Summer Institute 2002

Section 1 Simple Harmonic Motion. The student is expected to:

Chapter 14 Oscillations

Phys101 Lectures 28, 29. Wave Motion

ECE 487 Lecture 5 : Foundations of Quantum Mechanics IV Class Outline:

16 SUPERPOSITION & STANDING WAVES

A GUI FOR EVOLVE ZAMS

LECTURE 19: Simple harmonic oscillators

Quantum Field Theory. Chapter Introduction. 8.2 The Many Particle State

Oscillations. PHYS 101 Previous Exam Problems CHAPTER. Simple harmonic motion Mass-spring system Energy in SHM Pendulums

SOUND. Representative Sample Physics: Sound. 1. Periodic Motion of Particles PLANCESS CONCEPTS

Lecture 9: Eigenvalues and Eigenvectors in Classical Mechanics (See Section 3.12 in Boas)

Switching to OCR from AQA

AP Physics 1. Course Overview

Measurement p. 1 What Is Physics? p. 2 Measuring Things p. 2 The International System of Units p. 2 Changing Units p. 3 Length p. 4 Time p. 5 Mass p.

Massachusetts Tests for Educator Licensure (MTEL )

No Lecture on Wed. But, there is a lecture on Thursday, at your normal recitation time, so please be sure to come!

x(t+ δt) - x(t) = slope δt t+δt

Science Curriculum Matrix

Lesson Plan: Introduction to Quantum Mechanics via Wave Theory and the Photoelectric Effect

1 Physics Level I. Concepts Competencies Essential Questions Standards / Eligible Content

Physics 9e/Cutnell. correlated to the. College Board AP Physics 2 Course Objectives

SYLLABUS S L P S L P. I / 1 Elements of Physics

The Harmonic Oscillator: Zero Point Energy and Tunneling

AP Physics 1 Multiple Choice Questions - Chapter 9

Chapter 27. Quantum Physics

Page kg kg kg kg (Total 1 mark) Q4. The diagram shows two positions, X and Y, o the Ea th s su fa e.

Nuclear physics and radioactivity: Biological &Medical Applications

Coupled Oscillators. 1 Introduction. 2 Theory. PHY 300 Lab 2 Fall 2012

Physics Principles with Applications 7 th Edition, AP Edition, 2014 Giancoli

Nuclear physics and radioactivity: Biological &Medical Applications. By Assoc. Prof. Wannapong Triampo, Ph.D.

Physics 253 P. LeClair

PROGRAMMING THE TRANSIENT EXPLICIT FINITE ELEMENT ANALYSIS WITH MATLAB

Practice Test SHM with Answers

Lecture 10: The Schrödinger Equation. Lecture 10, p 2

Chapter 16 Waves in One Dimension

General Physics I. Lecture 12: Applications of Oscillatory Motion. Prof. WAN, Xin ( 万歆 )

College- and Career-Readiness Standards for Science Physics

C. points X and Y only. D. points O, X and Y only. (Total 1 mark)

General Physics I. Lecture 14: Sinusoidal Waves. Prof. WAN, Xin ( 万歆 )

SYLLABUS FORM WESTCHESTER COMMUNITY COLLEGE Valhalla, NY lo595. l. Course #: PHYSC NAME OF ORIGINATOR /REVISOR: ALENA O CONNOR

Prentice Hall: Conceptual Physics 2002 Correlated to: Tennessee Science Curriculum Standards: Physics (Grades 9-12)

A Level. A Level Physics. Oscillations (Answers) AQA, Edexcel. Name: Total Marks: /30

Lecture 10: The Schrödinger Equation. Lecture 10, p 2

SCI403: Physics. Course length: Two semesters. Materials: Physics: Problems and Solutions; materials for laboratory experiments

Page 1 of 9. Curriculum Map: Physics/Lab Course: Physics Sub-topic: Physics. Unit: Language of Physics Timeline: 2 Weeks Unit Description:

Maple in Differential Equations

Physics General Physics. Lecture 24 Oscillating Systems. Fall 2016 Semester Prof. Matthew Jones

Faculty of Computers and Information. Basic Science Department

CHARGED PARTICLES IN FIELDS

Computer simulation and modeling in virtual physics experiments

Physical World Concepts : Embedded Inquiry

Physics Assessment Unit A2 1

Physics 1C. End of Chapter 30 Exam Preparationds

Larbert High School. Quanta and Waves. Homework Exercises ADVANCED HIGHER PHYSICS

OKLAHOMA SUBJECT AREA TESTS (OSAT )

AP Physics 1 Waves and Simple Harmonic Motion Practice Test

AC : DEVELOPMENT OF VISUALIZATION TOOLS FOR ONE AND MULTIPLE DOF DYNAMIC SYSTEMS

UNIT 1 MODULE 2: OSCILLATIONS AND WAVES GENERAL OBJECTIVES EXPLANATORY NOTES SPECIFIC OBJECTIVES. On completion of this Module, students should:

DOING PHYSICS WITH MATLAB WAVE MOTION

Special Classical Physical Systems

Wave Motion and Sound

Circular Motion & Oscillations

Physics 1C. Lecture 27A

General Physics (PHY 2130)

Fundamentals Physics. Chapter 15 Oscillations

Physics 12 / Advanced Physics 12

Time Evolution in Diffusion and Quantum Mechanics. Paul Hughes & Daniel Martin

Transcription:

U.P.B. Sci. Bull., Series A, Vol. 68, No. 1, 2006 OPENPH - NUMERICAL PHYSICS LIBRARY G. MILESCU, G. NOAJE, Fl. POP * Fizica numerică a căpătat o importanţă deosebită în ultimele decenii, eficienţa sa fiind motivată şi sustinută de creşterea puterii de calcul a computerelor. Această lucrare prezintă un concept care va fi dezvoltat în urmatorii ani: OpenPh. OpenPh este o biblioteca de fizică numerică care foloseşte atât avantajele programelor open source cât şi avantajele lucrului cu MATLAB. Scopul ei este de a aduce instrumente pentru găsirea soluţiilor numerice şi grafice pentru diferite probleme ale fizicii. OpenPh are o structură modulară permiţând utilizatorului să adauge noi module celor existente şi să îşi creeze propriile module în conformitate cu nevoile sale, putând fi în acest fel extinsă oricât. Modulele OpenPh sunt implementate folosind motorul MATLAB deoarece acesta este cea mai buna soluţie folosită în inginerie şi ştiinţă, oferind o gama largă de metode optimizate pentru a îndeplini chiar si cele mai dificile sarcini. Numerical physics has gained a lot of importance in the last decade, its efficiency being motivated and sustained by the growth of computational power. This paper presents a concept that is to be developed in the next few years: OpenPh. OpenPh is a numerical physics library that makes use of the advantages of both open source software and MATLAB programming. Its aim is to deliver the instruments for providing numerical and graphical solutions for various physics problems. It has a modular structure, allowing the user to add new modules to the existing ones and to create its own modules according to its needs, being virtually unlimited extendable. The modules of OpenPh are implemented using MATLAB engine because it is the best solution used in engineering and science, providing a wide range of optimized methods to accomplish even the toughest jobs. Keywords: numerical physics, MATLAB, quantum physics, classical mechanics, module, photoelectric effect, Schrödinger equation, vibration of a string Introduction Numerical physics has gained a lot of importance in the last decade, its efficiency being motivated and sustained by the growth of computational power. The use of numerical physics libraries eases the understanding of various phenomena and the solving different types of problems. This is the reason why more and more numerical physics libraries come to life, each of them bringing * Student, student, Engineer, Automatic Control and Computers Faculty, University Politehnica of Bucharest, ROMANIA

74 G. Milescu, G. Noaje, Fl. Pop different particularities. The advantage of OpenPh among other libraries it the fact that it makes use of the advantages open source software, allowing each user to bring its contribution to the development of the library. This concept, combined with its modular structure and the use of Matlab engine, differentiate OpenPh from other libraries. Matlab environment is relatively new and therefore physics libraries are not too common. Lots of physics libraries are developed in old programming languages like Fortran or even Basic. On the Internet there are some libraries, but almost all of them treat optics ( Plasma Physics Library www.pppl.gov/library/july00.html, Abos Physics library bibsrv.physik.rwthaachen.de/abos.html). OpenPh library offers very useful routines for other fields of physics. The foundation for this physics library is the well-know computational engine Matlab. Why Matlab? Because it is the award-winning solution used in engineering and science providing a wide range of means to accomplish even the toughest jobs. It modularity and facile expansion allows every user to develop its own modules and application to fulfill its needs. We have chosen Matlab because, in many applications, we need to find the derivate or integral of a function. There is not always an analytical form for the integral and in fact the function itself may not be exactly known. In these cases the derivative or integral can only be determined numerically. Although many sophisticated techniques exist, we can also easily use the array manipulation tools in Matlab to make the calculations with a reasonable precision. The programming techniques used in Matlab reflect its scripting language power. The symbolic tools, plotting options and capability to reduce execution time by vector compute are used to approach the physics problems. OpenPh library was started like a modular library. The user can use the functions provided by OpenPh to write other functions. The simulation of a simple experiment (like photoelectrical effect or Carbon disintegration) is easy to build with our functions. The library presented is far from being complete, but due to its modularity and scalability it allows virtually unlimited extension. Currently it includes functions for solving problems from two different domains of the physics: mechanics and quantum physics. In addition, it includes some general functions basically oriented on mathematics. These functions can be used by any of the specialized modules in order to simplify calculations or as stand-alone modules. The two modules currently available in the library deliver the following specific functions: Classical Mechanics: uniform circular motion, forced damped harmonic oscillations, simple harmonic oscillator (pendulum), vibration of a fixed-fixed string

OpenPh Numerical physics library 75 Quantum physics: photoelectric effect, simulated radioactive decay of carbon-11, Schrödinger equation - particle in a box Classical mechanics Classical mechanics is one of the two major sub-fields of study in the mechanics, which is concerned with the motions of bodies, and the forces that cause them. The library offers tools to analyze and calculate some common problems in classical mechanics. 1. Uniform circular motion Circular motion is movement with constant speed around a circle (figure 1). A function for circular motion was included in the library in order to represent an intuitive path. (Fig. 2) Fig. 1 Circular motion path Fig. 2 Uniform circular motion simulation 2. Forced damped harmonic oscillations Derived from the general equation of the forced damped harmonic oscillator, simpler oscillators exist. The library offers a set of powerful functions allowing the simulation and calculating different elements of an oscillator such as amplitude, angular frequency and acceleration. Each of these elements can be graphically represented. Fig. 3 shows such an example. Furthermore, there are used two different ways of computing the elements of the oscillator, that s why a special function has been implemented to make four plots comparing the small amplitude solution with the numerical solution. (Fig. 5). If we analyze the results, we can observe that for small amplitudes (such as 0.5 or 1 units) the two solutions dovetail. If the amplitude increases (2 or 4 units) then

76 G. Milescu, G. Noaje, Fl. Pop the small amplitude solution performs an error that can no longer be neglected, while the numerical keeps being exact. Fig. 3 Amplitude, angular frequency, Acceleration of an oscillator Fig. 4 Comparison graphs 3. Vibration of a fixed-fixed string When the end of a string is fixed, the displacement of the string at that end must be zero. A transverse wave traveling along the string towards a fixed end will be reflected in the opposite direction. When a string is fixed at both ends, two waves traveling in opposite directions simply bounce back and forth between the ends. A string which is fixed at both ends will exhibit strong vibrational response only at the resonance frequencies. At any other frequencies, the string will not vibrate with any significant amplitude. The resonance frequencies of the fixed-fixed string are harmonics (integer multiples) of the fundamental frequency (n=1). Fig. 5 - Standing wave in stationary medium (the red dots represent the wave nodes) This equation represents a standing wave. There will be locations on the string which undergo maximum displacement (antinodes) and locations which to not move at all (nodes). In fact, the string may be touched at a node without altering the string vibration. (Fig. 5)

OpenPh Numerical physics library 77 The library has a function that shows the motion of such string in a very realistic manner. (Fig. 6) as: Fig. 6 String vibration simulation Beside the specialized modules there are also some generic functions such function that generates Fahrenheit-Celsius conversion table function that generates comparison table between factorial and Stirling approximation Quantum physics Quantum mechanics is a fundamental physical theory which extends and corrects Newtonian mechanics, especially at the atomic and subatomic levels. The library offers tools to analyze and calculate some common problems in quantum theory. 1. Photoelectric effect In order to present the photoelectric effect the circuit in figure 7 is realized. The library function calculates the voltage when no current is passing through the multimeter.

78 G. Milescu, G. Noaje, Fl. Pop Fig. 7 Experiment for the photoelectric effect 2. Simulated radioactive decay of carbon-11 Radioactive decay is the set of various processes by which unstable atomic nuclei (nuclides) emit subatomic particles. The decay of an unstable nucleus (radionuclide) is entirely random and it is impossible to predict when a particular atom will decay. However, it is equally likely to decay at any time. Therefore, given a sample of a particular radioisotope, the number of decay events expected to occur in a small interval of time dt is proportional to the number of atoms present. Particular radionuclides decay at different rates, each having its own decay constant (λ). The solution to this equation satisfies the following decay law: N(t) = N 0 e -λt. [1] This function is only an approximate solution, for two reasons. Firstly, the exponential function is continuous, but the physical quantity N can only take positive integer values. Secondly, because it describes a random process, it is only statistically true. However, in most common cases, N is a very large number and the function is a good approximation. [1] The library function tries to express this approximation presenting the theoretical function and the randomly generated number of decayed nuclei for Carbon 11 atom. (Fig. 8, 9)

OpenPh Numerical physics library 79 Fig. 8 Radioactive decay of carbon-11 (scheme) Fig. 9 - Simulated radioactive decay of carbon-11 3. Schrödinger equation free particle in a box In physics, the particle in a box (or the square well) is a simple idealized system that can be completely solved within quantum mechanics. It is the situation of a particle confined within a finite region of space (the box) by an infinite potential that exists at the walls of the box. The particle experiences no forces while inside the box, but is constrained by the walls to remain in the box. The quantum behavior in the box includes: energy quantization (it is not possible for the particle to have any arbitrary definite energy; only discrete definite energy levels are allowed), zero-point energy (the lowest possible energy level of the particle, called the zero-point energy, is nonzero), states (the Schrödinger equation predicts that for some energy levels there are positions at which the particle can never be found). Fig. 10 Particle in a box with infinite walls

80 G. Milescu, G. Noaje, Fl. Pop Analytical solutions of the time-independent Schrödinger equation can be obtained for a variety of relatively simple conditions. One of these simple conditions is the particle in a 1-dimensional box. (figure 10). The library function gives the solution to the equation for four different types of boxes (square well, double well, parabolic, free-hand: the box can be defined by the user). (Fig. 11) Fig. 11 - Particle in a 1-dimensional box Conclusions The idea of a numerical physics library is not new. It has been implemented in various libraries in the past few years. What OpenPh brings extra are its modularity and the benefits of open source software. The modules of OpenPh are created in such a manner that allows them to be connected, creating a new module by using a combination of existing modules. If one of the users creates an application that can be integrated in OpenPh, this application could be used to improve or create new modules.

OpenPh Numerical physics library 81 The current state of the library offers a wide range of tools for solving different types of problems. It has a user-friendly interface and it is extremely easy to use. Relying on the powerful Matlab engine, functions can work with large sets of data, having practical applications. Graphical representations of the theoretical models offer a better perspective over the simulated phenomena. Graphics are much more intuitive elements for analysis than the formulas or numbers. OpenPh is to be continued in the years to come. The community that is already created is maybe the biggest advantage of this library: that it is continuously evolving, new modules being created and the existing ones being improved. Anyone can be a member of the community, making use of software written by others and sharing its own results. R E F E R E N C E S 1. Richard P. Feynman, Robert B. Leighton, Matthew Sands Lectures on Physics (complete and definitive issue), Pearson, Addison-Wesley, 2nd edition, 2005 2. David Halliday, Robert Resnick, Jearl Walker Fundamentals of Physics, Wiley, 2004 3. Dan Iordache Numerical Physics (in Romanian), vol.1, Man-Dely Printing House, Bucharest, 2004 4. I. M. Popescu Physics, vol.1 (in Romanian), Didactic and pedagogical printing house, Bucureşti, 1981 5. Won Young Yang, Wenwu Cao, Tae-Sang Chung, John Morris Applied Numerical Methods Using MATLAB, John Wiley & Sons, New Jersey, 2005 6. Patrick Marchand, O. Thomas Holland, Graphics and GUIs with MATLAB (Third Edition), Chapman & Hall/CRC, 2002 7. H. B. Wilson, Louis H. Turcotte, David Halpern, Advanced Mathematics and Mechanics Applications Using MATLAB (Third Edition), Chapman & Hall/CRC, 2003 8. MATLAB web page: http://www.mathworks.com

82 G. Milescu, G. Noaje, Fl. Pop