Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Convergence issue when using complex current density at an angle. #10

Open
Kaeryv opened this issue Jun 9, 2022 · 0 comments
Open

Convergence issue when using complex current density at an angle. #10

Kaeryv opened this issue Jun 9, 2022 · 0 comments

Comments

@Kaeryv
Copy link

Kaeryv commented Jun 9, 2022

Hi,
First, thank you for sharing this software !
I encounter an issue when trying to input a current density with nonzero Jx and Jy where Jx and Jy are out of phase:
Jx = b*1j and Jy = a for example. The objective is to produce a circular Right-Handed or Left-Handed polarization.

Maybe I'm doing something wrong I tried to modify the number of iterations and the accuracy (eps).

Here is the code for b:

depth = 137
b = np.zeros((172, 172, depth), dtype=np.complex128)
b = b.copy(), b.copy(), b.copy()

ax = 1j / np.sqrt(2)
ay = 1 / np.sqrt(2)
# The plane at z=49 is a source
b[0][:,:,41+8] = -1j * omega * ax
b[1][:,:,41+8] = -1j * omega * ay

PMLs of 40 blocks in each direction are used around the whole structure.

I will link more information soon.
Have a nice day

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant