User Tools

Site Tools


Sidebar

  • Cosmology
  • Planet Formation

NEWS

August 2018:Kunsthalle Exhibit

June 2018: Euclid Star Prize

spin:esc201_hs2020

Simulations in the Natural Sciences I

ESC201:Fall 2020: Monday Lecture: 13:00-14:00 Exercises: 14:00-17:00 in online only

TAs: Stefan Schafroth, Sebastian Schulz (sebastian.schulz@uzh.ch), Peter Espenshade (peter.espenshade@uzh.ch)

Corona Virus Measures

Dear Students, I will provide a video lectures from the second class onwards, the 21. September 2020. Exercises will in future take place via Microsoft Teams :ESC 201

Joachim Stadel


Video Lectures

Videos for the lectures can be found here (they are too large for my Wiki):

ESC201 Video downloads

Lectures

Assignments

Should be handed in every Sunday night by 21:00 following the Monday lecture. Assignments should be individual and should be in python and provide a correct virtual environment!

For help getting started with virtual environments, please read carefully Python Virtual Environments for Pip and Python Virtual Environments for Conda.

You should email 3 things to Peter (peter.espenshade@uzh.ch):

  1. The working python source code
  2. The requirements.txt file for your virtual environment
  3. A .pdf or .png image or animation of the output of your program

Template: template.zip

Instructions:

Please add the names of the people you work together (if you do) to the comment section of your python scripts.

Create a virtual environment using

Pip

- run virtualenv yourenv_name to create a virtual environment

- run source yourenv_name/bin/activate to activate yourenv_name

- install necessary libraries that you want using pip install package_name

- work in that directory, get your outputs (*.pdf, *.png, *jpeg, *.mp4, etc…)

- run pip freeze > requirements.txt to get your list of libraries

Conda

- run conda create -n yourenvname python=x.x anaconda to create a virtual environment

- run source activate yourenvname to activate yourenv_name

- install necessary libraries that you want using conda install -n yourenv_name package_name

- work in that directory, get your outputs (*.pdf, *.png, *jpeg, *.mp4, etc…)

- run conda list –export > requirements.txt to get your list of libraries

List of assignments

  1. Kepler's equation: Draw/Animate a plot showing the elliptical orbit about the sun/star by repeatedly solving Kepler's equation using Newton's Method (due 27 September, 2020).
  2. Logistic equation and chaos: Draw a Feigenbaum diagram that results from solving the logistic equation (due 4 October, 2020). (Optional: Draw the iterations of the logistic equation in a x_(n+1) vs x_n plot.)
  3. Fractals using complex numbers: Draw the Mandelbrot set as presented in the lecture (due 11 October, 2020). (Optional: Draw some Julia sets with various c.)
  4. Ordinary Differential Equations: Solve the Lotka-Volterra equation using the Euler method and the midpoint Runge-Kutta method (optional: 4th order Runge Kutta method) and compare the results. Make two plots: the time dependence of both populations (mice and foxes), and the phase diagram using different initial conditions (due 18 October, 2020).
  5. Symplectic Integrators: Use the Leap-Frog method to make a phase plot (p vs q) of the harmonic oscillator for different total energies. Make the same plot for a simple pendulum (due 25 October, 2020).
spin/esc201_hs2020.txt · Last modified: 2020/10/19 14:51 by stadel