Final Version of Phd Thesis
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:ns5="http://www.iki.fi/pav/software/textext/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="15.05625cm"
|
||||
height="10.80527cm"
|
||||
viewBox="0 0 150.5625 108.0527"
|
||||
height="10.42527cm"
|
||||
viewBox="0 0 150.5625 104.25269"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="1.0.2 (1.0.2+r75+1)"
|
||||
sodipodi:docname="nT2_vs_z.svg">
|
||||
inkscape:version="1.1.1 (1:1.1+202109281949+c3084ef5ed)"
|
||||
sodipodi:docname="nT2_vs_z.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:ns5="http://www.iki.fi/pav/software/textext/">
|
||||
<defs
|
||||
id="defs2">
|
||||
<marker
|
||||
@@ -835,9 +835,9 @@
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.0912826"
|
||||
inkscape:cx="193.31118"
|
||||
inkscape:cy="257.1266"
|
||||
inkscape:zoom="1.5433067"
|
||||
inkscape:cx="314.90825"
|
||||
inkscape:cy="259.50773"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
@@ -851,7 +851,8 @@
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:object-nodes="false"
|
||||
inkscape:snap-others="true">
|
||||
inkscape:snap-others="true"
|
||||
inkscape:pagecheckerboard="0">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid10"
|
||||
@@ -865,7 +866,6 @@
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
@@ -877,7 +877,7 @@
|
||||
<g
|
||||
id="g1630"
|
||||
inkscape:label="nT2_vs_z"
|
||||
transform="matrix(0.35277777,0,0,-0.35277777,2.0119796,106.64454)">
|
||||
transform="matrix(0.35277777,0,0,-0.35277777,2.0119796,105.05703)">
|
||||
<path
|
||||
d="M 0,0 H 417.99686 V 255.58611 H 0 Z"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
@@ -1787,7 +1787,7 @@
|
||||
inkscape:label="Magnets">
|
||||
<g
|
||||
id="g1571"
|
||||
transform="matrix(1.1416781,0,0,0.99957359,0.45569414,-71.773662)"
|
||||
transform="matrix(1.1416781,0,0,0.99957359,0.45569414,-73.361163)"
|
||||
style="display:inline;stroke-width:0.0998446;stroke-miterlimit:4;stroke-dasharray:none">
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.0998446;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
@@ -1805,7 +1805,7 @@
|
||||
id="path1566" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.352778,0,0,0.352778,79.087416,8.7237234)"
|
||||
transform="matrix(0.352778,0,0,0.352778,79.087416,7.1362233)"
|
||||
ns5:version="1.3.0"
|
||||
ns5:texconverter="pdflatex"
|
||||
ns5:pdfconverter="inkscape"
|
||||
@@ -1920,7 +1920,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.352778,0,0,0.352778,120.63081,8.8451231)"
|
||||
transform="matrix(0.352778,0,0,0.352778,120.63081,7.257623)"
|
||||
ns5:version="1.3.0"
|
||||
ns5:texconverter="pdflatex"
|
||||
ns5:pdfconverter="inkscape"
|
||||
@@ -1979,7 +1979,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.352778,0,0,0.352778,131.84438,8.8451231)"
|
||||
transform="matrix(0.352778,0,0,0.352778,131.84438,7.257623)"
|
||||
ns5:version="1.3.0"
|
||||
ns5:texconverter="pdflatex"
|
||||
ns5:pdfconverter="inkscape"
|
||||
@@ -2038,7 +2038,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.352778,0,0,0.352778,41.664929,8.8451231)"
|
||||
transform="matrix(0.352778,0,0,0.352778,41.664929,7.257623)"
|
||||
ns5:version="1.3.0"
|
||||
ns5:texconverter="pdflatex"
|
||||
ns5:pdfconverter="inkscape"
|
||||
@@ -2097,7 +2097,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.352778,0,0,0.352778,30.312587,8.8451231)"
|
||||
transform="matrix(0.352778,0,0,0.352778,30.312587,7.257623)"
|
||||
ns5:version="1.3.0"
|
||||
ns5:texconverter="pdflatex"
|
||||
ns5:pdfconverter="inkscape"
|
||||
@@ -2156,7 +2156,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.352778,0,0,0.352778,4.2575112,8.7044309)"
|
||||
transform="matrix(0.352778,0,0,0.352778,4.2575112,7.1169308)"
|
||||
ns5:version="1.3.0"
|
||||
ns5:texconverter="pdflatex"
|
||||
ns5:pdfconverter="inkscape"
|
||||
|
||||
|
Before Width: | Height: | Size: 636 KiB After Width: | Height: | Size: 636 KiB |
@@ -25,7 +25,7 @@ import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
rearwall_bin = homebase + "/src/grpic/boundaries_3d/bin/grpic-Linux-amd64-corei7-rearwallPotential"
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
thesis_path = "/home/jonas/Dropbox/Apps/Overleaf/jkellererRearrange"
|
||||
output_folder = thesis_path+"/fig/Chapter2_KATRIN/ElectricBackgroundField/"
|
||||
|
||||
radius = 45
|
||||
@@ -102,7 +102,7 @@ plt.savefig(output_folder+"potential_2d.pdf",bbox_inches='tight')
|
||||
plt.show()
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, (ax0, ax1, ax2) = plt.subplots(3, 1, figsize=(width, height*1.4))
|
||||
fig, (ax0, ax1, ax2) = plt.subplots(3, 1, figsize=(width, height*1.35))
|
||||
|
||||
ax2.set_xlabel(r'Distance to rear wall $z$ (cm)')
|
||||
ax2.plot(z, Er[20],"--", label=r'$E_r$', color=colors[1])
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:ns2="http://www.iki.fi/pav/software/textext/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="10.05625cm"
|
||||
height="6.3052702cm"
|
||||
viewBox="0 0 100.5625 63.052701"
|
||||
height="5cm"
|
||||
viewBox="0 0 100.5625 49.999999"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="1.0.2 (1.0.2+r75+1)"
|
||||
sodipodi:docname="classical_diffusion.svg">
|
||||
inkscape:version="1.1.1 (1:1.1+202109281949+c3084ef5ed)"
|
||||
sodipodi:docname="classical_diffusion.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:ns2="http://www.iki.fi/pav/software/textext/">
|
||||
<defs
|
||||
id="defs2">
|
||||
<marker
|
||||
@@ -310,9 +310,9 @@
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.0912826"
|
||||
inkscape:cx="319.10897"
|
||||
inkscape:cy="134.29698"
|
||||
inkscape:zoom="1.5433067"
|
||||
inkscape:cx="149.67861"
|
||||
inkscape:cy="119.5485"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
@@ -320,15 +320,16 @@
|
||||
units="in"
|
||||
showguides="true"
|
||||
inkscape:guide-bbox="true"
|
||||
inkscape:window-width="960"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1016"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:object-nodes="false"
|
||||
inkscape:snap-object-midpoints="true"
|
||||
inkscape:snap-others="false"
|
||||
inkscape:snap-nodes="true">
|
||||
inkscape:snap-nodes="true"
|
||||
inkscape:pagecheckerboard="0">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid10"
|
||||
@@ -342,7 +343,6 @@
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
@@ -354,45 +354,45 @@
|
||||
style="fill:#ffffff;stroke:#000000;stroke-width:0.265;stroke-miterlimit:4;stroke-dasharray:none;marker-mid:url(#Arrow1Lend)"
|
||||
id="path57"
|
||||
cx="35.630543"
|
||||
cy="35.454159"
|
||||
cy="29.104153"
|
||||
r="19.269457" />
|
||||
<circle
|
||||
style="fill:#ffffff;stroke:#000000;stroke-width:0.265;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;marker-mid:url(#marker1286)"
|
||||
id="path59"
|
||||
cx="70.908318"
|
||||
cy="35.454159"
|
||||
cy="29.104153"
|
||||
r="20.180738" />
|
||||
<rect
|
||||
style="fill:#ffffff;stroke:none;stroke-width:0.258776;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0"
|
||||
style="fill:#ffffff;stroke:none;stroke-width:0.235351;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0"
|
||||
id="rect973"
|
||||
width="50.921474"
|
||||
height="36.11261"
|
||||
height="29.870396"
|
||||
x="31.336472"
|
||||
y="26.737869" />
|
||||
y="20.387863" />
|
||||
<ellipse
|
||||
style="fill:#000000;stroke:none;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0"
|
||||
id="path1419"
|
||||
cx="35.590469"
|
||||
cy="35.477444"
|
||||
cy="29.127438"
|
||||
rx="0.83667672"
|
||||
ry="0.87102157" />
|
||||
<ellipse
|
||||
style="fill:#000000;stroke:none;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0"
|
||||
id="path1419-6"
|
||||
cx="70.908318"
|
||||
cy="35.454159"
|
||||
cy="29.104153"
|
||||
rx="0.83667672"
|
||||
ry="0.87102157" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="M 35.630547,35.454162 45.508324,19.931939"
|
||||
d="M 35.630547,29.104158 45.508324,13.581935"
|
||||
id="path1453" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="M 70.908324,35.454162 61.030547,18.520829"
|
||||
d="M 70.908324,29.104158 61.030547,12.170825"
|
||||
id="path1455" />
|
||||
<g
|
||||
transform="matrix(0.352778,0,0,0.352778,37.046916,23.737545)"
|
||||
transform="matrix(0.352778,0,0,0.352778,37.046916,17.387541)"
|
||||
ns2:version="1.3.0"
|
||||
ns2:texconverter="pdflatex"
|
||||
ns2:pdfconverter="inkscape"
|
||||
@@ -471,7 +471,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.352778,0,0,0.352778,66.826398,24.925785)"
|
||||
transform="matrix(0.352778,0,0,0.352778,66.826398,18.575781)"
|
||||
ns2:version="1.3.0"
|
||||
ns2:texconverter="pdflatex"
|
||||
ns2:pdfconverter="inkscape"
|
||||
@@ -553,51 +553,51 @@
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
x="49.50499"
|
||||
y="9.9312401"
|
||||
y="3.5812411"
|
||||
id="text1673"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan1671"
|
||||
x="49.50499"
|
||||
y="9.9312401"
|
||||
y="3.5812411"
|
||||
style="stroke-width:0.264583">Collision</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
x="40.022667"
|
||||
y="43.643322"
|
||||
y="37.293316"
|
||||
id="text1673-1"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan1671-8"
|
||||
x="40.022667"
|
||||
y="43.643322"
|
||||
y="37.293316"
|
||||
style="stroke-width:0.264583">Guiding Center</tspan></text>
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker2221)"
|
||||
d="M 56.725693,14.686784 52.56388,22.754162"
|
||||
d="M 56.725693,8.3367812 52.56388,16.404158"
|
||||
id="path1699"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.265;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker1944)"
|
||||
d="M 41.274991,39.687495 37.041657,36.865272"
|
||||
d="M 41.274991,33.337491 37.041657,30.515268"
|
||||
id="path1701" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.265;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker1954)"
|
||||
d="m 66.67499,39.687495 2.822223,-2.822223"
|
||||
d="m 66.67499,33.337491 2.822223,-2.822223"
|
||||
id="path1703" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
x="9.0924807"
|
||||
y="9.8996811"
|
||||
y="3.5496821"
|
||||
id="text1673-1-7"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan1671-8-9"
|
||||
x="9.0924807"
|
||||
y="9.8996811"
|
||||
y="3.5496821"
|
||||
style="stroke-width:0.264583">Particle Trajectory</tspan></text>
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker2221-2)"
|
||||
d="m 14.806182,14.057769 5.823911,6.07288"
|
||||
d="m 14.806182,7.7077665 5.823911,6.0728785"
|
||||
id="path1699-2"
|
||||
sodipodi:nodetypes="cc" />
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
@@ -24,7 +24,7 @@ import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
thesis_path = "/home/jonas/Dropbox/Apps/Overleaf/jkellererWithoutPaper"
|
||||
output_folder = thesis_path+"/fig/Chapter3_Classification/LengthScales/"
|
||||
|
||||
density_min = 1E0
|
||||
@@ -93,7 +93,7 @@ prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*2.3))
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*2.2))
|
||||
|
||||
ax.plot(densities, debyle_length2, '-', label=r'$\lambda_D$',color=colors[0])
|
||||
ax.plot(densities, inertial_length_electron, '-.', color=colors[1],label=r'$l_{skin}$')
|
||||
@@ -155,7 +155,7 @@ ax2.set_yticklabels(yticks.values())
|
||||
|
||||
|
||||
|
||||
#plt.savefig(output_folder+"comparison_l.pdf",bbox_inches='tight')
|
||||
plt.savefig(output_folder+"comparison_l.pdf",bbox_inches='tight')
|
||||
|
||||
plt.show()
|
||||
|
||||
|
||||
@@ -213,14 +213,14 @@ ax.text(1.2E7, f_synchrotron_electrons*1, '$f_R$', fontsize=8)
|
||||
ax.text(1.2E7, frequency_leaving_neutrals*0.7, '$v_{T_2} / L$', fontsize=8)
|
||||
|
||||
plt.savefig(output_folder+"comparison_t.pdf",bbox_inches='tight')
|
||||
#fig.savefig(output_folder+"comparison_t.pdf")
|
||||
fig.savefig(output_folder+"comparison_t.pdf")
|
||||
plt.show()
|
||||
|
||||
print("Plasma Frequency, e- (ne=1E3): {:e} (rad)".format(plasma_frequency[densities>1E3][0]*(2*np.pi)))
|
||||
print("Plasme Frequency, e- (ne=1E6): {:e} (rad)".format(plasma_frequency[densities>1E6][0]*(2*np.pi)))
|
||||
print("Plasma Frequency, e- (ne=1E6): {:e} (rad)".format(plasma_frequency[densities>1E6][0]*(2*np.pi)))
|
||||
|
||||
print("Plasma Frequency, T3+ (ne=1E3): {:e} (rad)".format(plasma_frequency_ion[densities>1E3][0]*(2*np.pi)))
|
||||
print("Plasme Frequency, T3+ (ne=1E6): {:e} (rad)".format(plasma_frequency_ion[densities>1E6][0]*(2*np.pi)))
|
||||
print("Plasma Frequency, T3+ (ne=1E6): {:e} (rad)".format(plasma_frequency_ion[densities>1E6][0]*(2*np.pi)))
|
||||
|
||||
|
||||
print("H+ ion ternary rate: {}".format(ion_ternary_rate))
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="15.05625cm"
|
||||
height="9.305274cm"
|
||||
viewBox="0 0 150.5625 93.052739"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="1.0.2 (1.0.2+r75+1)"
|
||||
sodipodi:docname="SimulationSketch.svg">
|
||||
inkscape:version="1.1 (1:1.1+202105261517+ce6663b3b7)"
|
||||
sodipodi:docname="SimulationSketch.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<defs
|
||||
id="defs2">
|
||||
<marker
|
||||
@@ -445,8 +445,8 @@
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="2.1825653"
|
||||
inkscape:cx="305.17798"
|
||||
inkscape:cy="150.84479"
|
||||
inkscape:cx="304.91642"
|
||||
inkscape:cy="187.62325"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-rotation="0"
|
||||
@@ -462,7 +462,8 @@
|
||||
inkscape:object-nodes="true"
|
||||
inkscape:snap-object-midpoints="true"
|
||||
inkscape:snap-nodes="true"
|
||||
inkscape:snap-intersection-paths="false">
|
||||
inkscape:snap-intersection-paths="false"
|
||||
inkscape:pagecheckerboard="0">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid10"
|
||||
@@ -494,7 +495,7 @@
|
||||
id="tspan2893"
|
||||
x="105.4724"
|
||||
y="6.5298657"
|
||||
style="stroke-width:0.264583">pick particle</tspan></text>
|
||||
style="stroke-width:0.264583">Pick particle</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
@@ -502,10 +503,10 @@
|
||||
y="30.488316"
|
||||
id="text2899"><tspan
|
||||
sodipodi:role="line"
|
||||
x="116.75334"
|
||||
x="116.75333"
|
||||
y="30.488316"
|
||||
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
|
||||
id="tspan5122">roll distance </tspan></text>
|
||||
id="tspan5122">Roll distance </tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
@@ -516,7 +517,7 @@
|
||||
id="tspan2979"
|
||||
x="111.36005"
|
||||
y="44.331512"
|
||||
style="stroke-width:0.264583">move</tspan></text>
|
||||
style="stroke-width:0.264583">Move</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
@@ -527,7 +528,7 @@
|
||||
id="tspan2983"
|
||||
x="116.33649"
|
||||
y="68.84082"
|
||||
style="text-align:center;text-anchor:middle;stroke-width:0.264583">roll/do</tspan><tspan
|
||||
style="text-align:center;text-anchor:middle;stroke-width:0.264583">Roll/do</tspan><tspan
|
||||
sodipodi:role="line"
|
||||
x="116.33649"
|
||||
y="73.250534"
|
||||
@@ -543,7 +544,7 @@
|
||||
id="tspan5996"
|
||||
x="59.483707"
|
||||
y="6.6321483"
|
||||
style="stroke-width:0.264583">Particle Queue</tspan></text>
|
||||
style="stroke-width:0.264583">Particle queue</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
@@ -559,7 +560,7 @@
|
||||
x="72.307098"
|
||||
y="33.016407"
|
||||
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
|
||||
id="tspan6014">Densities</tspan></text>
|
||||
id="tspan6014">densities</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
@@ -586,7 +587,7 @@
|
||||
x="116.32959"
|
||||
y="87.974632"
|
||||
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
|
||||
id="tspan6012">Products</tspan></text>
|
||||
id="tspan6012">products</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
@@ -679,7 +680,7 @@
|
||||
x="28.408312"
|
||||
y="11.391171"
|
||||
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
|
||||
id="tspan140">Injection</tspan></text>
|
||||
id="tspan140">injection</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
|
||||
@@ -690,7 +691,7 @@
|
||||
x="116.23225"
|
||||
y="55.704231"
|
||||
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
|
||||
id="tspan180">check</tspan><tspan
|
||||
id="tspan180">Check</tspan><tspan
|
||||
sodipodi:role="line"
|
||||
x="116.23225"
|
||||
y="60.113945"
|
||||
@@ -798,7 +799,7 @@
|
||||
x="72.341835"
|
||||
y="55.461727"
|
||||
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
|
||||
id="tspan2660-6">terminate</tspan><tspan
|
||||
id="tspan2660-6">Terminate</tspan><tspan
|
||||
sodipodi:role="line"
|
||||
x="72.341835"
|
||||
y="59.871441"
|
||||
|
||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
@@ -1,72 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
import precalculation.functions.importDataFromKarl as karl
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter4_KARL/ZeroElectricFieldCase/current.pdf"
|
||||
|
||||
karl_data_dir = "/home/jonas/new_workspace/Coding/KARL/calcs/thesis_plots/sim_data/sim1/"
|
||||
karl_filename = "df_part_e.csv"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
data = karl.KarlParticleData(karl_data_dir, karl_filename)
|
||||
current_distribution_center = data.getCurrentDistribution(z_pos=3)
|
||||
current_distribution_rw = data.getCurrentDistribution(z_pos=-3)
|
||||
|
||||
energies = current_distribution_center['Emid']
|
||||
current_center = current_distribution_center['j'] *1E-4
|
||||
current_center_neg = current_center * -1
|
||||
|
||||
current_rw = current_distribution_rw['j'] * 1E-4
|
||||
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height))
|
||||
|
||||
#data.plotDensityDistribution(fig=fig, ax=ax)
|
||||
|
||||
ax.plot(energies, current_rw, label='Rearwall')
|
||||
|
||||
ax.plot(energies, current_center, '--', label='Center pos.')
|
||||
#ax.plot(energies, current_center_neg, 'o', label='Center neg.')
|
||||
|
||||
|
||||
|
||||
ax.set_xscale('log')
|
||||
ax.set_yscale('log')
|
||||
ax.set_xlabel(r'Energy $E$ [eV]')
|
||||
ax.set_ylabel(r'Current distribution $\frac{\partial j}{\partial E}$ $\left[ \frac{1}{cm^2 eV}\right]$')
|
||||
|
||||
ax.legend()
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -1,65 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
import precalculation.functions.importDataFromKarl as karl
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter4_KARL/ZeroElectricFieldCase/density.pdf"
|
||||
|
||||
karl_data_dir = "/home/jonas/new_workspace/Coding/KARL/calcs/thesis_plots/sim_data/sim1/"
|
||||
karl_filename = "df_part_e.csv"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
data = karl.KarlParticleData(karl_data_dir, karl_filename)
|
||||
density_distribution_center = data.getDensityDistribution(z_pos=5)
|
||||
density_distribution_rw = data.getDensityDistribution(z_pos=-3)
|
||||
|
||||
energies = density_distribution_center['Emid']
|
||||
densities_center = density_distribution_center['n'] * 1E-6
|
||||
densities_rw = density_distribution_rw['n'] * 1E-6
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height))
|
||||
|
||||
#data.plotDensityDistribution(fig=fig, ax=ax)
|
||||
|
||||
ax.plot(energies, densities_center, label='Center')
|
||||
ax.plot(energies, densities_rw, label='Rearwall')
|
||||
|
||||
ax.set_xscale('log')
|
||||
ax.set_yscale('log')
|
||||
ax.set_xlabel(r'Energy $E$ [eV]')
|
||||
ax.set_ylabel(r'Diff. energy spectrum $\frac{\partial n}{\partial E}$ $\left[ \frac{1}{cm^3 eV}\right]$')
|
||||
|
||||
ax.legend()
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -1,76 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
import precalculation.functions.importDataFromKarl as karl
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter4_KARL/ZeroElectricFieldCase/density_vs_z.pdf"
|
||||
|
||||
karl_data_dir = "/home/jonas/new_workspace/Coding/KARL/calcs/thesis_plots/sim_data/sim1/"
|
||||
karl_filename = "df_part_e.csv"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
data = karl.KarlParticleData(karl_data_dir, karl_filename)
|
||||
|
||||
z_positions = np.arange(-3, 11, 1)
|
||||
densities_e_total = np.zeros_like(z_positions)
|
||||
densities_e_beta = np.zeros_like(z_positions)
|
||||
densities_e_thermal = np.zeros_like(z_positions)
|
||||
densities_e_nonthermal = np.zeros_like(z_positions)
|
||||
|
||||
for i,z_pos in enumerate(z_positions):
|
||||
densities_e_total[i] = data.getDensity(z_pos=z_pos).value * 1E-6
|
||||
densities_e_nonthermal[i] = data.getDensity(z_pos=z_pos,energy_range=[1E-1, 1E1]).value * 1E-6
|
||||
densities_e_beta[i] = data.getDensity(z_pos=z_pos, energy_range=[1E1, 20E4]).value * 1E-6
|
||||
densities_e_thermal[i] = data.getDensity(z_pos=z_pos, energy_range=[0., 1E-1]).value * 1E-6
|
||||
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height))
|
||||
|
||||
|
||||
#ax.plot(z_positions+3, densities_e_total, label=r'e$^-$')
|
||||
ax.plot(z_positions+3, densities_e_thermal, label=r'e$^- \left(E<0.1\,eV\right)$')
|
||||
ax.plot(z_positions+3, densities_e_nonthermal, label=r'e$^- (0.1\, eV < E < 10\,eV)$')
|
||||
ax.plot(z_positions+3, densities_e_beta, label=r'e$^- (E>10\,eV)$')
|
||||
|
||||
|
||||
ax.plot(z_positions+3, densities_e_thermal*0.5,'--', label=r'T$^+_n$')
|
||||
|
||||
|
||||
ax.set_yscale('log')
|
||||
ax.set_xlabel(r'Position $z$ [m]')
|
||||
ax.set_ylabel(r'Density $n$ $\left[ \frac{1}{cm^3}\right]$')
|
||||
#ax.set_ylim((1E4, 1E8))
|
||||
ax.legend(loc="lower right")
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -1,72 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
import precalculation.functions.importDataFromKarl as karl
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter4_KARL/ZeroElectricFieldCase/energy_density.pdf"
|
||||
|
||||
karl_data_dir = "/home/jonas/new_workspace/Coding/KARL/calcs/thesis_plots/sim_data/sim1/"
|
||||
karl_filename = "df_part_e.csv"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
data = karl.KarlParticleData(karl_data_dir, karl_filename)
|
||||
energy_distribution_center = data.getEnergyDensityDistribution(z_pos=3)
|
||||
energy_distribution_rw = data.getEnergyDensityDistribution(z_pos=-3)
|
||||
|
||||
energies = energy_distribution_center['Emid']
|
||||
energy_center = energy_distribution_center['energydensity'] * 1E-6
|
||||
|
||||
energy_rw = energy_distribution_rw['energydensity'] * 1E-6
|
||||
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height))
|
||||
|
||||
#data.plotDensityDistribution(fig=fig, ax=ax)
|
||||
|
||||
ax.plot(energies, energy_center, '-', label='Center')
|
||||
ax.plot(energies, energy_rw, '--', label='Rearwall')
|
||||
|
||||
|
||||
#ax.plot(energies, current_center_neg, 'o', label='Center neg.')
|
||||
|
||||
|
||||
|
||||
ax.set_xscale('log')
|
||||
ax.set_yscale('log')
|
||||
ax.set_xlabel(r'Energy $E$ [eV]')
|
||||
ax.set_ylabel(r'Energy density distribution $u$ $\left[ \frac{eV}{cm^3 eV}\right]$')
|
||||
|
||||
ax.legend()
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
|
After Width: | Height: | Size: 202 KiB |
@@ -1,70 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter5_ACRONYM/ParticleInjection/pml_far_field.pdf"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
zs = np.arange(0,30)
|
||||
|
||||
|
||||
|
||||
d_inj0 = np.ones_like(zs)
|
||||
d_inj0[0] = -10
|
||||
d_inj0[1] = -5
|
||||
|
||||
d_inj2_rel = np.ones_like(zs)/d_inj0
|
||||
d_inj5_rel = 2*np.ones_like(zs)/d_inj0
|
||||
d_inj8_rel = 3*np.ones_like(zs)/d_inj0
|
||||
d_inj10_rel = 4*np.ones_like(zs)/d_inj0
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, (ax0, ax1) = plt.subplots(2, 1, figsize=(width, height))
|
||||
|
||||
ax0.set_ylabel(r'Electric field $E$ $\left[\frac{V}{cm}\right]$')
|
||||
|
||||
|
||||
ax0.plot(zs, d_inj0, '-', label=r'$d_{inj} = 0 dx$')
|
||||
ax0.legend()
|
||||
|
||||
ax1.plot(zs, d_inj2_rel, '--', label=r'$d_{inj} = 2 dx$', color=colors[1])
|
||||
ax1.plot(zs, d_inj5_rel, '-.', label=r'$d_{inj} = 5 dx$', color=colors[2])
|
||||
ax1.plot(zs, d_inj8_rel, ':', label=r'$d_{inj} = 8 dx$', color=colors[3])
|
||||
ax1.plot(zs, d_inj10_rel, linestyle=(0, (3, 5, 1, 5, 1, 5)), label=r'$d_{inj} = 10 dx$', color=colors[4])
|
||||
|
||||
ax1.set_xlabel(r'Position $z$ [dx]')
|
||||
ax1.set_ylabel(r'rel. electric field $\frac{E}{E_0}$')
|
||||
|
||||
ax1.legend()
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -1,59 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter5_ACRONYM/ParticleInjection/pml_near_field.pdf"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
zs = np.arange(180,200)
|
||||
d_inj0 = np.log(200-zs)*1
|
||||
d_inj2 = np.log(200-zs)*2
|
||||
d_inj5 = np.log(200-zs)*3
|
||||
d_inj8 = np.log(200-zs)*4
|
||||
d_inj10 = np.log(200-zs)*5
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height))
|
||||
|
||||
ax.set_ylabel(r'Electric field $E$ $\left[\frac{V}{cm}\right]$')
|
||||
ax.set_xlabel(r'Position $z - z_0$ [dx]')
|
||||
|
||||
ax.plot(zs - 200, d_inj0, '-', label=r'$d_{inj} = 0 dx$')
|
||||
ax.plot(zs - 200, d_inj2, '--', label=r'$d_{inj} = 2 dx$')
|
||||
ax.plot(zs - 200, d_inj5, '-.', label=r'$d_{inj} = 5 dx$')
|
||||
ax.plot(zs - 200, d_inj8, ':', label=r'$d_{inj} = 8 dx$')
|
||||
ax.plot(zs - 200, d_inj10, linestyle=(0, (3, 5, 1, 5, 1, 5)), label=r'$d_{inj} = 10 dx$')
|
||||
|
||||
ax.legend()
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -1,88 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter5_ACRONYM/Validation/DebyeSheath/longitudinal_comparison.pdf"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
z = np.linspace(0,1,20)
|
||||
|
||||
Ez_r0 = np.zeros_like(z)
|
||||
Ez_r0[0] = -1
|
||||
Ez_r0[19] = -1
|
||||
|
||||
Ez_2r = np.zeros_like(z)
|
||||
Ez_2r[0] = -0.5
|
||||
Ez_2r[19] = -0.5
|
||||
|
||||
Ez_dxhalf = Ez_r0 * 1.2
|
||||
Ez_dxhalf[1] = -0.25
|
||||
Ez_dxhalf[18] = -0.25
|
||||
|
||||
U_r0 = np.ones_like(z)
|
||||
U_r0[0] = 0
|
||||
U_r0[19] = 0
|
||||
|
||||
U_2r = np.ones_like(z)*0.5
|
||||
U_2r[0] = 0
|
||||
U_2r[19] = 0
|
||||
|
||||
U_dxhalf = np.ones_like(z)*0.7
|
||||
U_dxhalf[0] = 0
|
||||
U_dxhalf[19] = 0
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, (ax0, ax1) = plt.subplots(2, 1, figsize=(width, height))
|
||||
|
||||
ax0.set_ylabel(r'Electric field $E_r$ $\left[\frac{V}{cm} \right]$')
|
||||
#ax0.set_xlabel(r'Relative radius $\frac{r}{R}$')
|
||||
ax0.set_xticklabels([])
|
||||
|
||||
ax0.plot(z, Ez_r0, '-', label=r'$R=r_0$')
|
||||
ax0.plot(z, Ez_2r, '--', label=r'$R=2 r_0$')
|
||||
ax0.plot(z, Ez_dxhalf, '-.', label=r'$dx = \frac{dx_0}{2}$')
|
||||
|
||||
|
||||
|
||||
ax1.plot(z, U_r0, '-', label=r'$R=r_0$')
|
||||
ax1.plot(z, U_2r, '--', label=r'$R=2 r_0$')
|
||||
ax1.plot(z, U_dxhalf, '-.', label=r'$dx = \frac{dx_0}{2}$')
|
||||
|
||||
ax1.set_ylabel(r'Potential $U$ $\left[V \right]$')
|
||||
ax1.set_xlabel(r'Relative position $\frac{z}{L}$')
|
||||
|
||||
|
||||
|
||||
ax0.legend()
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -1,86 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter5_ACRONYM/Validation/DebyeSheath/radial_comparison.pdf"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
radius = np.linspace(-1,1,20)
|
||||
|
||||
Er_r0 = np.zeros_like(radius)
|
||||
Er_r0[0] = -1
|
||||
Er_r0[19] = -1
|
||||
|
||||
Er_2r = np.zeros_like(radius)
|
||||
Er_2r[0] = -0.5
|
||||
Er_2r[19] = -0.5
|
||||
|
||||
Er_dxhalf = Er_r0 * 1.2
|
||||
|
||||
U_r0 = np.ones_like(radius)
|
||||
U_r0[0] = 0
|
||||
U_r0[19] = 0
|
||||
|
||||
U_2r = np.ones_like(radius)*0.5
|
||||
U_2r[0] = 0
|
||||
U_2r[19] = 0
|
||||
|
||||
U_dxhalf = np.ones_like(radius)*0.7
|
||||
U_dxhalf[0] = 0
|
||||
U_dxhalf[19] = 0
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, (ax0, ax1) = plt.subplots(2, 1, figsize=(width, height))
|
||||
|
||||
ax0.set_ylabel(r'Electric field $E_r$ $\left[\frac{V}{cm} \right]$')
|
||||
#ax0.set_xlabel(r'Relative radius $\frac{r}{R}$')
|
||||
ax0.set_xticklabels([])
|
||||
|
||||
ax0.plot(radius, Er_r0, '-', label=r'$R=r_0$')
|
||||
ax0.plot(radius, Er_2r, '--', label=r'$R=2 r_0$')
|
||||
ax0.plot(radius, Er_dxhalf, '-.', label=r'$dx = \frac{dx_0}{2}$')
|
||||
ax0.set_xlim((0,1))
|
||||
|
||||
|
||||
ax1.plot(radius, U_r0, '-', label=r'$R=r_0$')
|
||||
ax1.plot(radius, U_2r, '--', label=r'$R=2 r_0$')
|
||||
ax1.plot(radius, U_dxhalf, '-.', label=r'$dx = \frac{dx_0}{2}$')
|
||||
|
||||
ax1.set_ylabel(r'Potential $U$ $\left[V \right]$')
|
||||
ax1.set_xlabel(r'Relative radius $\frac{r}{R}$')
|
||||
ax1.set_xlim((0,1))
|
||||
|
||||
|
||||
ax0.legend()
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -1,70 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter6_Results/FullKatrinSimulation/backgrounds.pdf"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
z_neutrals = np.array([0, 3, 8, 13])
|
||||
neutrals = np.array([1E11, 1E12, 1E15, 1E12])
|
||||
|
||||
z_current_left = np.array([0,3,8])
|
||||
current_left = np.array([-19, -20, -30])
|
||||
|
||||
z_current_right = np.array([8, 13])
|
||||
current_right = np.array([30, 20])
|
||||
|
||||
z_thermal = np.array([0, 3, 8, 13])
|
||||
thermal_e = np.array([1E5, 3E5, 1E6, 3E5])
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, (ax0, ax1, ax2) = plt.subplots(3, 1, figsize=(width, height*1.5))
|
||||
|
||||
ax0.plot(z_neutrals, neutrals, '-', label=r'no Bg.', color=colors[0])
|
||||
ax0.set_ylabel(r'Gas density $n_{T_2}$ $\left[ \frac{1}{cm^3} \right]$')
|
||||
ax0.set_yscale('log')
|
||||
|
||||
ax1.plot(z_current_left, current_left, color=colors[1])
|
||||
ax1.plot(z_current_right, current_right, color=colors[1])
|
||||
ax1.hlines(0, 0, 13, linestyles='--', color='tab:gray')
|
||||
ax1.vlines(8, -30, 30, linestyles=':', color=colors[1])
|
||||
|
||||
|
||||
ax1.set_ylabel(r'Current $j_{z}$ $\left[ \frac{statC}{cm^2 s} \right]$')
|
||||
|
||||
ax2.plot(z_thermal, thermal_e, color=colors[2])
|
||||
ax2.set_ylabel(r'Density $n_{e,th}$ $\left[ \frac{1}{cm^3} \right]$')
|
||||
|
||||
ax2.set_xlabel(r'Position $z$ [m]')
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -1,60 +0,0 @@
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
from astropy import units as u
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
|
||||
|
||||
# Input
|
||||
# =======================
|
||||
|
||||
thesis_path = "/home/jonas/new_workspace/notes/katrin-plasma/docs/phd/jkellerer"
|
||||
output_file = thesis_path+"/fig/Chapter6_Results/RearwallSection/thermalElectrons/potential_comparison.pdf"
|
||||
|
||||
# Calculation
|
||||
# =======================
|
||||
|
||||
z = np.array([0, 1, 2, 3, 4, 5, 6, 7])
|
||||
pot_th = np.array([0, -1, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5])*1E-6
|
||||
pot_th_B = np.array([0, -1, 0., 0., 0., 0., 0., 0.])*1E-6
|
||||
pot_th_B_j = np.array([0, -2, 0., 0., 0., 0., 0., 0.])*1E-6
|
||||
pot_th_B_j_E = np.array([-3, -3, -1, -2, 0., 0., 0., 0.])*1E-6
|
||||
pot_th_B_E = np.array([-1, -1, -1, 0., 0., 0., 0., 0.])*1E-6
|
||||
|
||||
|
||||
# Plot
|
||||
# =======================
|
||||
|
||||
pltStd.setRcParams()
|
||||
prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height))
|
||||
|
||||
ax.plot(z, pot_th, '-', label=r'no Bg.')
|
||||
ax.plot(z, pot_th_B, '--', label=r'B')
|
||||
ax.plot(z, pot_th_B_j, '-.', label=r'B, j')
|
||||
ax.plot(z, pot_th_B_j_E, ':', label=r'B, j, E')
|
||||
ax.plot(z, pot_th_B_E, linestyle=(0, (3, 5, 1, 5, 1, 5)), label=r'B, E')
|
||||
|
||||
ax.legend()
|
||||
|
||||
ax.set_ylabel(r'Potential $U$ $\left[V \right]$')
|
||||
ax.set_xlabel(r'Position z [cm]')
|
||||
|
||||
plt.show()
|
||||
|
||||
fig.savefig(output_file,bbox_inches='tight')
|
||||
@@ -0,0 +1,43 @@
|
||||
import os
|
||||
import sys
|
||||
from astropy import constants as const
|
||||
from astropy import units as u
|
||||
import numpy as np
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
homebase = os.getenv('HOMEBASE')
|
||||
if homebase == None:
|
||||
homebase = "/home/jonas/new_workspace/Coding/ACRONYM/acronym"
|
||||
|
||||
includes = homebase + "/src/grpic/boundaries_3d"
|
||||
|
||||
sys.path.append(includes)
|
||||
|
||||
import precalculation.functions.plasmaFunctions as plasmaFuncs
|
||||
import analysis.plotDataFromAcronym.plot_standards as pltStd
|
||||
import analysis.plotDataFromAcronym.calculation.import_dings as impding
|
||||
import precalculation.functions.simulationParameter as simulationParameter
|
||||
import precalculation.functions.importDataFromKarl as importDataFromKarl
|
||||
|
||||
ne_max = 3E6
|
||||
|
||||
sim_params = simulationParameter.SimulationParameter(
|
||||
n_e = ne_max/(u.cm**3), nz_min = 48,\
|
||||
partition_x=6, partition_y=6, ppc=20,\
|
||||
h_wgts=1600*u.cm, pups=3.3E5, T=80*u.K, B=2.5*u.T)
|
||||
|
||||
omega_pe = plasmaFuncs.plasmaFrequency(ne_max*u.cm**(-3))
|
||||
lambda_d = plasmaFuncs.debyeLength(ne_max*u.cm**(-3), 80*u.K)
|
||||
|
||||
print(sim_params)
|
||||
|
||||
print("Rounded nodes: ")
|
||||
print(np.ceil(sim_params.nodes))
|
||||
print("Rounded cpus: ")
|
||||
print(np.ceil(sim_params.nodes)*48)
|
||||
|
||||
print("Omega_pe: {:e}".format(omega_pe))
|
||||
print("lambda_d: {:e}".format(lambda_d))
|
||||
|
||||
|
||||