From 8170d7f8000424d39253ddc522517f5ca06dd489 Mon Sep 17 00:00:00 2001 From: csendlinger Date: Tue, 21 Jan 2025 11:42:57 +0100 Subject: [PATCH] Added citation for Rodriges rotation formula --- docs/paper/the-karl-code/paper.bib | 11 +++++++++++ docs/paper/the-karl-code/paper.tex | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/paper/the-karl-code/paper.bib b/docs/paper/the-karl-code/paper.bib index dcfc163..a4e7929 100755 --- a/docs/paper/the-karl-code/paper.bib +++ b/docs/paper/the-karl-code/paper.bib @@ -408,4 +408,15 @@ abstract = {Methods based on Monte Carlo solutions of the transport equation for school = "Technische Universität München", year = "2024", type = "Master Thesis" +} + +@book{10.5555/561828, +author = {Murray, Richard M. and Sastry, S. Shankar and Zexiang, Li}, +title = {A Mathematical Introduction to Robotic Manipulation}, +year = {1994}, +isbn = {0849379814}, +publisher = {CRC Press, Inc.}, +address = {USA}, +edition = {1st}, +pages = {26-28} } \ No newline at end of file diff --git a/docs/paper/the-karl-code/paper.tex b/docs/paper/the-karl-code/paper.tex index e6aeb55..41720ed 100755 --- a/docs/paper/the-karl-code/paper.tex +++ b/docs/paper/the-karl-code/paper.tex @@ -346,7 +346,7 @@ The gyro frequency is then used to calculate the relative pitch angle change tow \begin{equation} \Delta \theta = \Delta t \cdot \omega_\text{g} \fullstop \end{equation} -Third, the movement of the gyrocenter is calculated by the rotation of $\mathbf{x}_\text{pc}$ around $\mathbf{v}_\parallel$ with the angle of rotation $\Delta \theta$ through Rodriges' rotation formula. In total, the position changes calculates to +Third, the movement of the gyrocenter is calculated by the rotation of $\mathbf{x}_\text{pc}$ around $\mathbf{v}_\parallel$ with the angle of rotation $\Delta \theta$ through Rodriges' rotation formula \citep{10.5555/561828}. In total, the position changes calculates to \begin{equation} \Delta \mathbf{x} = \Delta \mathbf{x}_\text{c} + \Delta \mathbf{x}_\parallel + \Delta \mathbf{x}_\text{D} \fullstop \end{equation} @@ -573,7 +573,8 @@ After the injection of particles, the timer class is provided with the time, tha \subsection{Parallelization} \label{ssec:parallelization} -In order to obtain reasonable and robust results of the simulation, high statistics is necessary. This is especially the case, if also improbable effects like the excitation by rotation, should be visible in the results. The goal of high statistics can be reached by parallel computation. For the code, a simple parallelization strategy was used. The desired number of decays are distributed evenly on the cores, and each CPU core follows the simulation loop (see section~\ref{ssec:general_diagram}) independent from the others. The general setup of the simulation stays the same between CPU cores. However, an asset of the code is, that the Monte Carlo events of each particle track can be dependent on the other, for example in the case of recombination. In order to obtain this strong point, the number of desired events per CPU core are further subdivided into cycles with a fixed length. After each cycle, a synchronization step between the CPU cores is initiated. During the synchronization step, the data on the density fields is shared among all CPU cores. Since the simulation is set up the same for all CPU cores, this step only needs an additive operation on the array of cumulated times, see section~\ref{ssec:denstiy_fields}, and an additive step, to share the passed time. Additionally to the density field synchronization, also the data of the current borders and deletion loggers are synchronized, which is not strictly necessary, but keeps the data congruent on all CPU cores and makes the output step easier, see section~\ref{ssec:output}. +In order to obtain reasonable and robust results of the simulation, high statistics is necessary. This is especially the case, if also improbable effects like the excitation by rotation, should be visible in the results. The goal of high statistics can be reached by parallel computation. For the code, a simple parallelization strategy was used. The desired number of decays are distributed evenly on the cores, and each CPU core follows the simulation loop (see section~\ref{ssec:general_diagram}) independent from the others. The general setup of the simulation stays the same between CPU cores. However, an asset of the code is, that the Monte Carlo events of each particle track can be dependent on the other, for example in the case of recombination. In order to obtain this strong point, the number of desired events per CPU core are further subdivided into cycles with a fixed length. After each cycle, a synchronization step between the CPU cores is initiated. During the synchronization step, the data on the density fields is shared among all CPU cores. Since the simulation is set up the same for all CPU cores, this step only needs an additive operation on the array of cumulated times%, see section~\ref{ssec:denstiy_fields}, +and an additive step, to share the passed time. Additionally to the density field synchronization, also the data of the current borders and deletion loggers are synchronized, which is not strictly necessary, but keeps the data congruent on all CPU cores and makes the output step easier, see section~\ref{ssec:output}. The benefit of this parallelization scheme lies in its simplicity. It is easy to include more CPU cores for the calculation. Only the synchronization step takes slightly longer. However, the main simulation effort lies in the movement and interaction step. Thus, the synchronization does not play a significant role. Furthermore, there is no need of a CPU core, which directs tasks to the other CPU cores. Hence, little communication and data exchange is necessary between CPU cores, which saves calculation time.