Code covered by the BSD License  

Highlights from
OSCAR

image thumbnail

OSCAR

by

 

08 Jul 2008 (Updated )

An optical FFT code to simulate Fabry Perot cavities with arbitrary mirror profiles

Example_Scan.m
clear all; close all; clear classes
addpath(genpath('Classes'));

disp('---------------------------------------------------------------------------')
disp('                  OSCAR V3.13                                      ')
disp('  ')


% Define the grid for the simulation: 128 X 128, 30 cm X 30 cm
G1 = Grid(128,0.15);

% Define the incoming beam on the input mirror surface (beam radius 2 cm,
% wavefront curvature 2500 m, propagating toward the waist)
E_input = E_Field(G1,'w',0.02,'R',-2500);

% Define the 2 mirrors, RofC = 2500m, 10 cm in diameter, transmission 2%,
% no loss

IM = Interface(G1,'RoC',2500,'CA',0.10,'T',0.02);
EM = Interface(G1,'RoC',2500,'CA',0.10,'T',0.02);

% Misaligned the end mirror by 100 microradian
EM = Add_tilt(EM,1E-6,'y');

% Use the 2 previous Interfaces and the input beam to defing a cavity 1000
% meter long
C1 = Cavity1(IM,EM,1000,E_input);

% Calculate the resonance length
C1 = Cavity_scan(C1);

% Display information about the cavity
Display_scan(C1);


Contact us