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
725a494b
Commit
725a494b
authored
Dec 01, 2014
by
Andreas Freise
Browse files
adding example for fabryperot utility
parent
99347a61
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/optics/cavity_w_Rc.py
0 → 100644
View file @
725a494b
"""
---------------------------------------------------------
Simple example to show the use of the utility functions:
- cavity_w1w2_Rc1Rc2(Lambda, L, w1, w2)
- cavity_info(Lambda, L, Rc1, Rc2)
Andreas Freise 01.12.2014
http://www.gwoptics.org/pykat/
---------------------------------------------------------
"""
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
unicode_literals
from
pykat.optics.fabryperot
import
*
import
numpy
as
np
def
main
():
# wavelength
Lambda
=
1064.0E-9
L
=
3994.515
print
(
"Advanced LIGO"
)
# attr ITMY Rc -1940.7
# attr ETMY Rc 2242.4
w1
=
0.053
w2
=
0.062
[
g1
,
g2
,
Rc1
,
Rc2
]
=
cavity_w1w2_Rc1Rc2
(
Lambda
,
L
,
w1
,
w2
)
print
(
"w1 = {0}, w2 = {1}"
.
format
(
w1
,
w2
))
print
(
"g1 = {0}, Rc1 = {1}"
.
format
(
g1
,
Rc1
))
print
(
"g2 = {0}, Rc2 = {1}"
.
format
(
g2
,
Rc2
))
print
(
"g1*g2 = {0}"
.
format
(
g1
*
g2
))
print
(
"A+"
)
# attr ITMX Rc -1852.9
# attr ETMX Rc 2174.3
w1
=
0.08
w2
=
0.094
[
g1
,
g2
,
Rc1
,
Rc2
]
=
cavity_w1w2_Rc1Rc2
(
Lambda
,
L
,
w1
,
w2
)
print
(
"w1 = {0}, w2 = {1}"
.
format
(
w1
,
w2
))
print
(
"g1 = {0}, Rc1 = {1}"
.
format
(
g1
,
Rc1
))
print
(
"g2 = {0}, Rc2 = {1}"
.
format
(
g2
,
Rc2
))
print
(
"g1*g2 = {0}"
.
format
(
g1
*
g2
))
# cross check
[
zr
,
w0
,
z1
,
wc1
,
wc2
]
=
cavity_info
(
Lambda
,
L
,
Rc1
,
Rc2
)
print
(
"(cross check: w1 = {0}, w2 = {1})"
.
format
(
wc1
,
wc2
))
if
__name__
==
'__main__'
:
main
()
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