Computational Physics 1 (Fundamental Numerical Methods)
Module version of WS 2017/8
There are historic module descriptions of this module. A module description is valid until replaced by a newer one.
Whether the module’s courses are offered during a specific semester is listed in the section Courses, Learning and Teaching Methods and Literature below.
|available module versions|
|WS 2020/1||WS 2019/20||WS 2018/9||WS 2017/8||WS 2010/1|
PH2057 is a semester module in English language at Master’s level which is offered in winter semester.
This Module is included in the following catalogues within the study programs in physics.
- Specific catalogue of special courses for condensed matter physics
- Specific catalogue of special courses for nuclear, particle, and astrophysics
- Specific catalogue of special courses for Applied and Engineering Physics
- Complementary catalogue of special courses for Biophysics
- Specialization Modules in Elite-Master Program Theoretical and Mathematical Physics (TMP)
If not stated otherwise for export to a non-physics program the student workload is given in the following table.
|Total workload||Contact hours||Credits (ECTS)|
|150 h||60 h||5 CP|
Responsible coordinator of the module PH2057 in the version of WS 2017/8 was Stefan Recksiegel.
Content, Learning Outcome and Preconditions
‒ Numbers on computers
‒ Sources of errors
‒ Riemann definition
‒ Trapezoid rule, Simpson rule
‒ Gauss integration
‒ Adaptive stepsize
‒ Forward Difference, Central Difference
‒ Higher Orders
4. Root Finding
5. Linear Algebra
‒ Gauss elimination with back-substitution
‒ Singular Value Decomposition
6. Multidimensional Newton-Raphson
7. Data fitting / Inter-/Extrapolation
‒ Lagrange interpolation, Splines
‒ Least squares fit
‒ Linear least squares, non-linear chi^2
8. Ordinary Differendial Equations
‒ Classification of DEs
‒ Euler algorithm
‒ Midpoint algorithm
‒ Applications: Planetary motion, etc.
‒ Initial/boundary value problems
‒ ODE eigenvalues
9. Partial Differential Equations
‒ Elliptic PDEs
‒ Parabolic PDEs
‒ Hyperbolic PDEs
After successful completion of this module, students are able to
- understand and implement (in various programming languages) basic numerical methods such as integration, (multidimensional) root finding, data interpolation and fitting
- classify and numerically solve all ordinary and simple partial differential equations
- construct a proper DE description for a given physical problem
No preconditions in addition to the requirements for the Master’s program in Physics.
Courses, Learning and Teaching Methods and Literature
Courses and Schedule
|VU||4||Computational physics 1||Recksiegel, S.||
singular or moved dates
and dates in groups
|VO||2||Introduction to Programming||Recksiegel, S.|
Learning and Teaching Methods
In the lecture, the contents are first explained on a theoretical level on an electronic whiteboard (the slides can be downloaded from the lecturer's web site immediately after the lectures). Then, the algorithms are implemented in the computer algebra system Mathematica to study the practical applicability of the concept. Whenever possible, the students are asked for input during this process, and if a suggested approach fails (e.g. due to numerical instabilities), the causes are discussed and alternatives are presented.
Exercise sheets (which frequently include reproduction of the results of the lecture) are first worked on individually by the students and then discussed in small groups with a tutor.
Presentations on an electronic Whiteboard, demonstrations in Mathematica, C and Python ; exercise sheets. Accompanying web page: http://users.ph.tum.de/srecksie/lehre
Much of the material in this course is covered in "Computational Physics: Problem Solving with Computers" by Landau, Paez and Bordeianu, Wiley-Vch, ISBN 3527413154 (3rd ed.) The 2nd ed., ISBN 3527406263, can also be used.
Description of exams and course work
There will be a written exam of 90 minutes duration. Therein the achievement of the competencies given in section learning outcome is tested exemplarily at least to the given cognition level using calculation problems and comprehension questions.
For example an assignment in the exam might be:
- Use the trapezoidal rule to calculate the integral of a function and show that the result is exact for linear functions.
- What is the order of magnitude of the error for non-linear functions (in terms of the step size and derivatives of the function to be integrated)?
- Taking into account the algorithmic error and the roundoff error, what is the optimum number of integration steps?
Participation in the exercise classes is strongly recommended since the exercises prepare for the problems of the exam and rehearse the specific competencies.
The exam may be repeated at the end of the semester.
Current exam dates
Currently TUMonline lists the following exam dates. In addition to the general information above please refer to the current information given during the course.
|Exam on Computational Physics 1|
|Tue, 2024-02-20, 11:00 till 12:30||Hörsaal
|till 2024-01-15 (cancelation of registration till 2024-02-13)|
|Tue, 2024-03-26, 13:30 till 15:00||102