User Tools

Site Tools


spin:esc201_hs2019

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
spin:esc201_hs2019 [2019/09/16 11:25]
stadel
spin:esc201_hs2019 [2019/12/09 14:53]
stadel [Assignments]
Line 8: Line 8:
 ====== Lectures ====== ====== Lectures ======
  
-1. Sept. 16, 2019: +16. Sept. 2019: {{ :​spin:​sins1-01.pdf |Floating Point and Round-off Error}}
  
 +23. Sept. 2019: {{ :​spin:​sins1-02.pdf |Newton'​s Method and Kepler'​s Equation}}
 +
 +30. Sept. 2019: {{ :​spin:​sins1-03.pdf |Ordinary Differential Equations}}
 +
 +7. Oct. 2019: {{ :​spin:​sins1-04.pdf |Symplectic Integrators}}
 +
 +14. Oct. 2019: {{ :​spin:​sins1-05.pdf |Gravitational Many Body Problem: The Solar System}}
 +
 +21. Oct. 2019: {{ :​spin:​sins1-06.pdf |Population Growth, Chaos and Fractals}}
 +
 +28. Oct. 2019: {{ :​spin:​sins1-07.pdf |3-D Graphics, Lorenz Attractor}}
 +
 +4. Nov. 2019: {{ :​spin:​sins1-08.pdf |Laplace Equation, Jabobi and SOR Methods}}
 +
 +11. Nov. 2019: {{ :​spin:​sins1-09.pdf |Bi-linear(cubic) Interpolation,​ Electron Beams!}}
 +
 +18. Nov. 2019: {{ :​spin:​sins1-10.pdf |Diffusion Equation and Numerical Stability}}
 +
 +25. Nov. 2019: {{ :​spin:​sins1-11.pdf |Hyperbolic PDEs: LAX & CIR Upwind Schemes}}
 +
 +2. Dec. 2019: {{ :​spin:​sins1-12.pdf |Finite Volume Methods in 1-D and 2-D}}
 +
 +9. Dec. 2019: {{ :​spin:​sins1-13.pdf |2-D Hydrodynamics: ​ Sedov Blast Wave}}
 ====== Assignments ====== ====== Assignments ======
  
-Should be handed in every Sunday night by 21:00 following the Monday lecture.+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  Assignments should be **individual** and should be in python and **provide a 
 correct virtual environment!** correct virtual environment!**
  
-For help getting started with virtual environments,​ please read carefully+For help getting started with virtual environments,​ please read carefully [[https://​towardsdatascience.com/​all-you-need-to-know-about-python-virtual-environments-9b4aae690f97|Python Virtual Environments ​for Pip]] and [[https://​uoa-eresearch.github.io/​eresearch-cookbook/​recipe/​2014/​11/​20/​conda/​|Python Virtual Environments for Conda]]. 
-[[https://​towardsdatascience.com/​all-you-need-to-know-about-python-virtual-environments-9b4aae690f97|Python Virtual Environments]]+ 
 +You should email 3 things to Onur (**onurc@physik.uzh.ch,​ office: Y11-F74**):​ 
 + 
 +  - The working **python source code** 
 +  - The **requirements.txt** file for your virtual environment 
 +  - 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. Make a phase space plot for the Simple Pendulum using Symleptic Leapfrog and Midpoint Runge-Kutta,​ compare both methods ** until 13.10.2019 ** 
 + 
 +4. Solar System Orrery {{ :​spin:​solsystdata.dat.zip | Initial Conditions }}, {{ :​spin:​read_planets.zip | Loading Script }} 
 +** until : Sunday 20.10.2019 (21:00)** 
 + 
 +5. Logistic Equation Plots (optional), **Feigenbaum Plot**, Julia Set Plot (optional), **Mandelbrot Set Plot**, due 
 +** until : Sunday 27.10.2019 (21:00)** 
 + 
 +6. 3D Graphics and Lorenz Attractor due ** Sunday 03.11.2019 (21:00) ** 
 + 
 +7. Electrostatics in vacumm due ** Sunday 10.11.2019 ** 
 + 
 +8. Bi-linear(cubic) Interpolation,​ Electron Beams due ** 17.11.2019 **
  
-You should email 3 things to Onur (onurc@physik.uzh.ch):+9Design CompetitionTime-of-Flight Instrument, due ** 24.11.2019 **
  
-  ​The working python source code +10. Compare Finite Difference Upwind and Corner Transport Upwind (finite volume) in 2-D using a Gaussian on a 2-D periodic meshdue ** 8.12.2019 **
-  ​The requirements.txt file for your virtual environment +
-  - A .pdf or .png image of the output of your program+
  
 +11. Last exercise: 2-D Sedov Taylor Blast Wave. Define a 2-D **periodic** grid of variables (rho, rho_u, rho_v, E). Set P = e = 1e-5, rho_u = rho_v = 0, and rho = 1.0 everywhere (Note: gamma = 2). Set one cell (either in the corner, or center of the grid) to have e = 1. Adapt the timestep delta_t at each step to satisfy the Courant condition (given by the maximum of D_max across the grid). The timestep should be very small at first and increase with time as the shock wave expands. You should use the corner transport upwind method with the predictor-corrector scheme outlined in the lecture. However, you can make a test using the 2-D basic LAX scheme.
  
spin/esc201_hs2019.txt · Last modified: 2019/12/09 14:53 by stadel