Skip to content

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

Closed
n-simplex wants to merge 1 commit intocolour-science:developfrom
n-simplex:develop
Closed

PR: Added file for thin-film calculation functionality.#525
n-simplex wants to merge 1 commit intocolour-science:developfrom
n-simplex:develop

Conversation

@n-simplex
Copy link
Copy Markdown

No description provided.

@KelSolaar
Copy link
Copy Markdown
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
Copy Markdown
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
@KelSolaar KelSolaar added this to the v0.4.7 milestone Oct 18, 2025
@KelSolaar
Copy link
Copy Markdown
Member

Closing this one in favour of #1366.

@KelSolaar KelSolaar closed this Oct 18, 2025
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