Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gwinc
pygwinc
Commits
75fb6a49
Commit
75fb6a49
authored
4 years ago
by
Evan Hall
Committed by
Kevin Kuns
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add CO2 and Ar gas noise functions to noises.py
parent
ecbf43b2
No related branches found
No related tags found
1 merge request
!121
Residual gas sub-budgets and updates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwinc/ifo/noises.py
+67
-6
67 additions, 6 deletions
gwinc/ifo/noises.py
with
67 additions
and
6 deletions
gwinc/ifo/noises.py
+
67
−
6
View file @
75fb6a49
...
...
@@ -833,6 +833,42 @@ class ExcessGasScatteringH2O(nb.Noise):
return
n
*
2
/
sinc_sqr
class
ExcessGasScatteringCO2
(
nb
.
Noise
):
"""
Excess gas scattering for CO2
"""
style
=
dict
(
label
=
'
CO2 scattering
'
,
color
=
'
xkcd:slate blue
'
)
def
calc
(
self
):
cavity
=
arm_cavity
(
self
.
ifo
)
species
=
self
.
ifo
.
Infrastructure
.
ResidualGas
.
CO2
n
=
noise
.
residualgas
.
residual_gas_scattering
(
self
.
freq
,
self
.
ifo
,
cavity
,
species
)
dhdl_sqr
,
sinc_sqr
=
dhdl
(
self
.
freq
,
self
.
ifo
.
Infrastructure
.
Length
)
return
n
*
2
/
sinc_sqr
class
ExcessGasScatteringAr
(
nb
.
Noise
):
"""
Excess gas scattering for Ar
"""
style
=
dict
(
label
=
'
Ar scattering
'
,
color
=
'
xkcd:violet
'
)
def
calc
(
self
):
cavity
=
arm_cavity
(
self
.
ifo
)
species
=
self
.
ifo
.
Infrastructure
.
ResidualGas
.
Ar
n
=
noise
.
residualgas
.
residual_gas_scattering
(
self
.
freq
,
self
.
ifo
,
cavity
,
species
)
dhdl_sqr
,
sinc_sqr
=
dhdl
(
self
.
freq
,
self
.
ifo
.
Infrastructure
.
Length
)
return
n
*
2
/
sinc_sqr
class
ExcessGasDampingH2
(
nb
.
Noise
):
"""
Residual gas damping for H2
...
...
@@ -865,9 +901,6 @@ class ExcessGasDampingN2(nb.Noise):
@nb.precomp
(
sustf
=
precomp_suspension
)
def
calc
(
self
,
sustf
):
species
=
self
.
ifo
.
Infrastructure
.
ResidualGas
.
N2
# n = noise.residualgas.residual_gas_damping(
# self.freq, self.ifo, species, sustf)
# return 4 * n
return
_calc_residual_gas_damping
(
self
.
freq
,
self
.
ifo
,
species
,
sustf
)
class
ExcessGasDampingH2O
(
nb
.
Noise
):
...
...
@@ -883,12 +916,40 @@ class ExcessGasDampingH2O(nb.Noise):
@nb.precomp
(
sustf
=
precomp_suspension
)
def
calc
(
self
,
sustf
):
species
=
self
.
ifo
.
Infrastructure
.
ResidualGas
.
H2O
# n = noise.residualgas.residual_gas_damping(
# self.freq, self.ifo, species, sustf)
# return 4 * n
return
_calc_residual_gas_damping
(
self
.
freq
,
self
.
ifo
,
species
,
sustf
)
class
ExcessGasDampingCO2
(
nb
.
Noise
):
"""
Excess gas damping for CO2
"""
style
=
dict
(
label
=
'
CO2 damping
'
,
color
=
'
xkcd:slate blue
'
,
linestyle
=
'
--
'
,
)
@nb.precomp
(
sustf
=
precomp_suspension
)
def
calc
(
self
,
sustf
):
species
=
self
.
ifo
.
Infrastructure
.
ResidualGas
.
CO2
return
_calc_residual_gas_damping
(
self
.
freq
,
self
.
ifo
,
species
,
sustf
)
class
ExcessGasDampingAr
(
nb
.
Noise
):
"""
Excess gas damping for Ar
"""
style
=
dict
(
label
=
'
Ar damping
'
,
color
=
'
xkcd:violet
'
,
linestyle
=
'
--
'
,
)
@nb.precomp
(
sustf
=
precomp_suspension
)
def
calc
(
self
,
sustf
):
species
=
self
.
ifo
.
Infrastructure
.
ResidualGas
.
Ar
return
_calc_residual_gas_damping
(
self
.
freq
,
self
.
ifo
,
species
,
sustf
)
def
_calc_residual_gas_damping
(
f
,
ifo
,
species
,
sustf
):
"""
Redundant calculation of res gas damping for each species
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment