SlideShare une entreprise Scribd logo
1  sur  29
Télécharger pour lire hors ligne
Tools & Resources forTeaching
Undergraduate Computational
Physics
Amde A, Dept. of Physics, University of Gondar, P.O. Box 196,
Ethiopia, mdselassie@gmail.com
“Computers are incredibly fast, accurate, and stupid; humans are incredibly
slow, inaccurate, and brilliant; together they are powerful beyond imagination”.
- Albert Einstein
“Computational scientists solve tomorrow’s problems with yesterday’s
computers; computer scientists seem to do it the other way round”.
- (Unknown)
What is Computational Physics?
 A multidisciplinary subject that uses computing approach to
gain understanding in complex systems, like QCD,
electronic structure, molecular dynamics, nuclear fusion,
climate dynamics, relativistic astrophysics.
 Provides the capability to study and gain novel insights into
physical systems, especially for those where no analytical
solutions can be found or an experimental study is too
complicated or expensive.
 An essential and integral part of contemporary sciences,
and has become as important as theory and experiment.
Computational Physics is multidisciplinary.
It combines disciplines like Computer Science and
Mathematics with Physics (Landau)
Computation is as important as theory & experiment
Use of computation and simulation has now become an
essential and integral part of contemporary basic and
applied sciences (Landau)
Some Uses of Computers in Physics (Gould)
I. Numerical analysis
II. Symbolic manipulation
III. Visualization
IV. Simulation
V. Data acquisition & analysis
VI. Technology Enabled Learning
I. Numerical Analysis - Creates, analyzes, & implements algorithms
for solving numerically the problems of continuous math.
 Used to compute multidimensional integral & differential
equations, manipulate large matrices, or solve linear & nonlinear
differential equations
 Some software: MATLAB, LabVIEW, GNU Octave & SciLab
II. Symbolic Manipulation
 Used to manipulate differentiation, integration, matrix
inversion, power series expansion, …
 Some software: Mathematica, Maple, Maxima & SAGE
III. Visual Representation (Gould)
◦ The Eye +Visual Processing Capacity of the Brain
◦ Patterns & trends that might not be evident from tables of data
can be determined. Example: Run Sfileosp_qm_twostate.jar
◦ Changes be observed & can lead to insight into the important
mechanisms underlying a system’s behavior
IV. Technology Enabled Learning
 developed by integrating education research results with
technology tools
 transform learning from teacher-centered to student-centered
 requires new physical and cognitive architecture
