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

power coupled to a waveguide mode #5

Open
neonot opened this issue Oct 11, 2016 · 1 comment
Open

power coupled to a waveguide mode #5

neonot opened this issue Oct 11, 2016 · 1 comment

Comments

@neonot
Copy link

neonot commented Oct 11, 2016

Hi,
I want to evaluate power coupled to a mode. I can evaluate the power at a patch using the provided function for this, but I am not getting too far with the overlap integral between the power and the waveguide mode (some info here https://kb.lumerical.com/en/ref_scripts_overlap.html). Any help is much appreciated.

PS: Also it is not clear where the wavelength dependence of the mode calculation comes in?

Thanks.

@wsshin
Copy link
Owner

wsshin commented Oct 18, 2016

I guess you have calculated a wave emanating from some source. To calculate the overlap integral, you need to calculate the waveguide mode separately. This can be done by setting up a waveguide geometry and calculate its mode using ModalSrc as a source.

Now that you have a wave and mode profile, you can calculate the overlap integral between them in principle. Unfortunately, there is no function implemented for this purpose, so you will need to write your own script for this.

First thing you need to do is to retrieve the fields and their locations. Each of the Cartesian components of the solution E and H fields are a Scalar3d object, and Scalar3d has data_expanded() function that returns the field array and locations.

Then, you will need to implement the overlap integral. The tricky part is that the solution E and H fields are not defined at the same location due to the interlaced E and H grids in the finite-difference scheme. Therefore, you need to interpolate the E and H fields such that they are at the same locations. (Otherwise you cannot multiply them.) You can use MATLAB's interpn() function.

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

2 participants