diff --git a/.gitignore b/.gitignore index 5bd15080626d92b58b04a77225cfbfaa45d987bd..391bfef16b5c614a289693f9fb85a586f18b1be9 100644 --- a/.gitignore +++ b/.gitignore @@ -83,7 +83,7 @@ theory/latex/swift.pdf theory/SPH/Kernels/kernels.pdf theory/SPH/Kernels/kernel_derivatives.pdf theory/SPH/Kernels/kernel_definitions.pdf -theory/SPH/flavours/sph_flavours.pdf +theory/SPH/Flavours/sph_flavours.pdf theory/paper_pasc/pasc_paper.pdf m4/libtool.m4 diff --git a/theory/SPH/Flavours/run.sh b/theory/SPH/Flavours/run.sh index b331e5d508f3ac900069dc8e99417796bf442231..6d0791823d93f7feb8f469747f81b24032612523 100755 --- a/theory/SPH/Flavours/run.sh +++ b/theory/SPH/Flavours/run.sh @@ -1,5 +1,5 @@ #!/bin/bash -pdflatex sph_flavours.tex +pdflatex -jobname=sph_flavours sph_flavours_standalone.tex bibtex sph_flavours.aux -pdflatex sph_flavours.tex -pdflatex sph_flavours.tex +pdflatex -jobname=sph_flavours sph_flavours_standalone.tex +pdflatex -jobname=sph_flavours sph_flavours_standalone.tex diff --git a/theory/SPH/Flavours/sph_flavours.tex b/theory/SPH/Flavours/sph_flavours.tex index 72945d2e67ef6f4ba5064df9c8878364f488e1ed..0ca18d22ebd804927b1c1d1ffa0470634a1b9dcb 100644 --- a/theory/SPH/Flavours/sph_flavours.tex +++ b/theory/SPH/Flavours/sph_flavours.tex @@ -1,29 +1,3 @@ -\documentclass[fleqn, usenatbib, useAMS, a4paper]{mnras} -\usepackage{graphicx} -\usepackage{amsmath,paralist,xcolor,xspace,amssymb} -\usepackage{times} -\usepackage[super]{nth} - -\newcommand{\swift}{{\sc swift}\xspace} -\newcommand{\gadget}{{\sc gadget}\xspace} -\newcommand{\dd}[2]{\frac{\partial #1}{\partial #2}} -\renewcommand{\vec}[1]{{\mathbf{#1}}} -\newcommand{\Wij}{\overline{\nabla_xW_{ij}}} -\newcommand{\tbd}{\textcolor{red}{TO BE DONE}} - -\newcommand{\MinimalSPH}{\textsc{minimal-sph}\xspace} -\newcommand{\GadgetSPH}{\textsc{gadget-sph}\xspace} -\newcommand{\PESPH}{\textsc{pe-sph}\xspace} -%\setlength{\mathindent}{0pt} - -%opening -\title{SPH flavours in SWIFT} -\author{Matthieu Schaller} - -\begin{document} - -\maketitle - For vector quantities, we define $\vec{a}_{ij} \equiv (\vec{a}_i - \vec{a}_j)$. Barred quantities ($\bar a_{ij}$) correspond to the average over two particles of a quantity: $\bar a_{ij} \equiv @@ -32,7 +6,7 @@ vector quantity $\Wij \equiv \frac{1}{2}\left(W(\vec{x}_{ij}, h_i) + \nabla_x W(\vec{x}_{ij},h_j)\right)$. -%######################################################################################################### +%####################################################################################################### \subsection{\MinimalSPH} \label{sec:sph:minimal} @@ -174,7 +148,7 @@ where, as above, the last two updated quantities are obtained using the pre-defined equation of state. Note that the thermal energy $u_i$ itself is \emph{not} updated. -%######################################################################################################### +%####################################################################################################### \subsection{Gadget-2 SPH} \label{sec:sph:gadget2} @@ -281,7 +255,7 @@ the pre-defined equation of state. Note that the entropic function $A_i$ itself is \emph{not} updated. -%######################################################################################################### +%####################################################################################################### \subsection{Pressure-Entropy SPH} \label{sec:sph:pe} @@ -351,7 +325,3 @@ Dalla Vecchia (\textit{in prep.}), also described in section 2.2.2 of \cite{Schaller2015}.\\ \label{sec:sph:anarchy} \tbd -\bibliographystyle{mnras} -\bibliography{./bibliography.bib} - -\end{document} diff --git a/theory/SPH/Flavours/sph_flavours_standalone.tex b/theory/SPH/Flavours/sph_flavours_standalone.tex new file mode 100644 index 0000000000000000000000000000000000000000..20c9f1451c2499d661bfbb1022bfd34c02fde4dd --- /dev/null +++ b/theory/SPH/Flavours/sph_flavours_standalone.tex @@ -0,0 +1,31 @@ +\documentclass[fleqn, usenatbib, useAMS]{mnras} +\usepackage{graphicx} +\usepackage{amsmath,paralist,xcolor,xspace,amssymb} +\usepackage{times} +\usepackage[super]{nth} + +\newcommand{\swift}{{\sc swift}\xspace} +\newcommand{\gadget}{{\sc gadget}\xspace} +\newcommand{\dd}[2]{\frac{\partial #1}{\partial #2}} +\renewcommand{\vec}[1]{{\mathbf{#1}}} +\newcommand{\Wij}{\overline{\nabla_xW_{ij}}} +\newcommand{\tbd}{\textcolor{red}{TO BE DONE}} + +\newcommand{\MinimalSPH}{\textsc{minimal-sph}\xspace} +\newcommand{\GadgetSPH}{\textsc{gadget-sph}\xspace} +\newcommand{\PESPH}{\textsc{pe-sph}\xspace} +%\setlength{\mathindent}{0pt} + +%opening +\title{SPH flavours in SWIFT} +\author{Matthieu Schaller} + +\begin{document} + +\maketitle +\input{sph_flavours} + +\bibliographystyle{mnras} +\bibliography{./bibliography} + +\end{document}