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
fc9f476a
Commit
fc9f476a
authored
5 years ago
by
Jameson Graef Rollins
Browse files
Options
Downloads
Patches
Plain Diff
seismic code simplification
susQuad function take sus Struct instead of full ifo
parent
160b4a1d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gwinc/precomp.py
+1
-1
1 addition, 1 deletion
gwinc/precomp.py
gwinc/suspension.py
+9
-11
9 additions, 11 deletions
gwinc/suspension.py
with
10 additions
and
12 deletions
gwinc/precomp.py
+
1
−
1
View file @
fc9f476a
...
...
@@ -120,7 +120,7 @@ def precompIFO(f, ifoin, PRfixed=True):
# Suspension
# if the suspension code supports different temps for the stages
fname
=
eval
(
'
suspension.susp{}
'
.
format
(
ifo
.
Suspension
.
Type
))
hForce
,
vForce
,
hTable
,
vTable
=
fname
(
f
,
ifo
)
hForce
,
vForce
,
hTable
,
vTable
=
fname
(
f
,
ifo
.
Suspension
)
try
:
# full TF (conventional)
...
...
This diff is collapsed.
Click to expand it.
gwinc/suspension.py
+
9
−
11
View file @
fc9f476a
...
...
@@ -67,14 +67,14 @@ def top_displ_to_tst_displ(k, m, f):
return
X0
*
k0
def
suspQuad
(
f
,
ifo
,
material
=
'
Silica
'
):
def
suspQuad
(
f
,
sus
,
material
=
'
Silica
'
):
"""
Suspension for quadruple pendulum
`f` is frequency vector, `
ifo
` is
IFO
model. `material`
specifies
material used for test mass suspension stage. steel
used for all
other stages. Violin modes are included.
`f` is frequency vector, `
sus
` is
suspension
model. `material`
specifies
material used for test mass suspension stage. steel
used for all
other stages. Violin modes are included.
ifo.Suspension
.FiberType should be: 0=round, 1=ribbons.
sus
.FiberType should be: 0=round, 1=ribbons.
hForce, vForce = transfer functions from the force on the TM to TM
motion these should have the correct losses for the mechanical
...
...
@@ -84,7 +84,7 @@ def suspQuad(f, ifo, material='Silica'):
= hForce + theta^2 * vForce
= admittance / (i * w)
where theta =
ifo.Suspension
.VHCoupling.theta.
where theta =
sus
.VHCoupling.theta.
Since this is just suspension thermal noise, the TM internal modes
and coating properties should not be included.
...
...
@@ -101,8 +101,6 @@ def suspQuad(f, ifo, material='Silica'):
"""
g
=
const
.
g
sus
=
ifo
.
Suspension
# bottom stage fiber Type
FiberType
=
sus
.
FiberType
assert
FiberType
in
FIBER_TYPES
...
...
@@ -417,10 +415,10 @@ def suspQuad(f, ifo, material='Silica'):
return
hForce
,
vForce
,
hTable
,
vTable
def
suspBQuad
(
f
,
ifo
):
def
suspBQuad
(
f
,
sus
):
"""
Wrapper of suspQuad to use Silicon for final stage
FIXME: material should be specified in
ifo.Suspension
.Stage
FIXME: material should be specified in
sus
.Stage
"""
return
suspQuad
(
f
,
ifo
,
material
=
'
Silicon
'
)
return
suspQuad
(
f
,
sus
,
material
=
'
Silicon
'
)
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