diff --git a/src/python/doubleSlit.py b/src/python/doubleSlit.py index 368f22f..029696e 100644 --- a/src/python/doubleSlit.py +++ b/src/python/doubleSlit.py @@ -28,18 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}doubleSlit.mp4") -plt.show() -exit() -m = 9.1093837e-31 # electron mass -t = 1e-7 # 1 s flight time -d = 1e-8 # 1nm distance between slits -h = 1.054571817e-34 - -sigma = d/10 -zeropoint = np.pi*(sigma**4+4*h**2*t**2/m**2)/(8*d*h*t/m) - -waveFunction = lambda x, t: sigma / np.sqrt(sigma**2+2j*h*t/m) * np.exp(-x**2/(sigma**2+2j*h*t/m)) -combined = lambda x,t: np.abs(waveFunction(x-d,t)+waveFunction(x+d,t))**2 -x = np.linspace(-10*zeropoint, 10*zeropoint, 10000) -plt.plot(x, combined(x, t)) -zeropoint +# plt.show() diff --git a/src/python/doubleSlit.py b/src/python/doubleSlit.py index 368f22f..029696e 100644 --- a/src/python/doubleSlit.py +++ b/src/python/doubleSlit.py @@ -28,18 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}doubleSlit.mp4") -plt.show() -exit() -m = 9.1093837e-31 # electron mass -t = 1e-7 # 1 s flight time -d = 1e-8 # 1nm distance between slits -h = 1.054571817e-34 - -sigma = d/10 -zeropoint = np.pi*(sigma**4+4*h**2*t**2/m**2)/(8*d*h*t/m) - -waveFunction = lambda x, t: sigma / np.sqrt(sigma**2+2j*h*t/m) * np.exp(-x**2/(sigma**2+2j*h*t/m)) -combined = lambda x,t: np.abs(waveFunction(x-d,t)+waveFunction(x+d,t))**2 -x = np.linspace(-10*zeropoint, 10*zeropoint, 10000) -plt.plot(x, combined(x, t)) -zeropoint +# plt.show() diff --git a/src/python/gauss.py b/src/python/gauss.py index 573b01c..25b6ac9 100644 --- a/src/python/gauss.py +++ b/src/python/gauss.py @@ -7,3 +7,4 @@ plt.vlines([-sigma, sigma], 0, 1/np.sqrt(2*np.pi)) plt.plot(x, 1/np.sqrt(2*np.pi)*np.exp(-x**2/(2*sigma**2))) plt.savefig("src/static/img/gauss.png") +# plt.show() diff --git a/src/python/doubleSlit.py b/src/python/doubleSlit.py index 368f22f..029696e 100644 --- a/src/python/doubleSlit.py +++ b/src/python/doubleSlit.py @@ -28,18 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}doubleSlit.mp4") -plt.show() -exit() -m = 9.1093837e-31 # electron mass -t = 1e-7 # 1 s flight time -d = 1e-8 # 1nm distance between slits -h = 1.054571817e-34 - -sigma = d/10 -zeropoint = np.pi*(sigma**4+4*h**2*t**2/m**2)/(8*d*h*t/m) - -waveFunction = lambda x, t: sigma / np.sqrt(sigma**2+2j*h*t/m) * np.exp(-x**2/(sigma**2+2j*h*t/m)) -combined = lambda x,t: np.abs(waveFunction(x-d,t)+waveFunction(x+d,t))**2 -x = np.linspace(-10*zeropoint, 10*zeropoint, 10000) -plt.plot(x, combined(x, t)) -zeropoint +# plt.show() diff --git a/src/python/gauss.py b/src/python/gauss.py index 573b01c..25b6ac9 100644 --- a/src/python/gauss.py +++ b/src/python/gauss.py @@ -7,3 +7,4 @@ plt.vlines([-sigma, sigma], 0, 1/np.sqrt(2*np.pi)) plt.plot(x, 1/np.sqrt(2*np.pi)*np.exp(-x**2/(2*sigma**2))) plt.savefig("src/static/img/gauss.png") +# plt.show() diff --git a/src/python/localized.py b/src/python/localized.py index 5dce65a..34ad282 100644 --- a/src/python/localized.py +++ b/src/python/localized.py @@ -28,4 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}localized.mp4") -plt.show() +# plt.show() diff --git a/src/python/doubleSlit.py b/src/python/doubleSlit.py index 368f22f..029696e 100644 --- a/src/python/doubleSlit.py +++ b/src/python/doubleSlit.py @@ -28,18 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}doubleSlit.mp4") -plt.show() -exit() -m = 9.1093837e-31 # electron mass -t = 1e-7 # 1 s flight time -d = 1e-8 # 1nm distance between slits -h = 1.054571817e-34 - -sigma = d/10 -zeropoint = np.pi*(sigma**4+4*h**2*t**2/m**2)/(8*d*h*t/m) - -waveFunction = lambda x, t: sigma / np.sqrt(sigma**2+2j*h*t/m) * np.exp(-x**2/(sigma**2+2j*h*t/m)) -combined = lambda x,t: np.abs(waveFunction(x-d,t)+waveFunction(x+d,t))**2 -x = np.linspace(-10*zeropoint, 10*zeropoint, 10000) -plt.plot(x, combined(x, t)) -zeropoint +# plt.show() diff --git a/src/python/gauss.py b/src/python/gauss.py index 573b01c..25b6ac9 100644 --- a/src/python/gauss.py +++ b/src/python/gauss.py @@ -7,3 +7,4 @@ plt.vlines([-sigma, sigma], 0, 1/np.sqrt(2*np.pi)) plt.plot(x, 1/np.sqrt(2*np.pi)*np.exp(-x**2/(2*sigma**2))) plt.savefig("src/static/img/gauss.png") +# plt.show() diff --git a/src/python/localized.py b/src/python/localized.py index 5dce65a..34ad282 100644 --- a/src/python/localized.py +++ b/src/python/localized.py @@ -28,4 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}localized.mp4") -plt.show() +# plt.show() diff --git a/src/python/oscillator.py b/src/python/oscillator.py index e99ccfd..9408c8a 100644 --- a/src/python/oscillator.py +++ b/src/python/oscillator.py @@ -80,3 +80,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * totalTime) ani.save(f"{outputFolder}oscillator_simple.mp4") +# plt.show() diff --git a/src/python/doubleSlit.py b/src/python/doubleSlit.py index 368f22f..029696e 100644 --- a/src/python/doubleSlit.py +++ b/src/python/doubleSlit.py @@ -28,18 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}doubleSlit.mp4") -plt.show() -exit() -m = 9.1093837e-31 # electron mass -t = 1e-7 # 1 s flight time -d = 1e-8 # 1nm distance between slits -h = 1.054571817e-34 - -sigma = d/10 -zeropoint = np.pi*(sigma**4+4*h**2*t**2/m**2)/(8*d*h*t/m) - -waveFunction = lambda x, t: sigma / np.sqrt(sigma**2+2j*h*t/m) * np.exp(-x**2/(sigma**2+2j*h*t/m)) -combined = lambda x,t: np.abs(waveFunction(x-d,t)+waveFunction(x+d,t))**2 -x = np.linspace(-10*zeropoint, 10*zeropoint, 10000) -plt.plot(x, combined(x, t)) -zeropoint +# plt.show() diff --git a/src/python/gauss.py b/src/python/gauss.py index 573b01c..25b6ac9 100644 --- a/src/python/gauss.py +++ b/src/python/gauss.py @@ -7,3 +7,4 @@ plt.vlines([-sigma, sigma], 0, 1/np.sqrt(2*np.pi)) plt.plot(x, 1/np.sqrt(2*np.pi)*np.exp(-x**2/(2*sigma**2))) plt.savefig("src/static/img/gauss.png") +# plt.show() diff --git a/src/python/localized.py b/src/python/localized.py index 5dce65a..34ad282 100644 --- a/src/python/localized.py +++ b/src/python/localized.py @@ -28,4 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}localized.mp4") -plt.show() +# plt.show() diff --git a/src/python/oscillator.py b/src/python/oscillator.py index e99ccfd..9408c8a 100644 --- a/src/python/oscillator.py +++ b/src/python/oscillator.py @@ -80,3 +80,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * totalTime) ani.save(f"{outputFolder}oscillator_simple.mp4") +# plt.show() diff --git a/src/python/photon.py b/src/python/photon.py index 632f808..a49c677 100644 --- a/src/python/photon.py +++ b/src/python/photon.py @@ -25,4 +25,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * totalTime) ani.save(f"{outputFolder}photon.mp4") -plt.show() +# plt.show() diff --git a/src/python/doubleSlit.py b/src/python/doubleSlit.py index 368f22f..029696e 100644 --- a/src/python/doubleSlit.py +++ b/src/python/doubleSlit.py @@ -28,18 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}doubleSlit.mp4") -plt.show() -exit() -m = 9.1093837e-31 # electron mass -t = 1e-7 # 1 s flight time -d = 1e-8 # 1nm distance between slits -h = 1.054571817e-34 - -sigma = d/10 -zeropoint = np.pi*(sigma**4+4*h**2*t**2/m**2)/(8*d*h*t/m) - -waveFunction = lambda x, t: sigma / np.sqrt(sigma**2+2j*h*t/m) * np.exp(-x**2/(sigma**2+2j*h*t/m)) -combined = lambda x,t: np.abs(waveFunction(x-d,t)+waveFunction(x+d,t))**2 -x = np.linspace(-10*zeropoint, 10*zeropoint, 10000) -plt.plot(x, combined(x, t)) -zeropoint +# plt.show() diff --git a/src/python/gauss.py b/src/python/gauss.py index 573b01c..25b6ac9 100644 --- a/src/python/gauss.py +++ b/src/python/gauss.py @@ -7,3 +7,4 @@ plt.vlines([-sigma, sigma], 0, 1/np.sqrt(2*np.pi)) plt.plot(x, 1/np.sqrt(2*np.pi)*np.exp(-x**2/(2*sigma**2))) plt.savefig("src/static/img/gauss.png") +# plt.show() diff --git a/src/python/localized.py b/src/python/localized.py index 5dce65a..34ad282 100644 --- a/src/python/localized.py +++ b/src/python/localized.py @@ -28,4 +28,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * time) ani.save(f"{outputFolder}localized.mp4") -plt.show() +# plt.show() diff --git a/src/python/oscillator.py b/src/python/oscillator.py index e99ccfd..9408c8a 100644 --- a/src/python/oscillator.py +++ b/src/python/oscillator.py @@ -80,3 +80,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * totalTime) ani.save(f"{outputFolder}oscillator_simple.mp4") +# plt.show() diff --git a/src/python/photon.py b/src/python/photon.py index 632f808..a49c677 100644 --- a/src/python/photon.py +++ b/src/python/photon.py @@ -25,4 +25,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * totalTime) ani.save(f"{outputFolder}photon.mp4") -plt.show() +# plt.show() diff --git a/src/python/travellingWave.py b/src/python/travellingWave.py index c8a7cc0..4eda596 100644 --- a/src/python/travellingWave.py +++ b/src/python/travellingWave.py @@ -27,4 +27,4 @@ ani = animation.FuncAnimation( fig, animate, interval=1000/framerate, blit=True, save_count = framerate * totalTime) ani.save(f"{outputFolder}travelling.mp4") -plt.show() +# plt.show()