ovidiopr / scattnlay

Near- and far-field Mie scattering by a multilayered sphere
GNU General Public License v3.0
59 stars 25 forks source link

Improvements for webapp #20

Open kostyfisik opened 4 years ago

kostyfisik commented 4 years ago
kostyfisik commented 4 years ago

https://en.wikipedia.org/wiki/Dielectric_loss

GulkinDmitry commented 2 years ago

Request: How can I get access to add new materials to the default list (Mie calculator)?

How I can to request to add new materails to the default list (https://refractiveindex.info/?shelf=main&book=SiO2&page=Malitson and https://refractiveindex.info/?shelf=main&book=Ta2O5&page=Bright-amorphous)

kostyfisik commented 2 years ago

@GulkinDmitry I am rewriting Mie calculator from scratch and I will add these materials to the new version. You are also welcome for PR, see https://github.com/ovidiopr/scattnlay/blob/master/vue-cli3-webapp/src/components/GetMaterials.vue#L159-L167 and related code. If it is an urgent request, I can add new materials to the old version myself, however, it looks to be a better time investment to add them to the new version (which will be way more feature rich and more maintainable).

GulkinDmitry commented 2 years ago

Thanks for the answer!

Of course, this is not urgent. Thanks to Lumerical =). But it seemed that your calculator is very convenient to quickly simulation with different materials (with datas from refrectiveindex.info). Moreover, in the current (old) version, there is a button "add new material" to insert links to the .yml-file. Very cool! But it doesn't work in Chrome, Safari and Opera =(

kostyfisik commented 2 years ago

That button worked due to usage of the remote proxy, which is no longer available, as soon as there is no way to directly download files from one site to another one. I will probably add file upload in the updated version to remove this dependence. As I saw from usage statistics, it was not a popular use-case, so I have never planned to fix it this Mie calculator (which is more like a prototype, than a real software project).

On Thu, 23 Sept 2021 at 14:06, GulkinDmitry @.***> wrote:

Thanks for the answer!

Of course, this is not urgent. Thanks to Lumerical =). But it seemed that your calculator is very convenient to quickly simulation with different materials (with datas from refrectiveindex.info). Moreover, in the current (old) version, there is a button "add new material" to insert links to the .yml-file. Very cool! But it doesn't work in Chrome, Safari and Opera =(

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ovidiopr/scattnlay/issues/20#issuecomment-925711965, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABH7JPK6PFPTDNSNW7MBA4TUDMC2NANCNFSM4J33FWCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kostyfisik commented 2 years ago

@GulkinDmitry You are welcome to check the major update of Mie calculator online, available at https://physics.itmo.ru/ru/mie-next (I will replace the current version with the new one during next week). The new version has 700+ materials from refractiveindex.info, feel free to provide your feedback, I should be fast on providing small fixes if I have messed something compared to the previous version.

GulkinDmitry commented 2 years ago

Good build! Many things have become clearer!

The only thing I stopped understanding: "Multilayer" (as a parameter in spherical/bulk/multilayer), what is it? Is it a particle on the surface of a multilayer medium? And we can choose the material and thickness of each layer. If it's true, one can set a particle on the surface of a multilayer system with a maximum available number of layers (for example, 5-pairs photonic crystal). In this case, the result is incorrect.

kostyfisik commented 2 years ago

Thank you!

As for "Mutilayer" note that it is a Mie theory calculator, so it is about a spherical particle in homogeneous media. If you need a particle(s) in stratified media, take a look at Smuthi https://smuthi.readthedocs.io/en/latest/_source/01%20about/about_smuthi.html