MATHEMATICA – Computer Simulation R.C. Verma Physics Department Punjabi University Patiala – 147 002 PART IX- Computer Simulation Mechanics.

Slides:



Advertisements
Similar presentations
An Introduction to Programming General Concepts. What is a program? A program is an algorithm expressed in a programming language. programming language.
Advertisements

MATHEMATICAL MODELING Principles. Why Modeling? Fundamental and quantitative way to understand and analyze complex systems and phenomena Complement to.
Intro to modeling April Part of the course: Introduction to biological modeling 1.Intro to modeling 2.Intro to biological modeling (Floor) 3.Modeling.
MATHEMATICA – Computer Simulation R.C. Verma Physics Department Punjabi University Patiala – PART IX- Computer Simulation RC - Circuit LR-Circuit.
INTRODUCTION TO MODELING
Experimental Design, Response Surface Analysis, and Optimization
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Review Resources: Wiki: State Variables YMZ: State Variable Technique Wiki: Controllability.
Process simulation, optimisation and design. P.S.O.D. ORGANIZATION ISSUES.
ECIV 301 Programming & Graphics Numerical Methods for Engineers.
Lecture 2: Numerical Differentiation. Derivative as a gradient
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 4 Programming and Software EXCEL and MathCAD.
1 ) Definition 2) Note on structured and modular programming, and information hiding 3) Example imperative languages 4) Features of imperative languages.
Discrete Event Simulation How to generate RV according to a specified distribution? geometric Poisson etc. Example of a DEVS: repair problem.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 2 Mathematical Modeling and Engineering Problem Solving.
The Islamic University of Gaza Faculty of Engineering Numerical Analysis ECIV 3306 Introduction.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 3 Programming and Software.
Chapter 1 Program Design
SIMULATION. Simulation Definition of Simulation Simulation Methodology Proposing a New Experiment Considerations When Using Computer Models Types of Simulations.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Mathematical Modeling and Engineering Problem solving.
Modeling and Simulation
MapleSim and the Advantages of Physical Modeling
LIGO-G D 1 25-May-02 Advanced LIGO Suspension Model in Mathematica Gravitational Wave Advanced Detector Workshop Elba - May 2002 Mark Barton.
Chapter 5 Engineering Tools for Electrical and Computer Engineers.
Room 2032 China Canada Winnipeg Manitoba.
Learning Objective III: Diverse Learners Teacher candidates and candidates for other professional school personnel roles exhibit knowledge, competence,
MMJ 1113 Computational Methods for Engineers Mohsin Mohd Sies Fakulti Kejuruteraan Mekanikal, Universiti Teknologi Malaysia.
Physics 2215: Analysis of Oscillating Systems Purpose Use the “Improved Euler Method” – you learned this method of solving problems numerically in the.
Chapter 1 Computing Tools Analytic and Algorithmic Solutions Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Start. Next Mathematica is a general computer software system and language intended for mathematical and other applications. Mathematica is a general.
Bill Walster June 15, 2006 Computing with Intervals Recent Developments.
Computational Physics Introduction 3/30/11. Goals  Calculate solutions to physics problems  All physics problems can be formulated mathematically. 
Math 231: Differential Equations Set 1: Basic Ideas Notes abridged from the Power Point Notes of Dr. Richard Rubin.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 2.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Convolution Definition Graphical Convolution Examples Properties.
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2010.
Science Teaching & Instructional Technology By: Asma, Melissa & Susan.
Applied Numerical Method for Engineers and Scientists
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
Lecture 2 Numerical Methods for Engineering MECN 3500 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus Dr.
Solution of a Partial Differential Equations using the Method of Lines
Chapter 1 Computing Tools Analytic and Algorithmic Solutions Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. 1.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 12.
Digital Intuition Cluster, Smart Geometry 2013, Stylianos Dritsas, Mirco Becker, David Kosdruy, Juan Subercaseaux Welcome Notes Overview 1. Perspective.
Motivation Thus far we have dealt primarily with the input/output characteristics of linear systems. State variable, or state space, representations describe.
Introduction to MATLAB 7 MATLAB Programming for Engineer Hassan Migdadi Spring 2013.
EGR 115 Introduction to Computing for Engineers Introduction to Computer Programming Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers.
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2012.
THE IMPORTANCE OF DISCRETE MATHEMATICS IN COMPUTER TECHNOLOGY.
Lecture 6: Time Response 1.Time response determination Review of differential equation approach Introduce transfer function approach 2.MATLAB commands.
Technology, Digital Media, and Curriculum Integration
Linear Constant-Coefficient Difference Equations
Dr. Wang Xingbo QQ: Homepage: wxbstudio.home4u.china.com Fall , 2005 Mathematical & Mechanical Method in Mechanical.
 Computers are classified according to  Purpose  Data hiding  Functionality  Size.
Introduction to Modeling Technology Enhanced Inquiry Based Science Education.
Modelling & Simulation of Semiconductor Devices Lecture 1 & 2 Introduction to Modelling & Simulation.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
Solving Engineering Problems
SKMM1013 Programming for Engineers
Linear Constant-Coefficient Difference Equations
SIMULATION SIMULAND PURPOSE TECHNIQUE CREDIBILITY PROGRAMMATICS
Objectives of the Presentation
An Introduction to Programming
Mechanical Engineering at Virginia Tech
Teaching with Instructional Software
Advanced Macroeconomics:
Solving Engineering Problems
Engineering Tools for Electrical and Computer Engineers
An Introduction to Programming
Presentation transcript:

