I’m calculating transmission in nonlinear materials whose permittivity varies with respect to input intensity.
I hope to see the transmission variation with respect to input intensity. However, the simulation is diverged.
I don’t know why it is diverged. I even changed dt to 0.1, but it doesn’t work.
I attached my source code.
Please review this code.