Changes for page Partial Coherence Simulation
Last modified by rangeadm on 2025/04/23 16:13
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -9,7 +9,7 @@ 9 9 * ((( 10 10 a python script 11 11 12 -{{expand}} 12 +{{expand title="Click here to expand the script ..."}} 13 13 import numpy as np 14 14 import matplotlib.pyplot as plt 15 15 ... ... @@ -25,7 +25,6 @@ 25 25 26 26 EnAxis=np.linspace(0.,20.*CentralEnergy,num=samples) 27 27 EnInput=np.zeros(samples, dtype=np.complex64) 28 -#for i in range(samples): 29 29 EnInput=np.exp(-(EnAxis-CentralEnergy)~*~*2/2./dE~*~*2+2*np.pi*1j*np.random.random(size=samples)) 30 30 En_FFT=np.fft.fft(EnInput) 31 31 TAxis=np.fft.fftfreq(samples,d=(20.*CentralEnergy)/samples)*h ... ... @@ -69,7 +69,7 @@ 69 69 plt.show() 70 70 {{/expand}} 71 71 ))) 72 -* theJupyter Notebook**[[attach:SASEPulseGenV4.ipynb]]**71 +* a Jupyter Notebook** [[attach:GenerateSASE.ipynb]] ** 73 73 74 74 75 75 Some examples of results: ... ... @@ -86,9 +86,9 @@ 86 86 87 87 \\ 88 88 89 - Here are the screenshots of the script:88 +\\ 90 90 91 - [[image:attach:partia__coherence1.png]]90 +\\ 92 92 93 93 \\ 94 94