I'm stupid and I deleted the previous repository...

So, code is working, this case reproduce a Diko's peak with Poisson
equation by changing the boundary conditions over time.
This commit is contained in:
Jorge Gonzalez 2024-09-26 17:58:45 +02:00
commit 8eab3b5610
13 changed files with 821 additions and 0 deletions

22
scripts_python/plotF.py Normal file
View file

@ -0,0 +1,22 @@
import readPhi
import readF
import matplotlib.pyplot as plt
from matplotlib.colors import Normalize
import glob
import numpy as np
from scipy.constants import e, k
path = '../2024-09-26_11.48.04/'
filesF_i = sorted(glob.glob(path+'time_*_f_i.csv'))
start = 0
end = len(filesF_i)
every = 50
time, x, v, f_i = readF.read(filesF_i[-1])
plt.title('t = {:.3f} ns'.format(time*1e9))
norm = Normalize(vmin=4., vmax=20., clip=False)
plt.imshow(np.log10(f_i), cmap='cividis', interpolation='None', aspect='auto', origin='lower', extent=[v[0],v[-1],x[0],x[-1]], norm=norm)
plt.show()