complex angles are not allowed

26 views
Skip to first unread message

Refet Ali Yalcin

unread,
Sep 3, 2022, 4:25:38 AM9/3/22
to Smuthi
Dear all,

While trying to calculate reflectance and transmittance of an alumina slab with particles, I receive the error I mentioned at the title
ValueError: complex angles are not allowed

at the following line:
initial_power = gbeam.initial_intensity(layer_system=Agfilm).integral()[0] + gbeam.initial_intensity(layer_system=Agfilm).integral()[1]

I got the error when the refractive index of the medium is 1.777 as it is in the attached (minimized) file. When it is 1.77 or 1.78 it does not result in error. Do you have an idea if it is a bug, numerical instability or am I doing sth wrong as usual :)

Kind regards,
Refet
main.py

Amos Egel

unread,
Sep 3, 2022, 6:04:07 AM9/3/22
to Refet Ali Yalcin, Smuthi
Dar Refet,

that was a bug, thanks for reporting it.

I have pushed a correction to the GitLab repository. So if you pull
the newest commit from there, the issue should be fixed.

Best regards,
Amos

Am Sa., 3. Sept. 2022 um 10:25 Uhr schrieb Refet Ali Yalcin
<refe...@gmail.com>:
> --
> Smuthi project repository: https://gitlab.com/AmosEgel/smuthi
> Online documentation https://smuthi.readthedocs.io/en/latest/
> ---
> You received this message because you are subscribed to the Google Groups "Smuthi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to smuthi+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/smuthi/CA%2Bd8Ad%2BLWTTN3deO2_M8MT172gBwHgrpGDYEXuogMiOrCnvpwg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages