fpakc/runs/1D_Cathode/curve_potential.gp
Jorge Gonzalez 2eae95002d Small modifications to 1D input files to make them start from a small
x/r position to avoid huge fields in Radial case when r -> 0 due to
charge accumulation.

Added a Gnuplot script to plot both potential profiles extracted from
Gmsh.
2021-01-23 10:58:39 +01:00

22 lines
592 B
Gnuplot

#Export the potential curves from Gmsh into a txt file.
reset
set terminal qt persist enhanced 1 size 600, 400
set style line 1 pt 1 lc rgb "red"
set style line 2 pt 2 lc rgb "blue"
set style line 3 pt 4 lc rgb "#006400"
set style line 4 pt 6 lc rgb "orange"
set style line 5 pt 8 lc rgb "black"
set style line 6 pt 10 lc rgb "#ADD8E6"
set xlabel "x/r (mm)"
set autoscale y
set ylabel "Potential (V)"
set key box at 90,-10
set title "Effect of geometry"
plot "Cartesian.dat" u ($5*1e3):($8) every 100 ls 1 t "Cartesian", \
"Radial.dat" u ($5*1e3):($8) every 100 ls 2 t "Radial"