Skip to content

Commit

Permalink
update slides for SS24
Browse files Browse the repository at this point in the history
  • Loading branch information
breyerml committed Apr 3, 2024
1 parent ee4bb7b commit 76dad50
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 44 deletions.
4 changes: 2 additions & 2 deletions config.tex
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
\setlength {\marginparwidth }{2cm}

% add new (non-SI) units
\usepackage{siunitx}
\usepackage[binary-units]{siunitx}
\DeclareSIUnit{\parsec}{pc}
\DeclareSIUnit{\year}{y}
\DeclareSIUnit{\year}{yr}

% use special tikz libraries and overwrite the default arrow head
\usepackage{tikz}
Expand Down
28 changes: 14 additions & 14 deletions constants.tex
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
\def\dateKickoffPhaseOne{25.10.2023}
\def\dateDeadlinePhaseZero{02.11.2023}
\def\dateKickoffPhaseTwo{27.11.2023}
\def\dateDeadlinePhaseOne{04.12.2023}
\def\dateDeadlinePhaseTwo{29.01.2024}
\def\dateFinal{TBA}
\def\dateKickoffPhaseOne{18.04.2024}
\def\dateDeadlinePhaseZero{29.04.2024}
\def\dateKickoffPhaseTwo{30.05.2024}
\def\dateDeadlinePhaseOne{03.06.2024}
\def\dateDeadlinePhaseTwo{01.07.2024}
\def\dateFinal{18.07.2024}

\def\urlIliasCourse{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_crs_3426920.html}
\def\urlIliasForumGeneral{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_frm_3451473.html}
\def\urlIliasForumGroups{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_frm_3451472.html}
\def\urlIliasData{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_fold_3451475.html}
\def\urlIliasSubmissionPhaseZero{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_exc_3451474.html}
\def\urlIliasSubmissionPhaseOne{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_exc_3451474.html}
\def\urlIliasSubmissionPhaseTwo{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_exc_3451474.html}
\def\urlIliasSubmissionFinal{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_exc_3451474.html}
\def\urlIliasCourse{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_crs_3622852.html}
\def\urlIliasForumGeneral{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_frm_3638992.html}
\def\urlIliasForumGroups{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_frm_3638991.html}
\def\urlIliasData{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_fold_3638994.html}
\def\urlIliasSubmissionPhaseZero{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_exc_3638993.html}
\def\urlIliasSubmissionPhaseOne{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_exc_3638993.html}
\def\urlIliasSubmissionPhaseTwo{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_exc_3638993.html}
\def\urlIliasSubmissionFinal{https://ilias3.uni-stuttgart.de/goto_Uni_Stuttgart_exc_3638993.html}

\def\semester{Summerterm 2024}

Expand Down
33 changes: 6 additions & 27 deletions content/slides.tex
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@
sudo apt install openjdk-18-jdk openjdk-18-jre maven
\end{minted}
\end{itemize}
\vfill
In your code, \textbf{only} the respective standard libraries (everything in \texttt{std} in \texttt{C++}, except C standard header and their \texttt{C++} counterparts (e.g., \mintinline{c++}{<string>} is allowed, \mintinline{c++}{<cstring>} or \mintinline{c++}{<string.h>} is \textbf{not} allowed), and everything in \texttt{java.*} in \texttt{Java}) may be used!
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Expand Down Expand Up @@ -241,31 +243,6 @@
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]
\frametitle{Phase 1.1: Naive implementation of an n-body simulation}
Each particle $i$ with mass $m_i$ and position vector $\vec{r}_i$ experiences the force $\vec{a}_i$ from all other particles according to Newton's law of universal gravitation:
\begin{equation*}
\vec{a}_i = \sum\limits_{i \neq j} G m_j \frac{\vec{r}_j - \vec{r}_i}{(\norm{\vec{r}_j - \vec{r}_i}_2^2 + \epsilon^2)^\frac{3}{2}}
\end{equation*}
\pause
\begin{itemize}
\item Gravitational constant: $G = \num{6.67430e-11}\frac{\text{m}^3}{\text{kg} \cdot \text{s}^2}$
\item Units do not match the given datasets:
\begin{itemize}
\item Mass in solar masses: $M_\odot = \SI{1.988435e30}{\kilo\gram}$
\item Distance in parsecs: $\SI{1}{\parsec} = \SI{3.08567758129e16}{\meter}$
\item Time in years: $\SI{1}{\year} = \num{365.25} \cdot \SI{86400}{\second}$
\end{itemize}
\item Note: the correct scaling of $G$ should be calculated in the program!
\item Softening factor: $\epsilon = 0.1$ to avoid collisions between particles
\item $\norm{}_2^2$: squared Euclidean distance
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]
\frametitle{Phase 0: Formation of groups}
Expand Down Expand Up @@ -1049,6 +1026,8 @@
\end{minted}
}%
\vspace*{-1.75em}
\item If only an IPv6 address is available on the bwCloud, use \texttt{mvn -Djava.net.preferIPv6Addresses=true package} to build your Java programs.
\item In the Barnes-Hut algorithm, pay attention that the large black hole isn't located at the intersection point of all eight quadrants.
\item MIT insider tip: \link{https://missing.csail.mit.edu/}{\enquote{The Missing Semester of Your CS Education}}
\end{itemize}
\end{frame}
Expand All @@ -1060,9 +1039,9 @@
\frametitle{Important Dates}
\begin{description}
\item[\dateKickoffPhaseOne] Kick-off
\item[\dateDeadlinePhaseTwo] Group formation deadline
\item[\dateDeadlinePhaseZero] Group formation deadline
\item[\dateKickoffPhaseTwo] Kick-off Phase 2
\item[\dateDeadlinePhaseTwo] Phase 1 deadline
\item[\dateDeadlinePhaseOne] Phase 1 deadline
\item[\dateDeadlinePhaseTwo] Phase 2 deadline
\item[\dateFinal] Final presentations% (possibly multiple dates)
\end{description}
Expand Down
2 changes: 1 addition & 1 deletion main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
\department[logo=.logos/logo_scientific_comp.pdf, url=https://www.ipvs.uni-stuttgart.de/departments/sc/]{Scientific Computing}{SC}


\title{Programming\\ Project\\ Galaxy-Crash}
\title{Programming\\ Project\\ Galaxy-Crash\\ \textcolor{red}{(preliminary)}}
\author[Van Craen, Breyer, Prof. Pflüger]{Alexander Van Craen,\\Marcel Breyer,\\Prof. Dr. Dirk Pflüger}
\date{\semester}

Expand Down

0 comments on commit 76dad50

Please sign in to comment.