mirror of
https://github.com/edoverg/modeconverter.git
synced 2026-10-14 23:06:39 +00:00
fixed observed far-field component
This commit is contained in:
@@ -205,7 +205,7 @@
|
|||||||
"def J1(FF):\n",
|
"def J1(FF):\n",
|
||||||
" #in this case we want to maximize field intensity\n",
|
" #in this case we want to maximize field intensity\n",
|
||||||
" # at the position of the focal spot \n",
|
" # at the position of the focal spot \n",
|
||||||
" obj_to_return = npa.mean(npa.abs(FF[0,:,1]) ** 2)\n",
|
" obj_to_return = npa.mean(npa.abs(FF[0,:,0]) ** 2)\n",
|
||||||
" return obj_to_return\n",
|
" return obj_to_return\n",
|
||||||
"#returns the first point of all frequencies of the Ey component"
|
"#returns the first point of all frequencies of the Ey component"
|
||||||
]
|
]
|
||||||
@@ -258,7 +258,8 @@
|
|||||||
")\n",
|
")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"######CHECK PLOT######\n",
|
"######CHECK PLOT######\n",
|
||||||
"figure = opt.plot2D(True, output_plane=output_plane)\n"
|
"figure = opt.plot2D(True, output_plane=output_plane)\n",
|
||||||
|
"plt.savefig(\"results/simulation_setup.pdf\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -150,7 +150,7 @@ ob_list = [FarFields]
|
|||||||
def J1(FF):
|
def J1(FF):
|
||||||
#in this case we want to maximize field intensity
|
#in this case we want to maximize field intensity
|
||||||
# at the position of the focal spot
|
# at the position of the focal spot
|
||||||
obj_to_return = npa.mean(npa.abs(FF[0,:,1]) ** 2)
|
obj_to_return = npa.mean(npa.abs(FF[0,:,0]) ** 2)
|
||||||
return obj_to_return
|
return obj_to_return
|
||||||
#returns the first point of all frequencies of the Ey component
|
#returns the first point of all frequencies of the Ey component
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ opt = mpa.OptimizationProblem(
|
|||||||
|
|
||||||
######CHECK PLOT######
|
######CHECK PLOT######
|
||||||
figure = opt.plot2D(True, output_plane=output_plane)
|
figure = opt.plot2D(True, output_plane=output_plane)
|
||||||
|
plt.savefig("results/simulation_setup.pdf")
|
||||||
|
|
||||||
# %%
|
# %%
|
||||||
def mapping(x,eta,beta):
|
def mapping(x,eta,beta):
|
||||||
|
|||||||
Reference in New Issue
Block a user