Hi Refet,
I cannot solve your problem, but I can offer my two cents. I tried something that could shed some light on the issue. Scattering matrix method in implemented directly in Smuthi, so I calculated reflectance spectrum from a 1 micron film of a Drude material mimicking silver and compared it to tmm package from pip (you can install it simply via 'pip install tmm'). It appears that the two give the same result, which is qualitatively similar to the one that you've shown with your own TMM code.
Best,
Krzysztof
--
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%2Bd8AdLL2%3DW%3D_qPpqOytFmNsWQw-uZNj1_rcsdvgEhY%2BzcEq8g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smuthi/ccab887d-b05c-450f-ac37-3e9c70ad17e9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smuthi/CAHNEE3Pv87Bva87JZHKT0DkzobSYj9eR-gys2beBhoLSMjqkuA%40mail.gmail.com.
Hi Lorenzo,When I run your script I get the following error:File "C:\Users\ryalcin\ownCloud\Academic\kodlar\smuthi\others_codes\smuthi_Aglayer_org.py", line 57, in <module>
initial_power = gbeam.initial_intensity(layer_system=Agfilm).integral()[0] + gbeam.initial_intensity(layer_system=Agfilm).integral()[1]
File "C:\Users\ryalcin\AppData\Local\Programs\Python\Python39\lib\site-packages\smuthi\initial_field.py", line 263, in initial_intensity
ff = trf.pwe_to_ff_conversion(vacuum_wavelength=self.vacuum_wavelength,
AttributeError: module 'smuthi.fields.transformations' has no attribute 'pwe_to_ff_conversion'I use the version 1.2.4Kind regards,Refet
To view this discussion on the web visit https://groups.google.com/d/msgid/smuthi/ccab887d-b05c-450f-ac37-3e9c70ad17e9n%40googlegroups.com.
--Refet Ali YALCIN
To view this discussion on the web visit https://groups.google.com/d/msgid/smuthi/ccab887d-b05c-450f-ac37-3e9c70ad17e9n%40googlegroups.com.