Some Examples
1. Lecture Based Model - Just inTimeTeaching, Peer Instruction,
Interactive Lecture Demonstrations, …
2. TEAL (Technology Enabled Active Learning),
http://icampus.mit.edu/projects/teal/
3. SCALEUP (Student Centered Active Learning
Environment with Upside down Pedagogy)
http://scaleup.ncsu.edu/
4. Laboratory:
a. Remote Controlled Lab, i-Lab
real experimental facilities/setups that can be controlled
remotely over the internet.
Examples:
◦ robotic telescopes, rcl (http://rcl.physik.uni-kl.de/),
◦ i-labs (http://icampus.mit.edu/iLabs/default.aspx)
b. Virtual Lab
interactive pc-based activity where students conduct or create
simulated experiments.Virtual instruments & apparatus that
simulate the functions & characteristics of real ones are used.
Examples:
◦ Run: Sfileub_optics.jar
◦ PhET Interactive Simulation: https://phet.colorado.edu/
Example:
Run: Sfilenve_damping.ms9
5. Data Acquisition & Analysis
◦ Computer based measurement that requires interfacing the
computer with various instrumentations & sensors
◦ Involves real-time control & interactive data analysis
◦ You need: computer hardware, software, sensors, interfaces
Example:
◦ Software: LabVIEW
o Sensors & Interfaces/DAQ Boards
Example: Determination of Coefficient of Linear Expansion
The Importance of Computer Simulation
Simulation – implementing a model on a computer (to understand
its behavior & predictions)
Frequently uses computational tools of numerical analysis &
visualization.
Why is computation becoming so important in physics?
1. Explore nonlinear phenomena. Many natural phenomena
are nonlinear & most are difficult to solve by analytical
methods. Example: Download & Run Sfileejs_sip_ch06.jar
2. Investigate systems with many variables or with many
degrees of freedom
3. Investigate systems whose experimental studies are too
complicated & expensive.
Language & Content Selection Dilemma
Though undergraduate computational physics (UCP) is now
becoming an integral part of the physics curriculum, there is
no still standardization in the contents & programming
language used to teach the course.
 Content Options?
◦ Linear Systems,
◦ Non-linear, Chaotic & Multi-variable Systems, or
◦ Both (Linear & Non-linear)
 Language Options?
◦ Symbolic or Numeric Computing Environment (MATLAB,
Octave, Mathematica, Maple …)
◦ Non-Specific Pseudo-code (Giordano), or
◦ General Purpose (FORTRAN, C/C++, Java, Python …)
… Language & Content
The decision of what contents & languages to use to teach
UCP is not an easy one, but depends mostly on:
◦ Objectives of the UCP Course and time allotted for it,
◦ Computing skills & experience of both Instructors and
Students,
◦ Availability & cost of Computational Resources and
Facilities,
◦ Numerical performance, ease of use, good graphical
interfaces, & Web-based & database driven applications
of Language/Computing Environment.
… Language & Content
At University of Gondar we chose following contents &
language to teach UCP & have been using it since 2005:
◦ Both (Linear & Non-linear Systems) for Content, &
◦ Java for Language
◦ Currently, we are considering using Java with Python.
Why Linear & Nonlinear Contents?
◦ The course focuses on studying & developing simulation
for nonlinear & many variable systems, but
◦ Linear systems are used for introducing the basics of the
Language & Numerical Methods
… Language & Content
 Why Java?
◦ Platform independent; (API, neutral byte code, JVM)
◦ Flexible standard graphics libraries & good performance
◦ Web-based & server-based applets
◦ Free and relatively simple to learn
◦ Supported by OSP (OpenSourcePhysics), extensive library of
open-source Java routines for computational work
(www.compadre.org/OSP/ ).
Disadvantage:
◦ Despite the high level of abstraction and platform
independence, the speed & performance of Java is not
comparable with C++ or Fortran.
◦ It is not supported by numerical libraries.
Installation
Download the JDK Installer (from www.java.com or
www.oracle.com/technetwork/java/javase/downloads/index.html)
JDK on Windows:
 Run the JDK Installer & follow the instructions. (JDK should
be installed in the directory C: )
 Add the jdk/bin directory into the execution path
JDK on Linux (for root users):
 Uncompress the binary file (for 64-bit & update 60):
tar zxvf jdk-8u60-linux-x64.tar.gz
 Move the JDK directory to /usr/lib
sudo mkdir -p /usr/lib/jvm
sudo mv /jdk1.8.60 /usr/lib/jvm/
… Installation
JDK on Linux:
 Now enable Java
sudo update-alternatives --install "/usr/bin/java" "java"
"/usr/lib/jvm/jdk1.8.0_60/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac"
"/usr/lib/jvm/jdk1.8.0_60/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws"
"/usr/lib/jvm/jdk1.8.0_60/bin/javaws" 1
 Change the file ownership & permissions of the
executables; use the chmod a+x command.
Configure Project/Development Environment
(Based on OpenSourcePhysics & An Introduction to Computer Simulation
Methods, 3ed, by Gould &Tobochinik)
Windows:
 Create a Project Directory (e.g.“C:cp_projects”)
 Download the OpenSourcePhysics Eclipse Workspace (from
www.compadre.org/OSP/ ) and unpack the source code for the
OSP core library (src.zip) in to the Project Dir.
 Create a Dir. named classes under the Project Dir.:
C:cp_projectsclasses
 Create a Dir. named org under classes & a Dir. named
opensourcephysics under the org Dir.:
C:cp_projectsclassesorgopensourcephysics
 Copy the resource Dir. from …srcorgopensourcephysics to
…classesorgopensourcephysics
…Configure Project
Linux:
 Create a Project Dir. under the user’s Home Dir., unpack
the core library src.zip, & make directory named classes:
mkdir /cp_projects
unzip /cp_projects/src.zip
mkdir /cp_projects/classes
 Create a directory named org under classes & a directory
named opensourcephysics under the org Dir.:
mkdir /cp_projects/classes/org/opensourcephysics
 Copy the resource Dir. from …srcorgopensourcephysics to
…classesorgopensourcephysics
Edit
Windows:
 the source code can be edited using Notepad (++) &
 saved as “FileName”.java under Directory:
C:cp_projectsrc”package”
Linux:
 the source code can be edited using text editor gedit &
 saved as “FileName”.java under Directory:
home/”user”/cp_project/src/”package”
… Edit (Example using Notepad ++) (Gould)
Compile
Windows:
 Open Command Prompt (C:_)
 Change Directory to Project Directory (C:cp_project)
 Compile:
javac –d classes/ -sourcepath src/ src/”package”/”FileName”.java
Linux:
 Open theTerminal
 Change Directory to Project Directory
cd cp_project
 Compile:
javac -d classes/ -sourcepath src/ src/”package”/”FileName”.java
… Compile (Example)
Run
Windows:
 Open Command Prompt (C:_)
 Change Directory to Project Directory (C:cp_project)
 Run:
java -classpath classes/ “package name”/”FileName”
Linux:
 Open theTerminal
 Change Directory to Project Directory
cd cp_project
 Run:
java -classpath classes/ “package name”/”FileName”
… Run (Example & Results) (Gould)
References & Resources
1. Landau, A First Course in Scientific Computing. Princeton Univ. Press, 2005.
2. Gould &Tobochnik, An Introduction to Computer Simulation Methods, 3ed.
Addison-Wesley 2006.
3. OpenSourcePhysics, www.compadre.org/OSP/
4. Giordano & Nakanishi, Computational Physics, 2ed. Prentice Hall 2005.
5. Cook, Computation and Problem Solving in Undergraduate Physics.
http://www.lawrence.edu/dept/physics/ccli
6. Yevick, A First Course in Computational Physics & Object-Oriented
Programming with C++. Cambridge Univ. Press, 2005.
7. Hjorth-Jensen, Computational Physics Lecture Notes, Univ. of Oslo, 2012
8. Thijssen, Computational Physics, Cambridge Univ. Press, 1999
9. Gershenfeld, The Nature of Mathematical Modeling. Cambridge Univ. P, 1999
10. Landau, Computational Physics: A Better Model for Physics Education?
Computing in Science & Engineering, 2006

Contenu connexe

Tendances

Quantum Mechanics Presentation
Quantum Mechanics PresentationQuantum Mechanics Presentation
Quantum Mechanics PresentationJasmine Wang
 
Quantum electrodynamics(qed)
Quantum  electrodynamics(qed)Quantum  electrodynamics(qed)
Quantum electrodynamics(qed)Sujith Somraaj
 
Quantum Theory of Spin and Anomalous Hall effects in Graphene
Quantum Theory of Spin and Anomalous Hall effects in Graphene Quantum Theory of Spin and Anomalous Hall effects in Graphene
Quantum Theory of Spin and Anomalous Hall effects in Graphene Mirco Milletari'
 
Quantum Physics
Quantum PhysicsQuantum Physics
Quantum PhysicsStudent
 
To the point particle physics
To the point particle physicsTo the point particle physics
To the point particle physicsShahzada Khan
 
DENSITY OF ENERGY STATES
DENSITY OF ENERGY STATESDENSITY OF ENERGY STATES
DENSITY OF ENERGY STATESSathees Physics
 
Plasma physics by Dr. imran aziz
Plasma physics by Dr. imran azizPlasma physics by Dr. imran aziz
Plasma physics by Dr. imran azizDr.imran aziz
 
Tips and Tricks to Clear - CSIR-UGC NET- Physical Sciences
Tips and Tricks to Clear - CSIR-UGC NET- Physical SciencesTips and Tricks to Clear - CSIR-UGC NET- Physical Sciences
Tips and Tricks to Clear - CSIR-UGC NET- Physical SciencesMeenakshisundaram N
 
Michelson morley experiment
Michelson morley experimentMichelson morley experiment
Michelson morley experimentAbhisheksinha333
 

Tendances (20)

Dark matter
Dark matterDark matter
Dark matter
 
Quantum Mechanics Presentation
Quantum Mechanics PresentationQuantum Mechanics Presentation
Quantum Mechanics Presentation
 
Scope of physics
Scope of physicsScope of physics
Scope of physics
 
Dark matter
Dark matterDark matter
Dark matter
 
Part III - Quantum Mechanics
Part III - Quantum MechanicsPart III - Quantum Mechanics
Part III - Quantum Mechanics
 
Quantum electrodynamics(qed)
Quantum  electrodynamics(qed)Quantum  electrodynamics(qed)
Quantum electrodynamics(qed)
 
Quantum Theory of Spin and Anomalous Hall effects in Graphene
Quantum Theory of Spin and Anomalous Hall effects in Graphene Quantum Theory of Spin and Anomalous Hall effects in Graphene
Quantum Theory of Spin and Anomalous Hall effects in Graphene
 
Nuclear chain reaction
Nuclear chain reactionNuclear chain reaction
Nuclear chain reaction
 
Quantum Physics
Quantum PhysicsQuantum Physics
Quantum Physics
 
Tight binding
Tight bindingTight binding
Tight binding
 
To the point particle physics
To the point particle physicsTo the point particle physics
To the point particle physics
 
DENSITY OF ENERGY STATES
DENSITY OF ENERGY STATESDENSITY OF ENERGY STATES
DENSITY OF ENERGY STATES
 
Plasma physics by Dr. imran aziz
Plasma physics by Dr. imran azizPlasma physics by Dr. imran aziz
Plasma physics by Dr. imran aziz
 
Metamaterials
MetamaterialsMetamaterials
Metamaterials
 
Tips and Tricks to Clear - CSIR-UGC NET- Physical Sciences
Tips and Tricks to Clear - CSIR-UGC NET- Physical SciencesTips and Tricks to Clear - CSIR-UGC NET- Physical Sciences
Tips and Tricks to Clear - CSIR-UGC NET- Physical Sciences
 
Michelson morley experiment
Michelson morley experimentMichelson morley experiment
Michelson morley experiment
 
Superconductivity
SuperconductivitySuperconductivity
Superconductivity
 
Blochtheorem
BlochtheoremBlochtheorem
Blochtheorem
 
Quinck's method
Quinck's methodQuinck's method
Quinck's method
 
Angularmomentum
AngularmomentumAngularmomentum
Angularmomentum
 

Similaire à Resources for Teaching Undergraduate Computational Physics

Teaching Computational Physics
Teaching Computational PhysicsTeaching Computational Physics
Teaching Computational PhysicsAmdeselassie Amde
 
Using Application Skeletons to Improve eScience Infrastructure
Using Application Skeletons to Improve eScience InfrastructureUsing Application Skeletons to Improve eScience Infrastructure
Using Application Skeletons to Improve eScience InfrastructureDaniel S. Katz
 
Software tools to facilitate materials science research
Software tools to facilitate materials science researchSoftware tools to facilitate materials science research
Software tools to facilitate materials science researchAnubhav Jain
 
Open-source tools for generating and analyzing large materials data sets
Open-source tools for generating and analyzing large materials data setsOpen-source tools for generating and analyzing large materials data sets
Open-source tools for generating and analyzing large materials data setsAnubhav Jain
 
Scientific
Scientific Scientific
Scientific marpierc
 
Software and Education at NSF/ACI
Software and Education at NSF/ACISoftware and Education at NSF/ACI
Software and Education at NSF/ACIDaniel S. Katz
 
IBM-TGMC e-learning resource locator_project report
IBM-TGMC e-learning resource locator_project reportIBM-TGMC e-learning resource locator_project report
IBM-TGMC e-learning resource locator_project reportVeeru Kallapur
 
2014-10-10-SBC361-Reproducible research
2014-10-10-SBC361-Reproducible research2014-10-10-SBC361-Reproducible research
2014-10-10-SBC361-Reproducible researchYannick Wurm
 
Using oer for cambodia
Using oer for cambodiaUsing oer for cambodia
Using oer for cambodiawon ho
 
Course-Plan-Object Oriented Concept (18CS45)1.pdf
Course-Plan-Object Oriented Concept (18CS45)1.pdfCourse-Plan-Object Oriented Concept (18CS45)1.pdf
Course-Plan-Object Oriented Concept (18CS45)1.pdfabhijit.tec
 
E learning resource Locator Project Report (J2EE)
E learning resource Locator Project Report (J2EE)E learning resource Locator Project Report (J2EE)
E learning resource Locator Project Report (J2EE)Chiranjeevi Adi
 
CS8461 Operating System Lab Manual S.Selvi
CS8461 Operating System Lab Manual S.SelviCS8461 Operating System Lab Manual S.Selvi
CS8461 Operating System Lab Manual S.SelviSELVI SIVAPERUMAL
 
building_private_cloud_with_oss_for_scientific_environments-libre
building_private_cloud_with_oss_for_scientific_environments-librebuilding_private_cloud_with_oss_for_scientific_environments-libre
building_private_cloud_with_oss_for_scientific_environments-libreVijayabalan Open to Explore
 
Resonance Introduction at SacPy
Resonance Introduction at SacPyResonance Introduction at SacPy
Resonance Introduction at SacPymoorepants
 
Software Mining and Software Datasets
Software Mining and Software DatasetsSoftware Mining and Software Datasets
Software Mining and Software DatasetsTao Xie
 
Fundamentals of data structures ellis horowitz & sartaj sahni
Fundamentals of data structures   ellis horowitz & sartaj sahniFundamentals of data structures   ellis horowitz & sartaj sahni
Fundamentals of data structures ellis horowitz & sartaj sahniHitesh Wagle
 
lecture-1-overview.pptx
lecture-1-overview.pptxlecture-1-overview.pptx
lecture-1-overview.pptxMweeneMweemba1
 

Similaire à Resources for Teaching Undergraduate Computational Physics (20)

Teaching Computational Physics
Teaching Computational PhysicsTeaching Computational Physics
Teaching Computational Physics
 
Using Application Skeletons to Improve eScience Infrastructure
Using Application Skeletons to Improve eScience InfrastructureUsing Application Skeletons to Improve eScience Infrastructure
Using Application Skeletons to Improve eScience Infrastructure
 
Software tools to facilitate materials science research
Software tools to facilitate materials science researchSoftware tools to facilitate materials science research
Software tools to facilitate materials science research
 
Open-source tools for generating and analyzing large materials data sets
Open-source tools for generating and analyzing large materials data setsOpen-source tools for generating and analyzing large materials data sets
Open-source tools for generating and analyzing large materials data sets
 
Scientific
Scientific Scientific
Scientific
 
Software and Education at NSF/ACI
Software and Education at NSF/ACISoftware and Education at NSF/ACI
Software and Education at NSF/ACI
 
IBM-TGMC e-learning resource locator_project report
IBM-TGMC e-learning resource locator_project reportIBM-TGMC e-learning resource locator_project report
IBM-TGMC e-learning resource locator_project report
 
2014-10-10-SBC361-Reproducible research
2014-10-10-SBC361-Reproducible research2014-10-10-SBC361-Reproducible research
2014-10-10-SBC361-Reproducible research
 
Programming paradigms
Programming paradigmsProgramming paradigms
Programming paradigms
 
Using oer for cambodia
Using oer for cambodiaUsing oer for cambodia
Using oer for cambodia
 
Course-Plan-Object Oriented Concept (18CS45)1.pdf
Course-Plan-Object Oriented Concept (18CS45)1.pdfCourse-Plan-Object Oriented Concept (18CS45)1.pdf
Course-Plan-Object Oriented Concept (18CS45)1.pdf
 
E learning resource Locator Project Report (J2EE)
E learning resource Locator Project Report (J2EE)E learning resource Locator Project Report (J2EE)
E learning resource Locator Project Report (J2EE)
 
CS8461 Operating System Lab Manual S.Selvi
CS8461 Operating System Lab Manual S.SelviCS8461 Operating System Lab Manual S.Selvi
CS8461 Operating System Lab Manual S.Selvi
 
Summary of 3DPAS
Summary of 3DPASSummary of 3DPAS
Summary of 3DPAS
 
building_private_cloud_with_oss_for_scientific_environments-libre
building_private_cloud_with_oss_for_scientific_environments-librebuilding_private_cloud_with_oss_for_scientific_environments-libre
building_private_cloud_with_oss_for_scientific_environments-libre
 
Resonance Introduction at SacPy
Resonance Introduction at SacPyResonance Introduction at SacPy
Resonance Introduction at SacPy
 
Software Mining and Software Datasets
Software Mining and Software DatasetsSoftware Mining and Software Datasets
Software Mining and Software Datasets
 
Fundamentals of data structures ellis horowitz & sartaj sahni
Fundamentals of data structures   ellis horowitz & sartaj sahniFundamentals of data structures   ellis horowitz & sartaj sahni
Fundamentals of data structures ellis horowitz & sartaj sahni
 
lecture-1-overview.pptx
lecture-1-overview.pptxlecture-1-overview.pptx
lecture-1-overview.pptx
 
Computer engineering university
Computer engineering university Computer engineering university
Computer engineering university
 

Dernier

REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...Universidade Federal de Sergipe - UFS
 
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In DubaiDubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubaikojalkojal131
 
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTXALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTXDole Philippines School
 
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...D. B. S. College Kanpur
 
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPirithiRaju
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologycaarthichand2003
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPirithiRaju
 
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 GenuineCall Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuinethapagita
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Carbon Dioxide Capture and Storage (CSS)
Carbon Dioxide Capture and Storage (CSS)Carbon Dioxide Capture and Storage (CSS)
Carbon Dioxide Capture and Storage (CSS)Tamer Koksalan, PhD
 
Citronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayCitronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayupadhyaymani499
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensorsonawaneprad
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)riyaescorts54
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxmalonesandreagweneth
 
Forensic limnology of diatoms by Sanjai.pptx
Forensic limnology of diatoms by Sanjai.pptxForensic limnology of diatoms by Sanjai.pptx
Forensic limnology of diatoms by Sanjai.pptxkumarsanjai28051
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.PraveenaKalaiselvan1
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 

Dernier (20)

REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
 
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In DubaiDubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
 
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTXALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
ALL ABOUT MIXTURES IN GRADE 7 CLASS PPTX
 
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
 
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technology
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
 
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 GenuineCall Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
 
Carbon Dioxide Capture and Storage (CSS)
Carbon Dioxide Capture and Storage (CSS)Carbon Dioxide Capture and Storage (CSS)
Carbon Dioxide Capture and Storage (CSS)
 
Citronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayCitronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyay
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensor
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
 
Forensic limnology of diatoms by Sanjai.pptx
Forensic limnology of diatoms by Sanjai.pptxForensic limnology of diatoms by Sanjai.pptx
Forensic limnology of diatoms by Sanjai.pptx
 
Volatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -IVolatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -I
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 

Resources for Teaching Undergraduate Computational Physics

  • 1. Tools & Resources forTeaching Undergraduate Computational Physics Amde A, Dept. of Physics, University of Gondar, P.O. Box 196, Ethiopia, mdselassie@gmail.com “Computers are incredibly fast, accurate, and stupid; humans are incredibly slow, inaccurate, and brilliant; together they are powerful beyond imagination”. - Albert Einstein “Computational scientists solve tomorrow’s problems with yesterday’s computers; computer scientists seem to do it the other way round”. - (Unknown)
  • 2. What is Computational Physics?  A multidisciplinary subject that uses computing approach to gain understanding in complex systems, like QCD, electronic structure, molecular dynamics, nuclear fusion, climate dynamics, relativistic astrophysics.  Provides the capability to study and gain novel insights into physical systems, especially for those where no analytical solutions can be found or an experimental study is too complicated or expensive.  An essential and integral part of contemporary sciences, and has become as important as theory and experiment.
  • 3. Computational Physics is multidisciplinary. It combines disciplines like Computer Science and Mathematics with Physics (Landau)
  • 4. Computation is as important as theory & experiment Use of computation and simulation has now become an essential and integral part of contemporary basic and applied sciences (Landau)
  • 5. Some Uses of Computers in Physics (Gould) I. Numerical analysis II. Symbolic manipulation III. Visualization IV. Simulation V. Data acquisition & analysis VI. Technology Enabled Learning
  • 6. I. Numerical Analysis - Creates, analyzes, & implements algorithms for solving numerically the problems of continuous math.  Used to compute multidimensional integral & differential equations, manipulate large matrices, or solve linear & nonlinear differential equations  Some software: MATLAB, LabVIEW, GNU Octave & SciLab II. Symbolic Manipulation  Used to manipulate differentiation, integration, matrix inversion, power series expansion, …  Some software: Mathematica, Maple, Maxima & SAGE
  • 7. III. Visual Representation (Gould) ◦ The Eye +Visual Processing Capacity of the Brain ◦ Patterns & trends that might not be evident from tables of data can be determined. Example: Run Sfileosp_qm_twostate.jar ◦ Changes be observed & can lead to insight into the important mechanisms underlying a system’s behavior
  • 8. IV. Technology Enabled Learning  developed by integrating education research results with technology tools  transform learning from teacher-centered to student-centered  requires new physical and cognitive architecture Some Examples 1. Lecture Based Model - Just inTimeTeaching, Peer Instruction, Interactive Lecture Demonstrations, … 2. TEAL (Technology Enabled Active Learning), http://icampus.mit.edu/projects/teal/ 3. SCALEUP (Student Centered Active Learning Environment with Upside down Pedagogy) http://scaleup.ncsu.edu/
  • 9. 4. Laboratory: a. Remote Controlled Lab, i-Lab real experimental facilities/setups that can be controlled remotely over the internet. Examples: ◦ robotic telescopes, rcl (http://rcl.physik.uni-kl.de/), ◦ i-labs (http://icampus.mit.edu/iLabs/default.aspx) b. Virtual Lab interactive pc-based activity where students conduct or create simulated experiments.Virtual instruments & apparatus that simulate the functions & characteristics of real ones are used. Examples: ◦ Run: Sfileub_optics.jar ◦ PhET Interactive Simulation: https://phet.colorado.edu/
  • 11. 5. Data Acquisition & Analysis ◦ Computer based measurement that requires interfacing the computer with various instrumentations & sensors ◦ Involves real-time control & interactive data analysis ◦ You need: computer hardware, software, sensors, interfaces Example: ◦ Software: LabVIEW
  • 12. o Sensors & Interfaces/DAQ Boards Example: Determination of Coefficient of Linear Expansion
  • 13. The Importance of Computer Simulation Simulation – implementing a model on a computer (to understand its behavior & predictions) Frequently uses computational tools of numerical analysis & visualization.
  • 14. Why is computation becoming so important in physics? 1. Explore nonlinear phenomena. Many natural phenomena are nonlinear & most are difficult to solve by analytical methods. Example: Download & Run Sfileejs_sip_ch06.jar 2. Investigate systems with many variables or with many degrees of freedom 3. Investigate systems whose experimental studies are too complicated & expensive.
  • 15. Language & Content Selection Dilemma Though undergraduate computational physics (UCP) is now becoming an integral part of the physics curriculum, there is no still standardization in the contents & programming language used to teach the course.  Content Options? ◦ Linear Systems, ◦ Non-linear, Chaotic & Multi-variable Systems, or ◦ Both (Linear & Non-linear)  Language Options? ◦ Symbolic or Numeric Computing Environment (MATLAB, Octave, Mathematica, Maple …) ◦ Non-Specific Pseudo-code (Giordano), or ◦ General Purpose (FORTRAN, C/C++, Java, Python …)
  • 16. … Language & Content The decision of what contents & languages to use to teach UCP is not an easy one, but depends mostly on: ◦ Objectives of the UCP Course and time allotted for it, ◦ Computing skills & experience of both Instructors and Students, ◦ Availability & cost of Computational Resources and Facilities, ◦ Numerical performance, ease of use, good graphical interfaces, & Web-based & database driven applications of Language/Computing Environment.
  • 17. … Language & Content At University of Gondar we chose following contents & language to teach UCP & have been using it since 2005: ◦ Both (Linear & Non-linear Systems) for Content, & ◦ Java for Language ◦ Currently, we are considering using Java with Python. Why Linear & Nonlinear Contents? ◦ The course focuses on studying & developing simulation for nonlinear & many variable systems, but ◦ Linear systems are used for introducing the basics of the Language & Numerical Methods
  • 18. … Language & Content  Why Java? ◦ Platform independent; (API, neutral byte code, JVM) ◦ Flexible standard graphics libraries & good performance ◦ Web-based & server-based applets ◦ Free and relatively simple to learn ◦ Supported by OSP (OpenSourcePhysics), extensive library of open-source Java routines for computational work (www.compadre.org/OSP/ ). Disadvantage: ◦ Despite the high level of abstraction and platform independence, the speed & performance of Java is not comparable with C++ or Fortran. ◦ It is not supported by numerical libraries.
  • 19. Installation Download the JDK Installer (from www.java.com or www.oracle.com/technetwork/java/javase/downloads/index.html) JDK on Windows:  Run the JDK Installer & follow the instructions. (JDK should be installed in the directory C: )  Add the jdk/bin directory into the execution path JDK on Linux (for root users):  Uncompress the binary file (for 64-bit & update 60): tar zxvf jdk-8u60-linux-x64.tar.gz  Move the JDK directory to /usr/lib sudo mkdir -p /usr/lib/jvm sudo mv /jdk1.8.60 /usr/lib/jvm/
  • 20. … Installation JDK on Linux:  Now enable Java sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_60/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_60/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0_60/bin/javaws" 1  Change the file ownership & permissions of the executables; use the chmod a+x command.
  • 21. Configure Project/Development Environment (Based on OpenSourcePhysics & An Introduction to Computer Simulation Methods, 3ed, by Gould &Tobochinik) Windows:  Create a Project Directory (e.g.“C:cp_projects”)  Download the OpenSourcePhysics Eclipse Workspace (from www.compadre.org/OSP/ ) and unpack the source code for the OSP core library (src.zip) in to the Project Dir.  Create a Dir. named classes under the Project Dir.: C:cp_projectsclasses  Create a Dir. named org under classes & a Dir. named opensourcephysics under the org Dir.: C:cp_projectsclassesorgopensourcephysics  Copy the resource Dir. from …srcorgopensourcephysics to …classesorgopensourcephysics
  • 22. …Configure Project Linux:  Create a Project Dir. under the user’s Home Dir., unpack the core library src.zip, & make directory named classes: mkdir /cp_projects unzip /cp_projects/src.zip mkdir /cp_projects/classes  Create a directory named org under classes & a directory named opensourcephysics under the org Dir.: mkdir /cp_projects/classes/org/opensourcephysics  Copy the resource Dir. from …srcorgopensourcephysics to …classesorgopensourcephysics
  • 23. Edit Windows:  the source code can be edited using Notepad (++) &  saved as “FileName”.java under Directory: C:cp_projectsrc”package” Linux:  the source code can be edited using text editor gedit &  saved as “FileName”.java under Directory: home/”user”/cp_project/src/”package”
  • 24. … Edit (Example using Notepad ++) (Gould)
  • 25. Compile Windows:  Open Command Prompt (C:_)  Change Directory to Project Directory (C:cp_project)  Compile: javac –d classes/ -sourcepath src/ src/”package”/”FileName”.java Linux:  Open theTerminal  Change Directory to Project Directory cd cp_project  Compile: javac -d classes/ -sourcepath src/ src/”package”/”FileName”.java
  • 27. Run Windows:  Open Command Prompt (C:_)  Change Directory to Project Directory (C:cp_project)  Run: java -classpath classes/ “package name”/”FileName” Linux:  Open theTerminal  Change Directory to Project Directory cd cp_project  Run: java -classpath classes/ “package name”/”FileName”
  • 28. … Run (Example & Results) (Gould)
  • 29. References & Resources 1. Landau, A First Course in Scientific Computing. Princeton Univ. Press, 2005. 2. Gould &Tobochnik, An Introduction to Computer Simulation Methods, 3ed. Addison-Wesley 2006. 3. OpenSourcePhysics, www.compadre.org/OSP/ 4. Giordano & Nakanishi, Computational Physics, 2ed. Prentice Hall 2005. 5. Cook, Computation and Problem Solving in Undergraduate Physics. http://www.lawrence.edu/dept/physics/ccli 6. Yevick, A First Course in Computational Physics & Object-Oriented Programming with C++. Cambridge Univ. Press, 2005. 7. Hjorth-Jensen, Computational Physics Lecture Notes, Univ. of Oslo, 2012 8. Thijssen, Computational Physics, Cambridge Univ. Press, 1999 9. Gershenfeld, The Nature of Mathematical Modeling. Cambridge Univ. P, 1999 10. Landau, Computational Physics: A Better Model for Physics Education? Computing in Science & Engineering, 2006