40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  ATF eLog  Not logged in ELOG logo
Entry  Mon Jun 28 17:33:32 2010, Jenna, Laser, GYRO, Mode Matching mode_match.tar
    Reply  Tue Jun 29 00:40:53 2010, Dmass, Laser, GYRO, Mode Matching 
       Reply  Tue Jun 29 13:12:56 2010, Alastair, Laser, GYRO, Mode Matching 
Message ID: 837     Entry time: Mon Jun 28 17:33:32 2010     Reply to this: 838
Author: Jenna 
Type: Laser 
Category: GYRO 
Subject: Mode Matching 

 Here is the code I've been working on for mode matching to the cavity. MM.m is adapted from goo2.m from Rana's page (http://www.ligo.caltech.edu/~rana/mat/MM/PMCmatch/), and there you can also find the functions called by MM.m that I didn't edit, such as chaindo. It finds the optimum focal lengths and distances for the lenses.

EtaCalcSimple calculates the overlap function for the beam assuming a non-astigmatic beam and an astigmatic cavity. 

MMplot plots the values for z (distance from the waist) and w as a function of the changing distance from the mirror to the first lens.

Calculate allows you to change values such as the distances to see how this affects the values for eta, the waist size, and z.

***EDIT  Alastair Heptonstall ***

I've taken all of the .m files and put them in an archive file.

Attachment 1: mode_match.tar  14 kB  Uploaded Tue Jun 29 14:12:04 2010
ELOG V3.1.3-