We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Photonics Nonlinear Diffraction Grating in FDTD Reply To: Nonlinear Diffraction Grating in FDTD

Trevor O'Loughlin
Ansys Employee

Hi Saar,

Bloch BCs are set to a single wavevector, so a change in frequency will have an angle offset.  Since you are looking at different frequencies, I think this is why the grating orders are not in the corresponding angles.  This should have some more information to help you: Bloch BCs in broadband sweeps over angle of incidence – Ansys Optics

 

Likewise, since you are looking for a generated response, you might need to be careful about the input field and make sure that you are not including your second harmonic frequency in your input.  This page might be helpful in this regard: Harmonic generation with a chi2 material – Ansys Optics