|
Contents:
Computational simulations are a standard tool in astrophysics. In this
lecture we present basic numerical methods for the simulation of
physical problems based on relevant examples from
astrophysics, exercises in C/C++
and Fortran are included. As Fortran is very common in
astrophysics, this lecture also contains an introduction to Fortran.
This course is part I of the specialization "Computational
Astrophysics" and comprises 1V1S + 1V1S (each 3 CP,
so in total 6 CP for this course ).
Certificate of attendance:
- without mark, e.g., Master of Astrophysics, module PHY-765
"Topics in Advanced Astrophysics" - this module has in total 8 SWS
with 12 CP, oral exam (45 min) to pass whole module:
at least 1./3. of the total points of the (weekly) exercises
- with a mark (other Master courses):
small programming project at the end of the semester
Subsequent lectures (for the Specialization Track "Computational Astrophysics")
Exercises (pdf):
Most of the exercises are programming tasks in
C/C++. You need access to a Linux (see links below)
or Mac computer for
the tasks with graphical output (X11) or programming
skills in a graphical toolkit under Windows.
You can get an account in the student's computer lab,
which is also accessible via ssh (see Links). Contact me for that.
- Exercise 1
Plotting data
- Exercise 2
Number representation
- Exercise 3
Loops, arrays, pointers
- Exercise 4
Classes, Numerical errors
- Exercise 5
Numerical errors, Graphical output with X11
- Exercise 6
Euler method and the Two-body problem
- Exercise 7
Aspects of the Kepler problem
- Exercise 8
The special three-body problem, Runge-Kutta method
- Exercise 9 Solution
ODEs, Lane-Emden equation, shooting method
- Exercise 10 Solution
Interpolation, roots
- Exercise 11 Solution
Numerical Integration, Elastic neutron scattering
- Exercise 12
Probability distributions, Inelastic neutron scattering, MC
integration, Random walk
Xgraphics
|
|
Lectures (pdf):
-
Introduction - Working with Unix/Linux
(2.4 MB)
Hands on Linux (286 kB)
Introduction (script) (4 MB)
Detailed informationen about login with SSH and VNC
on the computers of the student's computer cluster:
login_ssh_vnc_en.pdf (931 kB)
gnuplot (778 kB)
FYI: Brief intro to LaTeX (1.5 MB)
-
Review C/C++ (827 kB)
Hands on C++ (177 kB)
-
Errors, libraries, make, X11 (507 kB)
-
The two-body problem (436 kB)
-
The three-body problem and integration of
the Newtonian equations of motion
(4.2 MB)
-
Application ODE: The Lane-Emden equation
(321 kB)
-
Overview: Differential equations, Boundary
value problems
(309 kB)
-
Finding roots, interpolation
(1.1 MB)
-
Numerical Integration and Differentiation
(455 kB)
-
Monte-Carlo simulations
(410 kB)
-
MC integration, random walks, tests for
randomness (880 kB)
-
Why MC integration, Techniques of
parallelization, OpenMP
(809 kB)
-
Insert: data analysis, bootstrapping
(602 kB)
-
Linear Algebra
(411 KB)
-
Introduction to Fortran
(8.1 MB)
-
All slides w/o Fortran (10 MB)
|