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

Grating1d - Gaussian beam source #60

Open
EpicurusOfSamos opened this issue Sep 20, 2021 · 0 comments
Open

Grating1d - Gaussian beam source #60

EpicurusOfSamos opened this issue Sep 20, 2021 · 0 comments

Comments

@EpicurusOfSamos
Copy link

EpicurusOfSamos commented Sep 20, 2021

Hi,

How can I change the polarization of the Gaussian beam while maintaining the coupling angle? In the example, the simulation is placed in the xz plane and the Gaussian beam is polarized along the y-axis, I would like to keep the k in this position and place the polarization over the x-axis, is it possible?

I tried with the below code, but it leads with fields in the x- and z-axis.

sources=[
maxwell.GaussianSource(
w0=params.beam_width / 2,
center=[
params.coupler_len / 2, 0,
params.wg_thickness + params.beam_dist
],
extents=[params.beam_extents, 0, 0],
normal=[0, 0, -1],
power=1,
theta=np.deg2rad(params.source_angle_deg),
psi=np.pi / 2,
polarization_angle= - np.pi / 2,
normalize_by_sim=True)

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