Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickSched
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
QuickSched
Commits
648057ed
Commit
648057ed
authored
10 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Written the correct equations of the multipole in the tex file.
parent
df2b266b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/theory/multipoles.tex
+126
-60
126 additions, 60 deletions
examples/theory/multipoles.tex
with
126 additions
and
60 deletions
examples/theory/multipoles.tex
+
126
−
60
View file @
648057ed
...
...
@@ -16,90 +16,156 @@
\maketitle
Bold quantities are vectors. The indices
$
u,v,w
$
run over the directions
$
x,y,z
$
.
Bold quantities are vectors. The indices
$
\alpha
,
\beta
$
run over the directions
$
x,y,z
$
.
Let's consider the gravitational acceleration
$
\acc
=(
a
_
x,a
_
y,a
_
z
)
$
that a set of point masses at position
$
\p
{
i
}
=(
p
_{
i,x
}
, p
_{
i,y
}
, p
_{
i,z
}
)
$
with masses
$
m
_
i
$
generate at position
$
\rr
=(
r
_
x,
r
_
y,
r
_
z
)
$
:
For a set of particles at position
$
\p
{
i
}
=(
x
_
i, y
_
i, z
_
i
)
$
with mass
$
m
_
i
$
, we can construct the total mass of the set
$
M
$
and its centre of mass
$
\muu
=(
\mu
_
x,
\mu
_
y,
\mu
_
z
)
$
:
\begin{equation}
\acc
(
\rr
) =
\sum
_
i
\frac
{
Gm
_
i
}{
|
\rr
-
\p
{
i
}
|
^
3
}
(
\rr
-
\p
{
i
}
)
M =
\sum
_{
i=1
}^
N m
_
i,
\qquad
\muu
=
\frac
{
1
}{
M
}
\sum
_{
i=1
}^
N m
_
i
\p
{
i
}
.
\end{equation}
This expression can split in one expression for each of the three spatial coordinates
$
u
=
x,y,z
$
:
\begin{equation}
a
_
u (
\rr
) =
\sum
_
i
\frac
{
m
_
i G
}{
|
\rr
-
\p
{
i
}
|
^
3
}
( r
_
u - p
_{
i,u
}
) =
\sum
_
i m
_
i f
_
u(
\rr
-
\p
{
i
}
),
\end{equation}
For each particle, we can define
$
r
_
i
=
\sqrt
{
(
x
_
i
-
\mu
_
x
)
^
2
+
(
y
_
i
-
\mu
_
y
)
^
2
+
(
z
_
i
-
\mu
_
z
)
^
2
}$
, the distance to the
centre of mass.
\\
The quadrupole moment
$
\overline
{
\overline
{
Q
}}$
of this mass distribution is then written as
with
\begin{eqnarray}
Q
_{
11
}
&
=
&
\sum
_
i m
_
i
\left
( 3(x
_
i-
\mu
_
x)
^
2 - r
_
i
^
2
\right
)
\\
Q
_{
12
}
&
=
&
\sum
_
i m
_
i 3(x
_
i-
\mu
_
x)(y
_
i-
\mu
_
y)
\\
Q
_{
13
}
&
=
&
\sum
_
i m
_
i 3(x
_
i-
\mu
_
x)(z
_
i-
\mu
_
z)
\\
~
&
&
\nonumber\\
Q
_{
21
}
&
=
&
\sum
_
i m
_
i 3(y
_
i-
\mu
_
y)(x
_
i-
\mu
_
x)
\\
Q
_{
22
}
&
=
&
\sum
_
i m
_
i
\left
( 3(y
_
i-
\mu
_
y)
^
2 - r
_
i
^
2
\right
)
\\
Q
_{
23
}
&
=
&
\sum
_
i m
_
i 3(y
_
i-
\mu
_
y)(z
_
i-
\mu
_
z)
\\
~
&
&
\nonumber\\
Q
_{
31
}
&
=
&
\sum
_
i m
_
i 3(z
_
i-
\mu
_
z)(x
_
i-
\mu
_
x)
\\
Q
_{
32
}
&
=
&
\sum
_
i m
_
i 3(z
_
i-
\mu
_
z)(y
_
i-
\mu
_
y)
\\
Q
_{
33
}
&
=
&
\sum
_
i m
_
i
\left
( 3(z
_
i-
\mu
_
z)
^
2 - r
_
i
^
2
\right
)
\end{eqnarray}
Note that this matrix is symmetric and traceless (
$
Q
_{
11
}
+
Q
_{
22
}
+
Q
_{
33
}
=
0
$
), so only
$
5
$
components need to be
computed.
\\
\begin{equation}
f
_
u (
\vv
) =
\frac
{
G
}{
|
\vv
|
^
3
}
v
_
u.
\end{equation}
\pagebreak
We define two quantities to simplify the notations: the total mass
$
M
$
of the set of point masses and
the centre of
mass
$
\muu
=(
\mu
_
x,
\mu
_
y,
\mu
_
z
)
$
of this set
:
The potential created by this distribution of mass on a point at position
$
\rr
=(
r
_
x,r
_
y,r
_
z
)
$
from
the centre of
mass
$
\muu
$
is then
:
\begin{equation}
M =
\sum
_{
i=1
}^
N m
_
i,
\qquad
\muu
=
\frac
{
1
}{
M
}
\sum
_{
i=1
}^
N m
_
i
\p
{
i
}
.
\phi
(
\rr
) = -
\frac
{
G
}{
|
\rr
|
}
M +
\frac
{
1
}{
2
}
\frac
{
G
}{
|
\rr
|
^
5
}
\sum
_{
\alpha
,
\beta
}
r
_
\alpha
r
_
\beta
Q
_{
\alpha\beta
}
\end{equation}
Taking the gradient of this expression to get the acceleration, we obtain:
We can now expand the functions
$
f
_
u
$
around the vector linking the particle to the centre of mass
$
\rr
-
\muu
$
:
\begin{eqnarray}
a
_
u(
\rr
)
&
\approx
&
\sum
_
i m
_
i f
_
u(
\rr
-
\muu
)
\\
&
&
+
\sum
_
i m
_
i (
\p
{
i
}
-
\muu
)
\cdot
\nabla
f
_
u(
\rr
-
\muu
)
\\
&
&
+
\frac
{
1
}{
2
}
\sum
_
i m
_
i (
\p
{
i
}
-
\muu
)
\cdot
\nabla
^
2 f
_
u(
\rr
-
\muu
)
\cdot
(
\p
{
i
}
-
\muu
).
\end{eqnarray}
The first order term is identically zero and can hence be dropped. Re-arranging some of the terms, introducing the
vector
$
\dd
=
\rr
-
\muu
=(
d
_
x,d
_
y,d
_
z
)
$
and using the fact that the Hessian matrix of
$
f
_
u
$
is symmetric, we get:
\begin{eqnarray}
a
_
u(
\rr
)
&
=
&
Mf
_
u(
\dd
)
\\
&
&
+
\frac
{
1
}{
2
}
\sum
_
i m
_
i
\p
{
i
}
\cdot
\nabla
^
2f
_
u(
\dd
)
\cdot
\p
{
i
}
\\
&
&
+
\frac
{
1
}{
2
}
M
\muu\cdot
\nabla
^
2f
_
u(
\dd
)
\cdot
\muu
\\
&
&
-
\sum
_
i m
_
i
\p
{
i
}
\cdot
\nabla
^
2f
_
u(
\dd
)
\cdot
\muu
\\
&
=
&
Mf
_
u(
\dd
)
\\
&
&
+
\frac
{
1
}{
2
}
\sum
_
i m
_
i
\p
{
i
}
\cdot
\nabla
^
2f
_
u(
\dd
)
\cdot
\p
{
i
}
\\
&
&
-
\frac
{
1
}{
2
}
M
\muu\cdot
\nabla
^
2f
_
u(
\dd
)
\cdot
\muu
\end{eqnarray}
The gradient of
$
f
_
u
$
reads
\begin{equation}
\nabla
f
_
u(
\dd
) =
\frac
{
-3Gd
_
u
}{
|
\dd
|
^
5
}
\dd
+
\frac
{
G
}{
|
\dd
|
^
3
}
\hat
{
\mathbf
{
e
}}_
u,
-
\nabla
_
\gamma\phi
(
\rr
)= -
\frac
{
GM
}{
|
\rr
|
^
3
}
r
_
\gamma
+
\frac
{
1
}{
2
}
G
\sum
_{
\alpha
,
\beta
}
\left
(
\frac
{
\delta
_{
\alpha\gamma
}
r
_
\beta
}{
|
\rr
|
^
5
}
+
\frac
{
\delta
_{
\gamma\beta
}
r
_
\alpha
}{
|
\rr
|
^
5
}
-5
\frac
{
r
_
\alpha
r
_
\beta
r
_
\gamma
}{
|
\rr
|
^
7
}
\right
)Q
_{
\alpha\beta
}
\end{equation}
with
$
\hat
{
\mathbf
{
e
}}_
u
$
a unit vector along the
$
u
$
-axis. The different components of the Hessian matrix then read
:
Writing this explicitly for each coordinate (using the symmetry of
$
\overline
{
\overline
{
Q
}}$
), we get
:
\begin{eqnarray}
\nabla
^
2f
_
u(
\dd
)
_{
uu
}
&
=
&
\frac
{
15Gd
_
u
^
3
}{
|
\dd
|
^
7
}
-
\frac
{
9Gd
_
u
}{
|
\dd
|
^
5
}
\\
\nabla
^
2f
_
u(
\dd
)
_{
uv
}
&
=
&
\frac
{
15Gd
_
u
^
2d
_
v
}{
|
\dd
|
^
7
}
-
\frac
{
3Gd
_
v
}{
|
\dd
|
^
5
}
\\
\nabla
^
2f
_
u(
\dd
)
_{
vv
}
&
=
&
\frac
{
15Gd
_
u
^
2d
_
v
}{
|
\dd
|
^
7
}
-
\frac
{
3Gd
_
u
}{
|
\dd
|
^
5
}
\\
\nabla
^
2f
_
u(
\dd
)
_{
vw
}
&
=
&
\frac
{
15Gd
_
ud
_
vd
_
w
}{
|
\dd
|
^
7
}
a
_
x
&
=
&
-
\frac
{
Gr
_
x
}{
|
\rr
|
^
3
}
M +
\frac
{
1
}{
2
}
\frac
{
G
}{
|
\rr
|
^
5
}
\left
[2r_x Q_{11} + 2r_yQ_{12} + 2r_z Q_{13}\right]
-
\frac
{
5
}{
2
}
\frac
{
G r
_
x
}{
|
\rr
|
^
7
}
\Xi
,
\\
a
_
y
&
=
&
-
\frac
{
Gr
_
y
}{
|
\rr
|
^
3
}
M +
\frac
{
1
}{
2
}
\frac
{
G
}{
|
\rr
|
^
5
}
\left
[2r_x Q_{21} + 2r_yQ_{22} + 2r_z Q_{23}\right]
-
\frac
{
5
}{
2
}
\frac
{
G r
_
y
}{
|
\rr
|
^
7
}
\Xi
,
\\
a
_
y
&
=
&
-
\frac
{
Gr
_
z
}{
|
\rr
|
^
3
}
M +
\frac
{
1
}{
2
}
\frac
{
G
}{
|
\rr
|
^
5
}
\left
[2r_x Q_{31} + 2r_yQ_{32} + 2r_z Q_{33}\right]
-
\frac
{
5
}{
2
}
\frac
{
G r
_
z
}{
|
\rr
|
^
7
}
\Xi
,
\\
\end{eqnarray}
with the common coefficient
$
\Xi
$
defined as:
Keeping only the
$
xx
$
term of the Hessian matrix in the Taylor expansion and introducing
$
\sigma
_{
xx
}^
2
=
\sum
_
im
_
ip
_{
i,x
}^
2
$
, we get for the accelerations:
\begin{equation*}
\Xi
=
\rr\cdot
(
\overline
{
\overline
{
Q
}}
\cdot
\rr
) = r
_
x
^
2Q
_{
11
}
+ r
_
y
^
2Q
_{
22
}
+ r
_
z
^
2Q
_{
33
}
+ 2r
_
xr
_
yQ
_{
12
}
+
2r
_
xr
_
zQ
_{
13
}
+ 2r
_
yr
_
zQ
_{
23
}
\end{equation*}
\begin{equation}
a
_
u(
\rr
) = Mf
_
u(
\rr
-
\muu
) +
\frac
{
1
}{
2
}
(
\sigma
_{
xx
}^
2 - M
\mu
_
x
^
2)
\nabla
^
2f
_
u(
\dd
)
_{
vv
}
,
\end{equation}
with both
$
v
=
u
$
or
$
v
\neq
u
$
. Expanding this coordinate by coordinate, we get:
\begin{eqnarray}
a
_
x(
\rr
)
&
=
&
M
\frac
{
G
}{
|
\dd
|
^
3
}
d
_
x +
\frac
{
1
}{
2
}
\left
(
\sigma
_{
xx
}^
2 - M
\mu
_
x
^
2
\right
)
\left
(
\frac
{
15Gd
_
x
^
3
}{
|
\dd
|
^
7
}
-
\frac
{
9Gd
_
x
}{
|
\dd
|
^
5
}
\right
)
\\
a
_
y(
\rr
)
&
=
&
M
\frac
{
G
}{
|
\dd
|
^
3
}
d
_
y +
\frac
{
1
}{
2
}
\left
(
\sigma
_{
xx
}^
2 -
M
\mu
_
x
^
2
\right
)
\left
(
\frac
{
15Gd
_
xd
_
y
^
2
}{
|
\dd
|
^
7
}
-
\frac
{
3Gd
_
x
}{
|
\dd
|
^
5
}
\right
)
\\
a
_
z(
\rr
)
&
=
&
M
\frac
{
G
}{
|
\dd
|
^
3
}
d
_
z +
\frac
{
1
}{
2
}
\left
(
\sigma
_{
xx
}^
2 -
M
\mu
_
x
^
2
\right
)
\left
(
\frac
{
15Gd
_
xd
_
z
^
2
}{
|
\dd
|
^
7
}
-
\frac
{
3Gd
_
x
}{
|
\dd
|
^
5
}
\right
)
\end{eqnarray}
%
% Let's consider the gravitational acceleration $\acc=(a_x,a_y,a_z)$ that a set of point masses at position
% $\p{i}=(p_{i,x}, p_{i,y}, p_{i,z})$ with masses $m_i$ generate at position $\rr=(r_x, r_y, r_z)$:
%
% \begin{equation}
% \acc(\rr) = \sum_i \frac{Gm_i}{|\rr - \p{i}|^3}(\rr - \p{i})
% \end{equation}
%
% This expression can split in one expression for each of the three spatial coordinates $u=x,y,z$:
%
% \begin{equation}
% a_u (\rr) = \sum_i \frac{m_i G}{|\rr-\p{i}|^3} ( r_u - p_{i,u}) = \sum_i m_i f_u(\rr - \p{i}),
% \end{equation}
%
% with
%
% \begin{equation}
% f_u (\vv) = \frac{G}{|\vv|^3} v_u.
% \end{equation}
%
% We define two quantities to simplify the notations: the total mass $M$ of the set of point masses and the centre of
% mass $\muu=(\mu_x, \mu_y, \mu_z)$ of this set:
%
% \begin{equation}
% M = \sum_{i=1}^N m_i, \qquad \muu = \frac{1}{M} \sum_{i=1}^N m_i\p{i}.
% \end{equation}
%
%
% We can now expand the functions $f_u$ around the vector linking the particle to the centre of mass $\rr-\muu$:
%
% \begin{eqnarray}
% a_u(\rr) &\approx& \sum_i m_i f_u(\rr - \muu) \\
% & & + \sum_i m_i (\p{i}-\muu) \cdot \nabla f_u(\rr - \muu)\\
% & & + \frac{1}{2}\sum_i m_i (\p{i}-\muu)\cdot \nabla^2 f_u(\rr-\muu)\cdot (\p{i} - \muu).
% \end{eqnarray}
%
% The first order term is identically zero and can hence be dropped. Re-arranging some of the terms, introducing the
% vector $\dd=\rr-\muu=(d_x,d_y,d_z)$ and using the fact that the Hessian matrix of $f_u$ is symmetric, we get:
% \begin{eqnarray}
% a_u(\rr) &=& Mf_u(\dd) \\
% & & + \frac{1}{2} \sum_i m_i \p{i}\cdot \nabla^2f_u(\dd)\cdot \p{i} \\
% & & + \frac{1}{2} M \muu\cdot \nabla^2f_u(\dd)\cdot \muu \\
% & & - \sum_i m_i \p{i}\cdot \nabla^2f_u(\dd)\cdot \muu \\
% &=& Mf_u(\dd) \\
% & & + \frac{1}{2} \sum_i m_i \p{i}\cdot \nabla^2f_u(\dd)\cdot \p{i} \\
% & &- \frac{1}{2} M \muu\cdot \nabla^2f_u(\dd)\cdot \muu
% \end{eqnarray}
%
% The gradient of $f_u$ reads
% \begin{equation}
% \nabla f_u(\dd) = \frac{-3Gd_u}{|\dd|^5}\dd + \frac{G}{|\dd|^3}\hat{\mathbf{e}}_u,
% \end{equation}
%
% with $\hat{\mathbf{e}}_u$ a unit vector along the $u$-axis. The different components of the Hessian matrix then read:
%
% \begin{eqnarray}
% \nabla^2f_u(\dd)_{uu} &=& \frac{15Gd_u^3}{|\dd|^7} - \frac{9Gd_u}{|\dd|^5} \\
% \nabla^2f_u(\dd)_{uv} &=& \frac{15Gd_u^2d_v}{|\dd|^7} - \frac{3Gd_v}{|\dd|^5}\\
% \nabla^2f_u(\dd)_{vv} &=& \frac{15Gd_u^2d_v}{|\dd|^7} - \frac{3Gd_u}{|\dd|^5} \\
% \nabla^2f_u(\dd)_{vw} &=& \frac{15Gd_ud_vd_w}{|\dd|^7}
% \end{eqnarray}
%
% Keeping only the $xx$ term of the Hessian matrix in the Taylor expansion and introducing $\sigma_{xx}^2 =
% \sum_im_ip_{i,x}^2$, we get for the accelerations:
%
% \begin{equation}
% a_u(\rr) = Mf_u(\rr-\muu) + \frac{1}{2}(\sigma_{xx}^2 - M\mu_x^2)\nabla^2f_u(\dd)_{vv},
% \end{equation}
%
% with both $v=u$ or $v\neq u$. Expanding this coordinate by coordinate, we get:
%
% \begin{eqnarray}
% a_x(\rr) &=& M\frac{G}{|\dd|^3} d_x + \frac{1}{2}\left(\sigma_{xx}^2 - M\mu_x^2\right)\left(\frac{15Gd_x^3}{|\dd|^7} -
% \frac{9Gd_x}{|\dd|^5}\right)\\
% a_y(\rr) &=& M\frac{G}{|\dd|^3} d_y + \frac{1}{2}\left(\sigma_{xx}^2 -
% M\mu_x^2\right)\left(\frac{15Gd_xd_y^2}{|\dd|^7}-
% \frac{3Gd_x}{|\dd|^5}\right) \\
% a_z(\rr) &=& M\frac{G}{|\dd|^3} d_z + \frac{1}{2}\left(\sigma_{xx}^2 -
% M\mu_x^2\right)\left(\frac{15Gd_xd_z^2}{|\dd|^7}-
% \frac{3Gd_x}{|\dd|^5}\right)
% \end{eqnarray}
%
% The quantities $M$, $\muu$ and $\sigma_{xx}^2$ can be constructed on-the-fly by adding particles to the previous total.
The quantities
$
M
$
,
$
\muu
$
and
$
\sigma
_{
xx
}^
2
$
can be constructed on-the-fly by adding particles to the previous total.
%-------------------------------------------------------------------------------------------------
% \begin{equation}
% \phi(\rr) = - \sum_{i=1}^N \frac{Gm_i}{|\rr - \p{i}|} = - \sum_{i=1}^N m_i f(\rr - \p{i}),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment