Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can calculate the average intensity just by |E|^2? #2875

Open
beizhixing opened this issue Jul 31, 2024 · 0 comments
Open

Can calculate the average intensity just by |E|^2? #2875

beizhixing opened this issue Jul 31, 2024 · 0 comments

Comments

@beizhixing
Copy link

beizhixing commented Jul 31, 2024

Hi, I want to reproduce the results in the reference below using MEEP.
(Slussarenko, S.,et al. Guiding light via geometric phases. Nature Photon 10, 571–575 (2016). https://doi.org/10.1038/nphoton.2016.138).

I use the code blow to obtain the ampulitude of E field, but I can not obtain the same picture as the reference. In my simulations, the waveguide eventually becomes multi-modal, as indicated by the appearance of breathing versus propagation.

Can you help me to solve it?

The code I used:

XY_data = [sim.get_array(center=mp.Vector3(0,0,0), size=mp.Vector3(d, gp, 0), component=c, cmplx=True) for c in [mp.Ex, mp.Ey, mp.Ez]]
XY_intensity = np.sqrt(np.abs(XY_data[0])**2 + np.abs(XY_data[1])**2 + np.abs(XY_data[2])**2)
plt.figure(dpi=1200)
plt.figure(figsize=(8, 4))
#plt.subplot(1,2,1)
plt.imshow(XY_intensity.transpose(), extent=[0, d,-gp/2, gp/2], cmap='jet')

Picture from the reference mentioned above.

Picture from my simulation.

@beizhixing beizhixing changed the title How to calculte the average intensity? How to calculate the average intensity? Aug 13, 2024
@beizhixing beizhixing changed the title How to calculate the average intensity? Calculate the average intensity Aug 13, 2024
@beizhixing beizhixing changed the title Calculate the average intensity Can calculate the average intensity just by |E|^2? Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant