backup save

This commit is contained in:
Jonas Kellerer
2021-03-04 11:47:03 +01:00
parent e7c298983e
commit 9e5c2f068f
241 changed files with 2354544 additions and 319 deletions
@@ -0,0 +1,603 @@
<?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">
<defs
id="defs2">
<marker
style="overflow:visible;"
id="marker7355"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path7353" />
</marker>
<marker
style="overflow:visible;"
id="marker7210"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path7208" />
</marker>
<marker
style="overflow:visible;"
id="marker7071"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path7069" />
</marker>
<marker
style="overflow:visible;"
id="marker6938"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path6936" />
</marker>
<marker
style="overflow:visible;"
id="marker6811"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path6809" />
</marker>
<marker
style="overflow:visible;"
id="marker6690"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path6688" />
</marker>
<marker
style="overflow:visible;"
id="marker6575"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path6573" />
</marker>
<marker
style="overflow:visible;"
id="marker6324"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path6322" />
</marker>
<marker
style="overflow:visible;"
id="marker6219"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path6217" />
</marker>
<marker
style="overflow:visible;"
id="marker4966"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true"
inkscape:collect="always">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;fill:#000000;fill-opacity:1"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path4964" />
</marker>
<marker
style="overflow:visible"
id="marker1892"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="StopL"
inkscape:isstock="true">
<path
transform="scale(0.8)"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,5.65 V -5.65"
id="path1890" />
</marker>
<marker
style="overflow:visible"
id="marker1795"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="StopL"
inkscape:isstock="true">
<path
transform="scale(0.8)"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,5.65 V -5.65"
id="path1793" />
</marker>
<marker
style="overflow:visible"
id="StopL"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="StopL"
inkscape:isstock="true">
<path
transform="scale(0.8)"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,5.65 V -5.65"
id="path1033" />
</marker>
<marker
inkscape:stockid="DistanceStart"
orient="auto"
refY="0"
refX="0"
id="DistanceStart"
style="overflow:visible"
inkscape:isstock="true">
<g
id="g2300"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1">
<path
id="path2306"
d="M 0,0 H 2"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.15;stroke-linecap:square;stroke-opacity:1" />
<path
id="path2302"
d="M 0,0 13,4 9,0 13,-4 Z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-opacity:1" />
<path
id="path2304"
d="M 0,-4 V 40"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:square;stroke-opacity:1" />
</g>
</marker>
<marker
style="overflow:visible"
id="Arrow1Mstart"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow1Mstart"
inkscape:isstock="true">
<path
transform="matrix(0.4,0,0,0.4,4,0)"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
id="path870" />
</marker>
<marker
style="overflow:visible"
id="Arrow1Mend"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true">
<path
transform="matrix(-0.4,0,0,-0.4,-4,0)"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
id="path873" />
</marker>
<marker
style="overflow:visible"
id="Arrow1Lend"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow1Lend"
inkscape:isstock="true">
<path
transform="matrix(-0.8,0,0,-0.8,-10,0)"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
id="path867" />
</marker>
<marker
style="overflow:visible"
id="Arrow1Lstart"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow1Lstart"
inkscape:isstock="true">
<path
transform="matrix(0.8,0,0,0.8,10,0)"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
id="path864" />
</marker>
<marker
style="overflow:visible"
id="StopL-3"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="StopL"
inkscape:isstock="true">
<path
transform="scale(0.8)"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,5.65 V -5.65"
id="path1033-6" />
</marker>
<marker
style="overflow:visible"
id="marker1511-7"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="StopL"
inkscape:isstock="true">
<path
transform="scale(0.8)"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
d="M 0,5.65 V -5.65"
id="path1509-5" />
</marker>
<g
id="id-4f6a8945-0223-4924-9cd2-f07ebc4b6452-7">
<symbol
overflow="visible"
id="id-bc917053-9706-4147-88e3-f2ef4eb538d0-5">
<path
style="stroke:none;stroke-width:0"
d=""
id="id-4719275f-4b53-4cec-a270-718eab7da33a-3" />
</symbol>
<symbol
overflow="visible"
id="id-64815ca4-e886-49ea-b0c2-7930a4b550b0-5">
<path
style="stroke:none;stroke-width:0"
d="m 3.5625,-2.90625 c 0.40625,1.046875 0.890625,2.5625 1.046875,2.796875 0.15625,0.21875 0.25,0.21875 0.53125,0.21875 h 0.21875 c 0.09375,-0.015625 0.109375,-0.0625 0.109375,-0.09375 0,-0.03125 -0.03125,-0.0625 -0.0625,-0.09375 C 5.3125,-0.1875 5.25,-0.34375 5.1875,-0.53125 L 3.15625,-6.203125 c -0.21875,-0.578125 -0.75,-0.71875 -1.21875,-0.71875 -0.046875,0 -0.1875,0 -0.1875,0.109375 0,0.078125 0.078125,0.109375 0.09375,0.109375 C 2.171875,-6.65625 2.25,-6.59375 2.5,-5.90625 l 0.953125,2.703125 -2.75,2.734375 c -0.109375,0.125 -0.171875,0.171875 -0.171875,0.3125 0,0.171875 0.140625,0.28125 0.296875,0.28125 0.15625,0 0.25,-0.109375 0.328125,-0.203125 z m 0,0"
id="id-94e38b1d-5518-448c-b47b-27619161dce6-6" />
</symbol>
</g>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.0866133"
inkscape:cx="335.9326"
inkscape:cy="220.98155"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
units="in"
showguides="true"
inkscape:guide-bbox="true"
inkscape:window-width="1920"
inkscape:window-height="1016"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
inkscape:object-nodes="true">
<inkscape:grid
type="xygrid"
id="grid10"
dotted="true" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1">
<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="89.545738"
y="10.84481"
id="text2895"><tspan
sodipodi:role="line"
id="tspan2893"
x="89.545738"
y="10.84481"
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"
x="100.17705"
y="39.35294"
id="text2899"><tspan
sodipodi:role="line"
x="100.73774"
y="39.35294"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
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"
x="95.28051"
y="53.151207"
id="text2981"><tspan
sodipodi:role="line"
id="tspan2979"
x="95.28051"
y="53.151207"
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"
x="100.14906"
y="64.90242"
id="text2985"><tspan
sodipodi:role="line"
id="tspan2983"
x="100.14906"
y="64.90242"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">roll/do</tspan><tspan
sodipodi:role="line"
x="100.14906"
y="69.312134"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan3121">interaction</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="43.6087"
y="10.865482"
id="text5998"><tspan
sodipodi:role="line"
id="tspan5996"
x="43.6087"
y="10.865482"
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"
x="56.432095"
y="37.073372"
id="text6002"><tspan
sodipodi:role="line"
id="tspan6000"
x="56.432095"
y="37.073372"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">Particle</tspan><tspan
sodipodi:role="line"
x="56.432095"
y="41.483086"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
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"
x="48.078369"
y="53.388386"
id="text6006"><tspan
sodipodi:role="line"
id="tspan6004"
x="48.078369"
y="53.388386"
style="stroke-width:0.264583">E/B-Fields</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="100.10007"
y="80.919083"
id="text6010"><tspan
sodipodi:role="line"
id="tspan6008"
x="100.10007"
y="80.919083"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">Interaction</tspan><tspan
sodipodi:role="line"
x="100.10007"
y="85.328796"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
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"
x="94.157921"
y="24.476572"
id="text6018"><tspan
sodipodi:role="line"
id="tspan6016"
x="94.157921"
y="24.476572"
style="stroke-width:0.264583">Particle</tspan></text>
<rect
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="rect6036"
width="28.222223"
height="11.288888"
x="42.333336"
y="32.455555"
ry="0" />
<rect
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="rect6036-2"
width="28.222223"
height="8.4666662"
x="42.333332"
y="5.6444454" />
<rect
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="rect6036-6"
width="28.222223"
height="7.0555563"
x="86.077774"
y="19.755558" />
<rect
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="rect6036-1"
width="28.222219"
height="8.4666653"
x="42.333332"
y="47.977779" />
<ellipse
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="path6133"
cx="100.19665"
cy="38.252438"
rx="14.058257"
ry="4.3857722" />
<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(#marker4966)"
d="m 70.555557,52.211111 h 14.11111"
id="path6195" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker6219)"
d="m 70.555558,38.100001 h 14.11111"
id="path6209" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker6324)"
d="m 70.555557,9.8777787 h 14.11111"
id="path6314" />
<ellipse
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="path6133-0"
cx="100.25835"
cy="9.8097916"
rx="14.058257"
ry="4.1653461" />
<ellipse
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="path6133-2"
cx="100.19689"
cy="52.06192"
rx="14.058257"
ry="4.3857722" />
<ellipse
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="path6133-2-3"
cx="100.13068"
cy="66.252411"
rx="14.058257"
ry="4.3857722" />
<rect
style="fill:none;fill-opacity:1;stroke:#6a6a6a;stroke-width:0.264999;stroke-miterlimit:4;stroke-dasharray:none"
id="rect6036-5"
width="28.222223"
height="11.288888"
x="86.077774"
y="76.199997"
ry="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker7355)"
d="M 86.077777,81.844444 H 33.866668 V 38.100001 h 7.055555"
id="path6543" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker7210)"
d="M 33.866668,38.100001 V 9.8777787 h 7.055555"
id="path6545" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker7071)"
d="m 100.18889,14.111112 v 4.233333"
id="path6557" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker6938)"
d="m 100.18889,26.811112 v 5.644446"
id="path6559" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker6811)"
d="m 100.18889,42.333333 v 4.233333"
id="path6561" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker6690)"
d="m 100.18889,56.444445 v 4.233333"
id="path6563" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker6575)"
d="M 100.18889,70.555557 V 74.78889"
id="path6565" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 21 KiB

@@ -0,0 +1,72 @@
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')
@@ -0,0 +1,65 @@
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'Density distribution $\frac{\partial n}{\partial E}$ $\left[ \frac{1}{cm^3 eV}\right]$')
ax.legend()
plt.show()
fig.savefig(output_file,bbox_inches='tight')
@@ -0,0 +1,76 @@
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')
@@ -0,0 +1,72 @@
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')