|
@@ -143,7 +143,8 @@ def analyze(data, dist, z_vec, wl_idx):
|
|
print(dirname)
|
|
print(dirname)
|
|
print("Power: plasmon %4.3g W of dipoles %4.3g W, efficiency %5.3g%% from:"%(ppw, float(np.abs(dip_power[0])),float(np.abs( eta0))), ppw, eta0)
|
|
print("Power: plasmon %4.3g W of dipoles %4.3g W, efficiency %5.3g%% from:"%(ppw, float(np.abs(dip_power[0])),float(np.abs( eta0))), ppw, eta0)
|
|
plt.plot(lambd*1e9, plasmon_power/ dip_power)
|
|
plt.plot(lambd*1e9, plasmon_power/ dip_power)
|
|
- plt.ylim(0,1.0)
|
|
|
|
|
|
+ plt.ylim(0,0.04)
|
|
|
|
+ plt.xlim(550,800)
|
|
|
|
|
|
#plt.plot(lambd*1e9, np.real(eps2))
|
|
#plt.plot(lambd*1e9, np.real(eps2))
|
|
# plt.plot(lambd*1e9, np.real(k_spp))
|
|
# plt.plot(lambd*1e9, np.real(k_spp))
|
|
@@ -165,20 +166,27 @@ file_ext="pdf"
|
|
#dirname="Au-JC-R100-Au-JC.fsp.results"
|
|
#dirname="Au-JC-R100-Au-JC.fsp.results"
|
|
#dirname="Au-McPeak-R100-Si-Green.fsp.results"
|
|
#dirname="Au-McPeak-R100-Si-Green.fsp.results"
|
|
#dirname="Au-McPeak-R100-Au-McPeak.fsp.results"
|
|
#dirname="Au-McPeak-R100-Au-McPeak.fsp.results"
|
|
|
|
+dirname="sub-Au-R100-Si-wl450-800-sep10nm.fsp.results"
|
|
|
|
+
|
|
#dirname="Au-McPeak-R0.fsp.results"
|
|
#dirname="Au-McPeak-R0.fsp.results"
|
|
#dirname="Au-McPeak-R100-Si-Green-1500.fsp.results"
|
|
#dirname="Au-McPeak-R100-Si-Green-1500.fsp.results"
|
|
#dirname="Au-McPeak-R100-Si-Green-1500-l.fsp.results"
|
|
#dirname="Au-McPeak-R100-Si-Green-1500-l.fsp.results"
|
|
-dirname="Au-McPeak-R50-Si-Green-1500-l.fsp.results"
|
|
|
|
|
|
+#dirname="Au-McPeak-R50-Si-Green-1500-l.fsp.results"
|
|
|
|
+#dirname="Au-sub-dipole.fsp.results"
|
|
|
|
+#dirname="Au-sub-dipole-W.fsp.results"
|
|
|
|
+#dirname="Au-sub-Au-dipole-W.fsp.results"
|
|
|
|
+#dirname="Au-sub-Si-dipole-W.fsp.results"
|
|
def main ():
|
|
def main ():
|
|
distance = [1,2,3,4,5,6,7,8,9,10] #mkm
|
|
distance = [1,2,3,4,5,6,7,8,9,10] #mkm
|
|
- zshift = ["5","20","200","400","600"]
|
|
|
|
|
|
+ zshift = ["5","20"]
|
|
|
|
+ # zshift = ["5","20","200","400","600"]
|
|
z_vec = [int(val) for val in zshift]
|
|
z_vec = [int(val) for val in zshift]
|
|
|
|
|
|
data = read_data(dirname, distance, zshift)
|
|
data = read_data(dirname, distance, zshift)
|
|
|
|
|
|
#WLs=[300,350,400,450,600,700,800]
|
|
#WLs=[300,350,400,450,600,700,800]
|
|
#WLs=[600,700, 800, 450]
|
|
#WLs=[600,700, 800, 450]
|
|
- WLs=[800]#, 450]
|
|
|
|
|
|
+ WLs=[800]#,1500]#, 450]
|
|
WLs_idx = get_WLs_idx(WLs, data)
|
|
WLs_idx = get_WLs_idx(WLs, data)
|
|
|
|
|
|
|
|
|
|
@@ -189,6 +197,7 @@ def main ():
|
|
|
|
|
|
|
|
|
|
# legend = []
|
|
# legend = []
|
|
|
|
+ # mmedia = 1
|
|
# for shift in range(len(zshift)):
|
|
# for shift in range(len(zshift)):
|
|
# for i in range(len(WLs)):
|
|
# for i in range(len(WLs)):
|
|
# pl_data = []
|
|
# pl_data = []
|