Skip to content
Snippets Groups Projects
Commit fc21470a authored by Jameson Rollins's avatar Jameson Rollins
Browse files

Merge branch 'ctn-fix' into 'master'

Fix an error in the coating brownian noise calculation

See merge request !77
parents 131d6887 a813f541
No related branches found
No related tags found
1 merge request!77Fix an error in the coating brownian noise calculation
Pipeline #122384 passed
......@@ -89,10 +89,10 @@ def coating_brownian(f, materials, wavelength, wBeam, dOpt):
zdir = -1
dcdp_z = zdir * dcdp # z-dir only matters here
# layer contrubutions (b_j in PhysRevD.91.042002)
brLayer = ( (1 - nN * dcdp_z / 2)**2 * (Ysub / yN) +
(1 - pratsub - 2 * pratsub**2)**2 * yN /
((1 + pratN)**2 * (1 - 2 * 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