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

modify carrierdensity/thermorefractiveITM to use dhdL for strain conversion

For some reason these noises were just dividing by L**2 to convert to
strain, rather than using the dhdl conversion.

This changes the noises for Voyager and CE2, so the tests fail, and
the IFO caches should be updated when this is merged.
parent 0930faaa
No related branches found
No related tags found
1 merge request!67carrierdensity/thermorefractiveITM use dhdL for strain conversion
...@@ -21,13 +21,12 @@ def carrierdensity_adiabatic(f, ifo): ...@@ -21,13 +21,12 @@ def carrierdensity_adiabatic(f, ifo):
diffHole = ifo.Materials.Substrate.HoleDiffusion diffHole = ifo.Materials.Substrate.HoleDiffusion
cdDens = ifo.Materials.Substrate.CarrierDensity cdDens = ifo.Materials.Substrate.CarrierDensity
r0 = ifo.Optics.ITM.BeamRadius/np.sqrt(2) r0 = ifo.Optics.ITM.BeamRadius/np.sqrt(2)
L = ifo.Infrastructure.Length
gPhase = ifo.gwinc.finesse*2/pi gPhase = ifo.gwinc.finesse*2/pi
psdElec = 4*H*gammaElec**2*cdDens*diffElec/(pi*r0**4*Omega**2) # units are meters psdElec = 4*H*gammaElec**2*cdDens*diffElec/(pi*r0**4*Omega**2) # units are meters
psdHole = 4*H*gammaHole**2*cdDens*diffHole/(pi*r0**4*Omega**2) # units are meters psdHole = 4*H*gammaHole**2*cdDens*diffHole/(pi*r0**4*Omega**2) # units are meters
psdMeters = 2 * (psdElec + psdHole) # electrons and holes for two ITMs psdMeters = 2 * (psdElec + psdHole) # electrons and holes for two ITMs
n = psdMeters / (gPhase*L)**2 n = psdMeters / (gPhase)**2 * ifo.gwinc.dhdl_sqr
return n return n
...@@ -38,7 +37,6 @@ def carrierdensity_exact(f, ifo): ...@@ -38,7 +37,6 @@ def carrierdensity_exact(f, ifo):
""" """
w = ifo.Optics.ITM.BeamRadius w = ifo.Optics.ITM.BeamRadius
L = ifo.Infrastructure.Length
H = ifo.Materials.MassThickness H = ifo.Materials.MassThickness
kBT = const.kB * ifo.Materials.Substrate.Temp kBT = const.kB * ifo.Materials.Substrate.Temp
hbar = const.hbar hbar = const.hbar
...@@ -71,7 +69,7 @@ def carrierdensity_exact(f, ifo): ...@@ -71,7 +69,7 @@ def carrierdensity_exact(f, ifo):
psdMeters = 2 * (psdElec + psdHole) psdMeters = 2 * (psdElec + psdHole)
n = psdMeters / (gPhase*L)**2 n = psdMeters / (gPhase)**2 * ifo.gwinc.dhdl_sqr
return n return n
...@@ -91,12 +89,11 @@ def thermorefractiveITM_adiabatic(f, ifo): ...@@ -91,12 +89,11 @@ def thermorefractiveITM_adiabatic(f, ifo):
Temp = ifo.Materials.Substrate.Temp Temp = ifo.Materials.Substrate.Temp
kBT = const.kB * Temp kBT = const.kB * Temp
r0 = ifo.Optics.ITM.BeamRadius/np.sqrt(2) r0 = ifo.Optics.ITM.BeamRadius/np.sqrt(2)
L = ifo.Infrastructure.Length
gPhase = ifo.gwinc.finesse*2/pi gPhase = ifo.gwinc.finesse*2/pi
psd = 4*H*beta**2*kappa*kBT*Temp/(pi*r0**4*Omega**2*(rho*C)**2) # units are meters psd = 4*H*beta**2*kappa*kBT*Temp/(pi*r0**4*Omega**2*(rho*C)**2) # units are meters
psdMeters = 2*psd # two ITMs psdMeters = 2*psd # two ITMs
n = psdMeters / (gPhase*L)**2 n = psdMeters / (gPhase)**2 * ifo.gwinc.dhdl_sqr
return n return n
...@@ -108,7 +105,6 @@ def thermorefractiveITM_exact(f, ifo): ...@@ -108,7 +105,6 @@ def thermorefractiveITM_exact(f, ifo):
""" """
w = ifo.Optics.ITM.BeamRadius w = ifo.Optics.ITM.BeamRadius
L = ifo.Infrastructure.Length
H = ifo.Materials.MassThickness H = ifo.Materials.MassThickness
kBT = const.kB * ifo.Materials.Substrate.Temp kBT = const.kB * ifo.Materials.Substrate.Temp
Temp = ifo.Materials.Substrate.Temp Temp = ifo.Materials.Substrate.Temp
...@@ -137,7 +133,7 @@ def thermorefractiveITM_exact(f, ifo): ...@@ -137,7 +133,7 @@ def thermorefractiveITM_exact(f, ifo):
psdMeters = 2*psd # two itms psdMeters = 2*psd # two itms
n = psdMeters / (gPhase*L)**2 n = psdMeters / (gPhase)**2 * ifo.gwinc.dhdl_sqr
return n return n
...@@ -156,7 +152,6 @@ def subbrownian(f, ifo): ...@@ -156,7 +152,6 @@ def subbrownian(f, ifo):
c2 = ifo.Materials.Substrate.c2 c2 = ifo.Materials.Substrate.c2
n = ifo.Materials.Substrate.MechanicalLossExponent n = ifo.Materials.Substrate.MechanicalLossExponent
alphas = ifo.Materials.Substrate.Alphas alphas = ifo.Materials.Substrate.Alphas
L = ifo.Infrastructure.Length
kBT = const.kB * ifo.Materials.Substrate.Temp kBT = const.kB * ifo.Materials.Substrate.Temp
# Bulk substrate contribution # Bulk substrate contribution
......
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