MATHEMATICA – Computer Simulation R.C. Verma Physics Department Punjabi University Patiala – PART IX- Computer Simulation Mechanics

Traditionally physics teaching comprises of theory lectures based on analytical techniques and conventional laboratory experiments. Despite the importance of computational physics, it has been largely neglected in the conventional physics curricula. Now with the availability of personal computers, it has become possible to introduce this important branch in the physics curricula. INTRODUCTION

PC offers new opportunities for innovative learning. It provides highly interactive, individual and creative learning. It can help to approach wide variety of problems and phenomena than is possible with only analytic tools. It can also be used to develop physical intuition and ability to estimate physical quantities involved in a phenomena. NMEICT (MHRD, Govt. of India)- Rs. 4,612 crores Mission What PC can do?

Questions For practical purposes of PC into physics we need to answer:- 1.How to use PC to improve physics teaching? 2.What other changes will come after we introduce PC to the physics curricula? 3.Could advances of research into physics learning be incorporated into new Curricula? 4. Can the new curricula reflect contemporary physics?

OBJECTIVES OF PHYSICS TEACHING i) Number awareness ii) Experimental skills iii) Analytic skills iv) Scales and estimations v) Approximations skills vi) Numerical skills vii) Intuition & large problem skills

Applications of Computer for Physics? Problem Solving Demonstrations and Tutorials (CAI) Data analysis using Spreadsheets Simulation of Physics Problems Graphics and Animation Magnification of Instruction

Problem Solving: PC can be used easily and interactively through a variety of high-level languages, They offer numerical power sufficient for even initiating research-level problems. Many numerical programming languages are already with us: BASIC, FORTRAN, and C Recently, Symbolic Computational languages: Mathematica, MatLab, MathCad, Macsyma capable of dealing with algebra, differential and integral calculus, and powerful graphics tools. This obviously enhances the scope of physics problems to be handled on a PC.

Simulation of Physics Problems: The corner stone of computing is building a model of an idea through simulation. It can deliver real time sequence on the screen. We can simulate real world phenomena that are prevented from studying in the laboratory due to constraints of time, expense, danger and feasibility. E.g.Planetary Motion, Nuclear Reactor, Interior of Sun We can try models that don't occur in real world to see what the implication would be. E.g. What would happen if we change the gravitational force law a little?

Present Status in Physics Curricula Computational physics has largely been neglected in the standard physics curricula. Main factors : 1. Lack of computing hardware 2. Lack of teaching-material besides 3. Lack of trained human resource. Situation is slowly improving.

COMPUTER SIMULATION OF PROBLEMS (Methodology) Physics → Algorithm → Program → Results Computer Hardware and Software Numerical analysis Development of algorithms for problems Developments of programs for simulation Results and Error analysis.

Steps to solving Physics Problem Identify the input variables:- like parameters of a physical system initial conditions of the`system and time interval step size of time evolution. Identify the output variables:- solution of the problem. Construct the equations to connect the input variables to the output variables. Re-express the equations using numerical techniques. Write algorithm/flowchart to solve the problem. Develop Programs (I/O, common arithmetic operations and logical structures: Sequential, Repetitive and Selective). Execute the program on a computer.

Performing Computer Experiments Run computer experiments to study effects of: change of step size used in discretization of continuous independent variable; change of initial conditions of the physical system; change of physical parameters of the system. changes due to errors, stability and limitations of the numerical tools.

One Dimensional Motion A spherical body falling in viscous medium

Damped Oscillator Equation of motion is

Clear["Global`*"] (* Find Analytic solution *) k = 3.0;(* spring constant *) m = 1.0;(* mass attached to the spring *) w0 = Sqrt[k/m]; c = 0.5; damp = c/m; x0=1.0; v0 = 1.0;(* initial conditions *) tmin = 0;tmax = 5; ndsol=DSolve[ {x''[t]+damp*x'[t]+w0^2 x[t]==0, x[0]==x0, x'[0]==v0}, x[t], t]//Chop//Flatten

(* Plot the solution for a given time interval *) p1= Plot[ x[t]/.ndsol, {t,tmin, tmax}, AxesLabel->{"t->", "x"}, PlotLabel->"Harmonic Motion"]

v[t_]= D[x[t]/.ndsol, t] p2 =Plot[ v[t], {t,tmin, tmax}, AxesLabel->{"t->", "v"}, PlotLabel->"velocity", PlotStyle-> Dashing[{0.02} ]]

a[t_]= D[v[t], t] p3=Plot[ a[t], {t,tmin, tmax}, AxesLabel->{"t->", "a"}, PlotLabel->"acceleration", PlotStyle-> Dashing[{0.05} ]]

Show[p1, p2, p3]

ParametricPlot[ {x[t]/.ndsol, v[t]}, {t,tmin, tmax}, AxesLabel->{"x", "v"}, PlotLabel->"phase_space_trajectory"]

Thank you!