Skip to content
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

PR: Added file for thin-film calculation functionality. #525

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

n-simplex
Copy link

No description provided.

@KelSolaar
Copy link
Member

KelSolaar commented Oct 28, 2019

@KelSolaar KelSolaar changed the title Added file for thin-film calculation functionality. PR: Added file for thin-film calculation functionality. Oct 28, 2019
l = wavelength/589.0
tot = 0.244257733+0.00974634476*r-0.00373234996*T+0.000268678472*(l**2)*T+0.0015892057/(l**2)+0.00245934259/(l**2-0.229202**2)+0.90070492/(l**2-5.432937**2)-0.0166626219*(r**2)
n = math.sqrt((2*tot+1/r)/(1/r-tot))
return 0.5-0.5*math.cos(4*n*math.pi*thickness*math.sqrt(1-(math.sin(incident*2*math.pi/360)/n)**2)/wavelength)
Copy link
Member

@KelSolaar KelSolaar Nov 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mirageinc : Would you have a reference for that formula handy please?

@KelSolaar KelSolaar marked this pull request as draft November 4, 2020 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants