Skip to content
Snippets Groups Projects
Commit 332a5f90 authored by Sean Leavey's avatar Sean Leavey
Browse files

Fixing cavity scan example due to changes to pd and xaxis

parent c36617e5
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,13 @@ Fabry-Perot cavity scan example. ...@@ -7,11 +7,13 @@ Fabry-Perot cavity scan example.
laser ITM 10m cavity ETM photodiode laser ITM 10m cavity ETM photodiode
The simulation sets up a parameter list in the form of a Python dictionary, The simulation sets up a parameter list in the form of a Python dictionary,
then populates PyKat with the experimental setup directly (without using then populates PyKat with the experimental setup directly.
a .kat file input - 100% PyKat).
The cavity is then scanned by tuning the ETM, and the results are plotted. The cavity is then scanned by tuning the ETM, and the results are plotted.
Note that if you prefer, you can write directly in FINESSE code rather than
using PyKat to build the optical environment - see other examples.
Some terminology: Some terminology:
ITM: initial test mass ITM: initial test mass
...@@ -277,8 +279,9 @@ kat.add( ...@@ -277,8 +279,9 @@ kat.add(
# photodiode looking at cavity transmitted light # photodiode looking at cavity transmitted light
kat.add( kat.add(
pykat.detectors.photodiode( pykat.detectors.pd(
'pd1', 'pd1',
0,
'n9' 'n9'
) )
) )
...@@ -297,7 +300,7 @@ kat.space1.n1.q = pykat.utilities.optics.gaussian_beams.gauss_param(q = 1.050412 ...@@ -297,7 +300,7 @@ kat.space1.n1.q = pykat.utilities.optics.gaussian_beams.gauss_param(q = 1.050412
############################## ##############################
# scan cavity from 0 to 360 degrees # scan cavity from 0 to 360 degrees
kat.add(pykat.commands.xaxis('lin', [0, 360], kat.M_ETM_HR, kat.M_ETM_HR.phi, 360)) kat.add(pykat.commands.xaxis('lin', [0, 360], kat.M_ETM_HR.phi, 360))
# set maximum TEM mode to model # set maximum TEM mode to model
kat.maxtem = 3 kat.maxtem = 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment