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
87b94377
Commit
87b94377
authored
Aug 11, 2016
by
Matthieu Schaller
Browse files
Add git-SHA to the plotting scripts
parent
c8e7984f
Changes
5
Hide whitespace changes
Inline
Side-by-side
examples/GreshoVortex/gresho.yml
View file @
87b94377
...
...
@@ -17,7 +17,7 @@ TimeIntegration:
Snapshots
:
basename
:
gresho
# Common part of the name of output files
time_first
:
0.
# Time of the first output (in internal units)
delta_time
:
1e-
2
# Time difference between consecutive outputs (in internal units)
delta_time
:
1e-
1
# Time difference between consecutive outputs (in internal units)
# Parameters governing the conserved quantities statistics
Statistics
:
...
...
examples/GreshoVortex/plotSolution.py
View file @
87b94377
...
...
@@ -41,9 +41,9 @@ params = {'axes.labelsize': 10,
'xtick.labelsize'
:
10
,
'ytick.labelsize'
:
10
,
'text.usetex'
:
True
,
'figure.figsize'
:
(
6.45
,
6.45
),
'figure.subplot.left'
:
0.0
7
,
'figure.subplot.right'
:
0.9
85
,
'figure.figsize'
:
(
9.90
,
6.45
),
'figure.subplot.left'
:
0.0
45
,
'figure.subplot.right'
:
0.9
9
,
'figure.subplot.bottom'
:
0.05
,
'figure.subplot.top'
:
0.99
,
'figure.subplot.wspace'
:
0.15
,
...
...
@@ -87,6 +87,9 @@ boxSize = sim["/Header"].attrs["BoxSize"][0]
time
=
sim
[
"/Header"
].
attrs
[
"Time"
][
0
]
scheme
=
sim
[
"/HydroScheme"
].
attrs
[
"Scheme"
]
kernel
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel function"
]
neighbours
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel target N_ngb"
]
eta
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel eta"
]
git
=
sim
[
"Code"
].
attrs
[
"Git Revision"
]
pos
=
sim
[
"/PartType0/Coordinates"
][:,:]
x
=
pos
[:,
0
]
-
boxSize
/
2
...
...
@@ -96,60 +99,100 @@ r = sqrt(x**2 + y**2)
v_r
=
(
x
*
vel
[:,
0
]
+
y
*
vel
[:,
1
])
/
r
v_phi
=
(
-
y
*
vel
[:,
0
]
+
x
*
vel
[:,
1
])
/
r
v_norm
=
sqrt
(
vel
[:,
0
]
**
2
+
vel
[:,
1
]
**
2
)
rho
=
sim
[
"/PartType0/Density"
][:]
u
=
sim
[
"/PartType0/InternalEnergy"
][:]
S
=
sim
[
"/PartType0/Entropy"
][:]
P
=
sim
[
"/PartType0/Pressure"
][:]
# Plot the interesting quantities
figure
()
# Internal energy profile --------------------------------
subplot
(
221
)
plot
(
r
,
u
,
'x'
,
color
=
'r'
)
plot
(
solution_r
,
solution_u
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
# Azimuthal velocity profile -----------------------------
subplot
(
231
)
plot
(
r
,
v_phi
,
'.'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
solution_r
,
solution_v_phi
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
plot
([
0.2
,
0.2
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
plot
([
0.4
,
0.4
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
xlabel
(
"${
\\
rm{Radius}}~r$"
,
labelpad
=
0
)
ylabel
(
"${
\\
rm{Internal~Energy}}~u$"
,
labelpad
=
0
)
text
(
0.02
,
8.97
,
"%s"
%
scheme
,
fontsize
=
9
,
backgroundcolor
=
"w"
)
text
(
0.02
,
8.82
,
"%s"
%
kernel
,
fontsize
=
9
,
backgroundcolor
=
"w"
)
ylabel
(
"${
\\
rm{Azimuthal~velocity}}~v_
\\
phi$"
,
labelpad
=
0
)
xlim
(
0
,
R_max
)
ylim
(
7.3
,
9.1
)
ylim
(
-
0.1
,
1.2
)
#
Azimuthal veloc
ity profile -----------------------------
subplot
(
2
2
2
)
#
Radial dens
ity profile -----------------------------
---
subplot
(
2
3
2
)
plot
(
r
,
v_phi
,
'
x
'
,
color
=
'r'
)
plot
(
solution_r
,
solution_
v_phi
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
plot
(
r
,
rho
,
'
.
'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
solution_r
,
solution_
rho
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
plot
([
0.2
,
0.2
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
plot
([
0.4
,
0.4
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
xlabel
(
"${
\\
rm{Radius}}~r$"
,
labelpad
=
0
)
ylabel
(
"${
\\
rm{
Azimuthal~velocity}}~v_
\\
phi
$"
,
labelpad
=
0
)
ylabel
(
"${
\\
rm{
Density}}~
\\
rho
$"
,
labelpad
=
0
)
xlim
(
0
,
R_max
)
ylim
(
-
0.
1
,
1.2
)
text
(
0.75
,
1
,
"$t=%.3f$"
%
(
time
),
ha
=
"right"
,
va
=
"bottom"
)
ylim
(
rho0
-
0.
3
,
rho0
+
0.3
)
#yticks([-0.2, -0.1, 0., 0.1, 0.2]
)
# Radial
velocity
profile --------------------------------
subplot
(
2
2
3
)
# Radial
pressure
profile --------------------------------
subplot
(
2
3
3
)
plot
(
r
,
v_r
,
'
x
'
,
color
=
'r'
,
label
=
"$
\\
texttt{SWIFT}$"
)
plot
(
solution_r
,
solution_
v_r
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
,
label
=
"$
\\
rm{Solution}$"
)
plot
(
r
,
P
,
'
.
'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
solution_r
,
solution_
P
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
plot
([
0.2
,
0.2
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
plot
([
0.4
,
0.4
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
xlabel
(
"${
\\
rm{Radius}}~r$"
,
labelpad
=
0
)
ylabel
(
"${
\\
rm{Radial~velocity}}~v_r$"
,
labelpad
=-
5
)
legend
(
loc
=
"upper right"
,
fontsize
=
10
,
frameon
=
False
,
numpoints
=
1
,
handletextpad
=
0.1
,
handlelength
=
1.2
)
ylabel
(
"${
\\
rm{Pressure}}~P$"
,
labelpad
=
0
)
xlim
(
0
,
R_max
)
ylim
(
4.9
+
P0
,
P0
+
6.1
)
# Internal energy profile --------------------------------
subplot
(
234
)
plot
(
r
,
u
,
'.'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
solution_r
,
solution_u
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
plot
([
0.2
,
0.2
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
plot
([
0.4
,
0.4
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
xlabel
(
"${
\\
rm{Radius}}~r$"
,
labelpad
=
0
)
ylabel
(
"${
\\
rm{Internal~Energy}}~u$"
,
labelpad
=
0
)
xlim
(
0
,
R_max
)
ylim
(
-
0.2
,
0.2
)
yticks
([
-
0.2
,
-
0.1
,
0.
,
0.1
,
0.2
])
ylim
(
7.3
,
9.1
)
# Radial entropy profile --------------------------------
subplot
(
235
)
plot
(
r
,
S
,
'.'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
solution_r
,
solution_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
plot
([
0.2
,
0.2
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
plot
([
0.4
,
0.4
],
[
-
100
,
100
],
':'
,
color
=
'k'
,
alpha
=
0.4
,
lw
=
1.2
)
xlabel
(
"${
\\
rm{Radius}}~r$"
,
labelpad
=
0
)
ylabel
(
"${
\\
rm{Entropy}}~S$"
,
labelpad
=
0
)
xlim
(
0
,
R_max
)
ylim
(
4.9
+
P0
,
P0
+
6.1
)
# Image --------------------------------------------------
subplot
(
224
)
scatter
(
pos
[:,
0
],
pos
[:,
1
],
c
=
v_norm
,
cmap
=
"PuBu"
,
edgecolors
=
'face'
,
s
=
4
,
vmin
=
0
,
vmax
=
1
)
text
(
0.95
,
0.95
,
"$|v|$"
,
ha
=
"right"
,
va
=
"top"
)
xlim
(
0
,
1
)
ylim
(
0
,
1
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$y$"
,
labelpad
=
0
)
savefig
(
"greshoVortex_%03d.png"
%
snap
)
#subplot(234)
#scatter(pos[:,0], pos[:,1], c=v_norm, cmap="PuBu", edgecolors='face', s=4, vmin=0, vmax=1)
#text(0.95, 0.95, "$|v|$", ha="right", va="top")
#xlim(0,1)
#ylim(0,1)
#xlabel("$x$", labelpad=0)
#ylabel("$y$", labelpad=0)
# Information -------------------------------------
subplot
(
236
,
frameon
=
False
)
text
(
-
0.49
,
0.9
,
"Gresho-Chan vortex with $
\\
gamma=%.3f$ at $t=%.2f$"
%
(
gas_gamma
,
time
),
fontsize
=
10
)
text
(
-
0.49
,
0.8
,
"Background $
\\
rho_0=%.3f$"
%
rho0
,
fontsize
=
10
)
text
(
-
0.49
,
0.7
,
"Background $P_0=%.3f$"
%
P0
,
fontsize
=
10
)
plot
([
-
0.49
,
0.1
],
[
0.62
,
0.62
],
'k-'
,
lw
=
1
)
text
(
-
0.49
,
0.5
,
"$
\\
textsc{Swift}$ %s"
%
git
,
fontsize
=
10
)
text
(
-
0.49
,
0.4
,
scheme
,
fontsize
=
10
)
text
(
-
0.49
,
0.3
,
kernel
,
fontsize
=
10
)
text
(
-
0.49
,
0.2
,
"$%.2f$ neighbours ($
\\
eta=%.3f$)"
%
(
neighbours
,
eta
),
fontsize
=
10
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0
,
1
)
xticks
([])
yticks
([])
savefig
(
"GreshoVortex.png"
,
dpi
=
200
)
examples/GreshoVortex/run.sh
View file @
87b94377
...
...
@@ -16,10 +16,4 @@ fi
../swift
-s
-t
1 gresho.yml
# Plot the solution
for
i
in
{
0..100
}
do
python plotSolution.py
$i
done
# Make a movie
mencoder mf://
*
.png
-mf
w
=
645:h
=
645:fps
=
12:type
=
png
-ovc
lavc
-lavcopts
vcodec
=
mpeg4:mbd
=
2:trell
-oac
copy
-o
gresho.avi
python plotSolution.py 11
examples/SodShock_1D/plotSolution.py
View file @
87b94377
...
...
@@ -76,6 +76,7 @@ scheme = sim["/HydroScheme"].attrs["Scheme"]
kernel
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel function"
]
neighbours
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel target N_ngb"
]
eta
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel eta"
]
git
=
sim
[
"Code"
].
attrs
[
"Git Revision"
]
x
=
sim
[
"/PartType0/Coordinates"
][:,
0
]
v
=
sim
[
"/PartType0/Velocities"
][:,
0
]
...
...
@@ -226,46 +227,46 @@ figure()
# Velocity profile --------------------------------
subplot
(
231
)
plot
(
x
,
v
,
'.'
,
color
=
'r'
)
plot
(
x
,
v
,
'.'
,
color
=
'r'
,
ms
=
4.0
)
plot
(
x_s
,
v_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$v_x$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Velocity}}~
v_x$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
-
0.1
,
0.95
)
# Density profile --------------------------------
subplot
(
232
)
plot
(
x
,
rho
,
'.'
,
color
=
'r'
)
plot
(
x
,
rho
,
'.'
,
color
=
'r'
,
ms
=
4.0
)
plot
(
x_s
,
rho_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$
\\
rho$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Density}}~
\\
rho$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0.05
,
1.1
)
# Pressure profile --------------------------------
subplot
(
233
)
plot
(
x
,
P
,
'.'
,
color
=
'r'
)
plot
(
x
,
P
,
'.'
,
color
=
'r'
,
ms
=
4.0
)
plot
(
x_s
,
P_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$P$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Pressure}}~
P$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0.01
,
1.1
)
# Internal energy profile -------------------------
subplot
(
234
)
plot
(
x
,
u
,
'.'
,
color
=
'r'
)
plot
(
x
,
u
,
'.'
,
color
=
'r'
,
ms
=
4.0
)
plot
(
x_s
,
u_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$u$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Internal~Energy}}~
u$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0.8
,
2.2
)
# Entropy profile ---------------------------------
subplot
(
235
)
plot
(
x
,
S
,
'.'
,
color
=
'r'
)
plot
(
x
,
S
,
'.'
,
color
=
'r'
,
ms
=
4.0
)
plot
(
x_s
,
s_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$S$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Entropy}}~
S$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0.8
,
3.8
)
...
...
@@ -276,9 +277,10 @@ text(-0.49, 0.9, "Sod shock with $\\gamma=%.3f$ in 1D at $t=%.2f$"%(gas_gamma,t
text
(
-
0.49
,
0.8
,
"Left:~~ $(P_L,
\\
rho_L, v_L) = (%.3f, %.3f, %.3f)$"
%
(
P_L
,
rho_L
,
v_L
),
fontsize
=
10
)
text
(
-
0.49
,
0.7
,
"Right: $(P_R,
\\
rho_R, v_R) = (%.3f, %.3f, %.3f)$"
%
(
P_R
,
rho_R
,
v_R
),
fontsize
=
10
)
plot
([
-
0.49
,
0.1
],
[
0.62
,
0.62
],
'k-'
,
lw
=
1
)
text
(
-
0.49
,
0.5
,
scheme
,
fontsize
=
10
)
text
(
-
0.49
,
0.4
,
kernel
,
fontsize
=
10
)
text
(
-
0.49
,
0.3
,
"$%.2f$ neighbours ($
\\
eta=%.3f$)"
%
(
neighbours
,
eta
),
fontsize
=
10
)
text
(
-
0.49
,
0.5
,
"$
\\
textsc{Swift}$ %s"
%
git
,
fontsize
=
10
)
text
(
-
0.49
,
0.4
,
scheme
,
fontsize
=
10
)
text
(
-
0.49
,
0.3
,
kernel
,
fontsize
=
10
)
text
(
-
0.49
,
0.2
,
"$%.2f$ neighbours ($
\\
eta=%.3f$)"
%
(
neighbours
,
eta
),
fontsize
=
10
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0
,
1
)
xticks
([])
...
...
examples/SodShock_2D/plotSolution.py
View file @
87b94377
...
...
@@ -76,6 +76,7 @@ scheme = sim["/HydroScheme"].attrs["Scheme"]
kernel
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel function"
]
neighbours
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel target N_ngb"
]
eta
=
sim
[
"/HydroScheme"
].
attrs
[
"Kernel eta"
]
git
=
sim
[
"Code"
].
attrs
[
"Git Revision"
]
x
=
sim
[
"/PartType0/Coordinates"
][:,
0
]
v
=
sim
[
"/PartType0/Velocities"
][:,
0
]
...
...
@@ -226,46 +227,46 @@ figure()
# Velocity profile --------------------------------
subplot
(
231
)
plot
(
x
,
v
,
'.'
,
color
=
'r'
)
plot
(
x
,
v
,
'.'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
x_s
,
v_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$v_x$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Velocity}}~
v_x$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
-
0.1
,
0.95
)
# Density profile --------------------------------
subplot
(
232
)
plot
(
x
,
rho
,
'.'
,
color
=
'r'
)
plot
(
x
,
rho
,
'.'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
x_s
,
rho_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$
\\
rho$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Density}}~
\\
rho$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0.05
,
1.1
)
# Pressure profile --------------------------------
subplot
(
233
)
plot
(
x
,
P
,
'.'
,
color
=
'r'
)
plot
(
x
,
P
,
'.'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
x_s
,
P_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$P$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Pressure}}~
P$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0.01
,
1.1
)
# Internal energy profile -------------------------
subplot
(
234
)
plot
(
x
,
u
,
'.'
,
color
=
'r'
)
plot
(
x
,
u
,
'.'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
x_s
,
u_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$u$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Internal~Energy}}~
u$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0.8
,
2.2
)
# Entropy profile ---------------------------------
subplot
(
235
)
plot
(
x
,
S
,
'.'
,
color
=
'r'
)
plot
(
x
,
S
,
'.'
,
color
=
'r'
,
ms
=
0.5
)
plot
(
x_s
,
s_s
,
'--'
,
color
=
'k'
,
alpha
=
0.8
,
lw
=
1.2
)
xlabel
(
"$x$"
,
labelpad
=
0
)
ylabel
(
"$S$"
,
labelpad
=
0
)
xlabel
(
"$
{
\\
rm{Position}}~
x$"
,
labelpad
=
0
)
ylabel
(
"$
{
\\
rm{Entropy}}~
S$"
,
labelpad
=
0
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0.8
,
3.8
)
...
...
@@ -276,9 +277,10 @@ text(-0.49, 0.9, "Sod shock with $\\gamma=%.3f$ in 2D at $t=%.2f$"%(gas_gamma,t
text
(
-
0.49
,
0.8
,
"Left:~~ $(P_L,
\\
rho_L, v_L) = (%.3f, %.3f, %.3f)$"
%
(
P_L
,
rho_L
,
v_L
),
fontsize
=
10
)
text
(
-
0.49
,
0.7
,
"Right: $(P_R,
\\
rho_R, v_R) = (%.3f, %.3f, %.3f)$"
%
(
P_R
,
rho_R
,
v_R
),
fontsize
=
10
)
plot
([
-
0.49
,
0.1
],
[
0.62
,
0.62
],
'k-'
,
lw
=
1
)
text
(
-
0.49
,
0.5
,
scheme
,
fontsize
=
10
)
text
(
-
0.49
,
0.4
,
kernel
,
fontsize
=
10
)
text
(
-
0.49
,
0.3
,
"$%.2f$ neighbours ($
\\
eta=%.3f$)"
%
(
neighbours
,
eta
),
fontsize
=
10
)
text
(
-
0.49
,
0.5
,
"$
\\
textsc{Swift}$ %s"
%
git
,
fontsize
=
10
)
text
(
-
0.49
,
0.4
,
scheme
,
fontsize
=
10
)
text
(
-
0.49
,
0.3
,
kernel
,
fontsize
=
10
)
text
(
-
0.49
,
0.2
,
"$%.2f$ neighbours ($
\\
eta=%.3f$)"
%
(
neighbours
,
eta
),
fontsize
=
10
)
xlim
(
-
0.5
,
0.5
)
ylim
(
0
,
1
)
xticks
([])
...
...
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