Commit d27e71fc authored by Leon Merten Lohse's avatar Leon Merten Lohse
Browse files

fix CS example

parent 7f46f001
Pipeline #175047 failed with stages
in 23 seconds
......@@ -41,8 +41,9 @@
"# geometry\n",
"wavelength = 1.2398 / (energy * 1e3) * 1e-3 # mm\n",
"\n",
"# ACHTUNG: nx muss *gerade* sein!\n",
"\n",
"nx = 1024\n",
"ny = 512\n",
"nz = 1000\n",
"\n",
"ztot = 0.4 # mm\n",
......@@ -71,7 +72,7 @@
"n_PI = xrl.Refractive_Index('Kapton Polyimide Film', energy, density_Polyimide)\n",
"\n",
"\n",
"xx = np.linspace(-xtot/2, xtot/2, nx)\n",
"xx = (np.arange(-nx//2, nx//2) + 0.5) * dx * wavelength\n",
"\n",
"core = (np.abs(xx) < wg_radius)\n",
"cladding = ~core\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment