-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frequency dependent permittivity #31
Comments
Hi @lupettolab , Adding support for frequency-dependent permittivity is a bit outside my comfort zone / area of expertise. However, I would happily accept a PR for an |
Hi @flaport, |
PS. Upon a time I converted C code from the book eecs.wsu.edu/~schneidj/ufdtd/chap10.pdf to C# (with GUIs and classes) and I assure that the code worked exactly as expected. Thanks |
Thanks for the pointer @GenB31415 , I love that book... most of this library is loosely based on it. I'm pretty sure I could implement it with the right amount of time, but that has been a big problem lately... So like I said... it might happen at some point if I ever find the courage and time, but you'll have a better chance of having it fast with a PR ;-) |
Hi @flaport. I understand your situation. Well, I would like only to briefly discuss the following approach (when you will have time). I (or anyone) will prepare a new structure: class GridDrude(fdtd.Grid): ... , which will have your fdtd.Grid as a base class. The idea is to get the access to the methods and fields of fdtd.Grid, but with the possibility to add (extend) new methods allowing to create update field functions for the Drude model (and maybe other) as it is described in chapter 10 of the book. However, before one would like to hear some general advices on the possible structure of such a hierarchy. Thanks. |
Hi @flaport! I'd like to continue the discussion of FDTD for a case of material with a frequency-dependent dispersion. I propose here the FDTD solution for a simple case of homogeneous medium with a dispersion based on the Drude model, see details in the book Taflove/Hagness, 9.2.3 (Ed.3). As an illustration, I attach FDTD code of Cherenkov radiation in 2D case (which admits a direct generalization to 3D). The question is, if this approach can be applied to the inhomogeneous situation, e.g., a compound medium with the inserted parallel cylinders? Thanks. |
PS. First graph shows the energy of field radiated by moving point source for the Drude medium with the plasma frequency indicated in the graph. The second plot shows the same but for disperiveless dielectric. One can see that the field structures in medium with the frequency (Drude) dispersion significantly differs from the dispersiveless case. |
PS-2.
|
Hey @GenB31415 , this looks cool! I'll try to have a look at it this week! |
Hi @GenB31415 , feel free to make a PR and add GridDrude to grid.py. Thanks :) |
Hello to everybody. In this message I propose a way to apply a wrapping class technique to the system with the frequency (Drude) dispersion in the fdtd package. This approach avoids disturbing the internal structure of fdtd code that is desired in many situations. Attached is a working file that uses as a prototype one of fdtd example.
Thanks to @flaport for sharing the fdtd great package. |
Hi @GenB31415 , This looks pretty cool! I would be happy to include those additions into fdtd. Can you fork the repository, make the necessary changes in your branch and then create a pull request please? Thanks! |
Hi @flaport, thanks, please tell us more. |
Hey @GenB31415 . I love your additions to the fdtd simulator and I would like to add them. Could you please fork the repository, make the changes that you want to see in this library and make a pull request? You can find more information on how to do this here: |
@GenB31415 @flaport Is there any update ? I would definitely be interested to use a Drude-like material as a base for a small POC |
Hi @jviquerat , Drude materials are a bit out of my comfort zone... I think you can probably use the example zip file attached above as a starting point. Feel free to open a PR if you get it working 🙂 |
Hi, thank you very much for this awesome repository!
If I understand the code correctly at the moment it's not possible to use Objects with a frequency dependent permittivity (like gold nanoparticles for instance), is there any plan to support it?
The text was updated successfully, but these errors were encountered: