Skip to content
Snippets Groups Projects
Commit c9112f1d authored by Christopher Wipf's avatar Christopher Wipf
Browse files

coatingthermal.py: formatting fixes

parent 21cd8003
No related branches found
No related tags found
No related merge requests found
Pipeline #117638 failed
......@@ -89,9 +89,10 @@ def coating_brownian(f, materials, wavelength, wBeam, dOpt):
zdir = -1
dcdp_z = zdir * dcdp # z-dir only matters here
# layer contributions (b_j in PhysRevD.91.042002, errors corrected)
brLayer = ((1-nN*dcdp_z/2)**2*((1-2*pratN)*(1+pratN)*Ysub)/((1-2*pratsub)*(1+pratsub)*yN) +
((1-2*pratsub)*(1+pratsub)*yN)/((1+pratN)*Ysub))/(1-pratN)
# layer contributions, b_j (eq 1) from doi:10.1103/PhysRevD.91.042002, errors corrected
brLayer = 1/(1-pratN) *
( (1-nN*dcdp_z/2)**2 * (1-2*pratN)*(1+pratN)*Ysub / ((1-2*pratsub)*(1+pratsub)*yN) +
(1-2*pratsub)*(1+pratsub)*yN / ((1+pratN)*Ysub) )
# sum them up for total
w = 2 * pi * f
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment