Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Sebastian Steinlechner
pykat
Commits
725a494b
Commit
725a494b
authored
10 years ago
by
Andreas Freise
Browse files
Options
Downloads
Patches
Plain Diff
adding example for fabryperot utility
parent
99347a61
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/optics/cavity_w_Rc.py
+54
-0
54 additions, 0 deletions
examples/optics/cavity_w_Rc.py
with
54 additions
and
0 deletions
examples/optics/cavity_w_Rc.py
0 → 100644
+
54
−
0
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
()
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