Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
ed7b204a
Commit
ed7b204a
authored
Dec 06, 2016
by
Andreas Freise
Browse files
starting to add ligo tools to pykat
parent
b572a7bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
pykat/GWdetectors/__init__.py
0 → 100644
View file @
ed7b204a
pykat/GWdetectors/aLIGO.py
0 → 100644
View file @
ed7b204a
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
unicode_literals
#import pykat.exceptions as pkex
import
numpy
as
np
import
math
import
copy
import
warnings
import
cmath
nsilica
=
1.44963098985906
#class aLIGO():
def
BSpath
(
thickness
,
n
=
nsilica
,
angle
=
45.0
):
"""
Compute optical path length in BS substrate, default
parameters assume angle of incidence of 45 deg and fused
silica substrate.
thickness: substrate thickness [m]
n: index of refraction of substrate
angle: angle of incidence (in vacuum) [deg]
"""
angle_subst
=
math
.
asin
(
math
.
sin
(
math
.
radians
(
angle
))
/
n
)
L
=
thickness
/
math
.
cos
(
angle_subst
)
return
math
.
degrees
(
angle_subst
),
L
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment