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
faa4c35f
Commit
faa4c35f
authored
4 years ago
by
Jameson Rollins
Browse files
Options
Downloads
Plain Diff
Merge branch 'sus-update-fixmes' into 'master'
Revise suspension model See merge request
!80
parents
6347de3a
70253c32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!80
Revise suspension model
Pipeline
#120948
failed
4 years ago
Stage: dist
Stage: test
Stage: docs
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gwinc/suspension.py
+2
-20
2 additions, 20 deletions
gwinc/suspension.py
gwinc/test/ref_hash
+1
-1
1 addition, 1 deletion
gwinc/test/ref_hash
with
3 additions
and
21 deletions
gwinc/suspension.py
+
2
−
20
View file @
faa4c35f
...
...
@@ -100,7 +100,6 @@ def getJointParams(sus, n):
TempUpper
=
stages
[
n
-
1
].
Temp
else
:
TempUpper
=
sus
.
Temp
TempUpper
=
Temp
# FIXME: reproduces the old calculation
##############################
# material parameters
...
...
@@ -114,10 +113,6 @@ def getJointParams(sus, n):
elif
'
WireMaterial
'
in
stage
:
wireMatUpper
=
stage
.
WireMaterial
wireMatLower
=
stage
.
WireMaterial
# FIXME: reproduces the old calculation
elif
n
==
last_stage
and
sus
.
Type
==
'
BQuad
'
:
wireMatUpper
=
'
Silicon
'
wireMatLower
=
'
Silicon
'
elif
n
==
last_stage
:
wireMatUpper
=
'
Silica
'
wireMatLower
=
'
Silica
'
...
...
@@ -132,9 +127,6 @@ def getJointParams(sus, n):
# support blade (upper joint only)
if
'
BladeMaterial
'
in
stage
:
bladeMat
=
stage
.
BladeMaterial
# FIXME: reproduces the old calculation
elif
n
==
last_stage
and
sus
.
Type
==
'
BQuad
'
:
bladeMat
=
'
Silicon
'
else
:
bladeMat
=
'
MaragingSteel
'
...
...
@@ -206,7 +198,7 @@ def wireGeometry(r, N, RibbonThickness=None, TaperedEndRadius=None, **kwargs):
return
(
xsect
,
xsectEnd
,
xII
,
mu_v
,
mu_h
)
def
wireTELoss
(
w
,
tension
,
xsectEnd
,
xII
,
Temp
,
alpha
,
beta
,
rho
,
C
,
K
,
Y
,
xsect
,
def
wireTELoss
(
w
,
tension
,
xsectEnd
,
xII
,
Temp
,
alpha
,
beta
,
rho
,
C
,
K
,
Y
,
RibbonThickness
=
None
,
**
kwargs
):
"""
Thermoelastic calculations for wires
...
...
@@ -222,9 +214,6 @@ def wireTELoss(w, tension, xsectEnd, xII, Temp, alpha, beta, rho, C, K, Y, xsect
# horizontal TE time constant, wires
# The constant 7.37e-2 is 1/(4*q0^2) from eq 12, C. Zener 10.1103/PhysRev.53.90 (1938)
tau
=
7.37e-2
*
4
*
(
rho
*
C
*
xsectEnd
)
/
(
pi
*
K
)
# FIXME: reproduces the old calculation
# then xsect can be dropped from the argument list
tau
=
7.37e-2
*
4
*
(
rho
*
C
*
xsect
)
/
(
pi
*
K
)
# deal with ribbon geometry
if
RibbonThickness
is
not
None
:
...
...
@@ -306,16 +295,12 @@ def continuumWireKh(w, N, length, tension, xsect, xII, rho, Y, phi):
# = T k (cos(k L) + k delta sin(k L))
# for w -> 0, this reduces to N_w * T * k
khnum
=
N
*
tension
*
k
*
(
coskl
+
dk
*
sinkl
)
# FIXME: reproduces the old calculation
khnum
=
N
*
tension
*
k
*
(
1
+
dk
**
2
)
*
(
coskl
+
dk
*
sinkl
)
# denominator, horiz spring constant
# D after equation 8 in GG
# D = sin(k L) - 2 k delta cos(k L)
# for w -> 0, this reduces to k (L - 2 delta)
khden
=
sinkl
-
2
*
dk
*
coskl
# FIXME: reproduces the old calculation
khden
=
(
1
-
dk
**
2
)
*
sinkl
-
2
*
dk
*
coskl
return
khnum
/
khden
...
...
@@ -336,9 +321,6 @@ def continuumWireKv(w, N, length, xsect, xsectEnd, rho, Y, phi,
kv_mid
=
N
*
xsect
*
Y
*
k
/
tan
(
k
*
l_mid
)
kv_end
=
N
*
xsectEnd
*
Y
*
k
/
tan
(
k
*
l_end
)
kv
=
1
/
(
2
/
kv_end
+
1
/
kv_mid
)
# FIXME: reproduces the old calculation
kv_end
=
N
*
xsectEnd
*
Y
*
k
/
tan
(
k
*
2
*
l_end
)
kv
=
1
/
(
1
/
kv_end
+
1
/
kv_mid
)
return
kv
...
...
@@ -491,7 +473,7 @@ def suspQuad(f, sus):
# nominally this term becomes zero for steel wires as ds_w is zero
# The last term is for TE loss
phih_TE
=
wireTELoss
(
w
,
tension
,
xsectEnd
,
xII
,
Temp
,
alpha_w
,
beta_w
,
rho_w
,
C_w
,
K_w
,
Y_w
,
xsect
,
alpha_w
,
beta_w
,
rho_w
,
C_w
,
K_w
,
Y_w
,
**
wireShape
)
phih
=
phi_w
*
(
1
+
mu_h
*
ds_w
)
+
phih_TE
...
...
This diff is collapsed.
Click to expand it.
gwinc/test/ref_hash
+
1
−
1
View file @
faa4c35f
9ff4ba5463895698f48c243e329c4138ab163c1f
06ec15931ae295717ac564ca892f2f92d33430c7
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