Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
b3817022
Commit
b3817022
authored
Sep 29, 2016
by
Matthieu Schaller
Browse files
Extracted the kernel definition text from the wrapping tex.
parent
467b0fe7
Changes
10
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
b3817022
...
...
@@ -80,9 +80,9 @@ tests/testRiemannHLLC
tests/testMatrixInversion
theory/latex/swift.pdf
theory/SPH/
k
ernel/kernels.pdf
theory/SPH/
k
ernel/kernel_derivatives.pdf
theory/SPH/
k
ernel/kernel_definitions.pdf
theory/SPH/
K
ernel
s
/kernels.pdf
theory/SPH/
K
ernel
s
/kernel_derivatives.pdf
theory/SPH/
K
ernel
s
/kernel_definitions.pdf
theory/SPH/flavours/sph_flavours.pdf
theory/paper_pasc/pasc_paper.pdf
...
...
theory/SPH/
f
lavours/bibliography.bib
→
theory/SPH/
F
lavours/bibliography.bib
View file @
b3817022
File moved
theory/SPH/
f
lavours/run.sh
→
theory/SPH/
F
lavours/run.sh
View file @
b3817022
File moved
theory/SPH/
f
lavours/sph_flavours.tex
→
theory/SPH/
F
lavours/sph_flavours.tex
View file @
b3817022
File moved
theory/SPH/
k
ernel/bibliography.bib
→
theory/SPH/
K
ernel
s
/bibliography.bib
View file @
b3817022
File moved
theory/SPH/
k
ernel/kernel_definitions.tex
→
theory/SPH/
K
ernel
s
/kernel_definitions.tex
View file @
b3817022
\documentclass
[fleqn, usenatbib, useAMS,a4paper]
{
mnras
}
\usepackage
{
graphicx
}
\usepackage
{
amsmath,paralist,xcolor,xspace,amssymb
}
\usepackage
{
times
}
\newcommand
{
\swift
}{{
\sc
Swift
}
\xspace
}
%opening
\title
{
SPH kernels in SWIFT
}
\author
{
Matthieu Schaller
}
\begin{document}
\maketitle
We follow the definitions and notation of
\cite
{
Dehnen2012
}
. Motivation for all the material given here can be
found in their paper.
\section
{
General Definitions
}
\
sub
section
{
General Definitions
}
The desirable properties of an SPH kernels
$
W
(
\vec
{
x
}
,h
)
$
are:
\begin{enumerate}
...
...
@@ -83,7 +68,7 @@ the usual cubic spline kernel (see below), setting the simulation
resolution to
$
\eta
=
1
.
2348
$
yields the commonly used value
$
N
_{
\rm
ngb
}
=
48
$
.
\section
{
Kernels available in
\swift
}
\
sub
section
{
Kernels available in
\swift
}
The
\swift
kernels are split into two categories, the B-splines
(
$
M
_{
4
,
5
,
6
}$
) and the Wendland kernels (
$
C
2
$
,
$
C
4
$
and
$
C
6
$
). In all
...
...
@@ -216,7 +201,7 @@ All kernels available in \swift are shown on Fig.~\ref{fig:sph:kernels}.
\end{figure}
\section
{
Kernel Derivatives
}
\
sub
section
{
Kernel Derivatives
}
The derivatives of the kernel function have relatively simple
expressions and are shown on Fig.~
\ref
{
fig:sph:kernel
_
derivatives
}
:
...
...
@@ -228,7 +213,3 @@ expressions and are shown on Fig.~\ref{fig:sph:kernel_derivatives}:
\end{align}
Note that for all the kernels listed above,
$
f'
(
0
)
=
0
$
.
\bibliographystyle
{
mnras
}
\bibliography
{
./bibliography.bib
}
\end{document}
theory/SPH/Kernels/kernel_definitions_standalone.tex
0 → 100644
View file @
b3817022
\documentclass
[fleqn, usenatbib, useAMS,a4paper]
{
mnras
}
\usepackage
{
graphicx
}
\usepackage
{
amsmath,paralist,xcolor,xspace,amssymb
}
\usepackage
{
times
}
\newcommand
{
\swift
}{{
\sc
Swift
}
\xspace
}
%opening
\title
{
SPH kernels in SWIFT
}
\author
{
Matthieu Schaller
}
\begin{document}
\maketitle
\input
{
kernel
_
definitions
}
\bibliographystyle
{
mnras
}
\bibliography
{
./bibliography.bib
}
\end{document}
theory/SPH/
k
ernel/kernels.py
→
theory/SPH/
K
ernel
s
/kernels.py
View file @
b3817022
File moved
theory/SPH/Kernels/run.sh
0 → 100755
View file @
b3817022
#!/bin/bash
python kernels.py
pdflatex
-jobname
=
kernel_definitions kernel_definitions_standalone.tex
bibtex kernel_definitions.aux
pdflatex
-jobname
=
kernel_definitions kernel_definitions_standalone.tex
pdflatex
-jobname
=
kernel_definitions kernel_definitions_standalone.tex
theory/SPH/kernel/run.sh
deleted
100755 → 0
View file @
467b0fe7
#!/bin/bash
python kernels.py
pdflatex kernel_definitions.tex
bibtex kernel_definitions.aux
pdflatex kernel_definitions.tex
pdflatex kernel_definitions.tex
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment