Periodic simulation with a complex refractive index for the layers

58 views
Skip to first unread message

cédric Rousseau

unread,
Sep 17, 2024, 3:48:48 AM9/17/24
to Smuthi
  Hello everyone, I have been starting with Smuthi for a few weeks now. After a few successes, I am now facing my first question, for which I can't find the answer in the documentation or the examples. Is it possible to set periodic conditions with complex refractive indices for the layers?   Because when I run the periodic example simulations "fifteen_periodic_spheres_in_slab.py" with a complex refractive index, the code stops on its own after 30 seconds without any error message.  A personal code that I created by streamlining the example code gives me the following error with the arctan2() function, which does not accept complex numbers as input. This raises my question about the feasibility of such a simulation.

Thanks and regards,
Rousseau Cédric.   
Error.pngError2.png

Loris Cavenaile

unread,
Sep 24, 2024, 5:19:54 AM9/24/24
to Smuthi
Hello,
I am currently working on the exact same topic for my dissertation and am deeply invested in the subject matter. I am eager to see the responses and insights that emerge, as they will undoubtedly contribute to my own understanding and research. I look forward to further discussion and exploration of this fascinating area.  

Thanks and Regards, 
Loris Cavenaile

Krzysztof Czajkowski

unread,
Sep 24, 2024, 5:52:31 AM9/24/24
to Loris Cavenaile, Smuthi
Hi,
I think there are two different levels of difficulty depending how you
pose your problem. Do the particles need to be embedded in the layer
with complex RI or is it just one of the layers in which there aren't
any particles? I would guess that the latter case should be rather
straightforward, but the former is a bit tricky in terms of T-matrix for
the particles and the Ewald sum if the particles are embedded in a
medium with complex RI.
Best,
Krzysztof
> --
> Smuthi project repository: https://gitlab.com/AmosEgel/smuthi [1]
> Online documentation https://smuthi.readthedocs.io/en/latest/ [2]
> ---
> 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/0d15eea0-7939-45bf-abb6-0d5ce3cdd94cn%40googlegroups.com
> [3].
>
>
> Links:
> ------
> [1] https://gitlab.com/AmosEgel/smuthi
> [2] https://smuthi.readthedocs.io/en/latest/
> [3]
> https://groups.google.com/d/msgid/smuthi/0d15eea0-7939-45bf-abb6-0d5ce3cdd94cn%40googlegroups.com?utm_medium=email&utm_source=footer
Reply all
Reply to author
Forward
0 new messages