Comments (2)
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).
Github_RayflareVsPVL_SiN_RAT_comparison_PP.txt
from rayflare.
Hi! Thank you so much for your help in solving the problem.
from rayflare.
Related Issues (20)
- [JOSS] low and variable test coverage when running locally HOT 8
- process_structure doesn't work as expected if non-valid optical method is specified
- Dealing with changing parameters between simulations using the angular redistribution matrix method HOT 1
- [JOSS] Installation issues - S4 HOT 6
- Issue with numpy version during installation
- Large volume of warnings when using RayFlare
- Issue installing S4 on Macs with Apple silicon (M1) HOT 1
- Use of anisotropic materials in RayFlare
- Installation problem of S4 HOT 7
- What's the "unit" of "size" in regular_pyramids? HOT 2
- Alternative RCWA implementation not requiring compilation
- Issue with absorption profile calculation when using angular redistribution matrix method HOT 2
- Tests take too long to complete
- Control verbosity
- How to calculate R_per_layer and T_per_layer? HOT 2
- All-Python implementation of RCWA
- ModuleNotFoundError: No module named 'S4' HOT 3
- Analytical approximation for standard ray-tracing textures
- Random scattering assumption in ray-tracing
- Defining the height of pyramidal + planar surfaces HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rayflare.