Coder Social home page Coder Social logo

Comments (2)

phoebe-p avatar phoebe-p commented on September 13, 2024

I just ran your example. First of all, there's some small issue so as-is, the code didn't run for me - one of the methods was specified as just 'RT', which is not a valid method (it has to be 'RT_Fresnel' or 'RT_TMM'). Since the front surface has an SiN layer, it should be calculated with RT_TMM. For the rear surface, since there is just the Al transmission medium under it and no other surface layers (if I understand correctly), RT_Fresnel is fine. However, that isn't what is causing the issue you describe; this happens because currently, if you change something about the surface texture or surface layers but you don't change the name of the interface ('Texture_front' or 'Texture_back'), RayFlare will not know that it needs to recalculate anything - it simply checks if existing matrix files with that name exist in the specified save location, and if they do, it will no re-do the ray-tracing etc. and just use those saved files. Similarly, if you change the number of rays it will also not recognize this automatically so just should either change the surface name whenever you make a change, or delete the previous results files. This is something I want to change in the future, so that RayFlare will recognize when something has changed and give a warning/ask the user if they want to recalculate but it is not currently implemented!

Attached is your code, slightly modified so it calculates RAT for pyramids with either 50 or 100 nm of SiN. This gives clearly different results (also attached).
50_100nm_SiN

Github_RayflareVsPVL_SiN_RAT_comparison_PP.txt

from rayflare.

suchi-bot avatar suchi-bot commented on September 13, 2024

Hi! Thank you so much for your help in solving the problem.

from rayflare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.