User Tools

Site Tools


Sidebar

  • Cosmology
  • Planet Formation

NEWS

February 2019:Student Newspaper

August 2018:Kunsthalle Exhibit

June 2018: Euclid Star Prize

June 2017: Flagship 1.0 Simulation

spin:esc201_hs2019

Simulations in the Natural Sciences

ESC201: Fall 2019: Monday Lecture: 13:00-14:00 Exercises: 14:00-17:00 in Room 36 J 33

TAs: Onur Catmabacak and Tine Colman

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 Onur (onurc@physik.uzh.ch, office: Y11-F74):

  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

1. Newton's Method and Kepler Problem, until 29.09.2019

2. Predator-prey behavior with Forward Euler Method, Midpoint Runge-Kutta and (optional for comparison) Runge-Kutta, until 06.10.2019

3. Solve Simple Pendulum equation using Symleptic Leapfrog and Midpoint Runge-Kutta, compare both methods until 13.10.2019

spin/esc201_hs2019.txt · Last modified: 2019/10/07 14:29 by stadel