summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example_beam_trace.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/example_beam_trace.m b/example_beam_trace.m
index 0547206..cb10dac 100644
--- a/example_beam_trace.m
+++ b/example_beam_trace.m
@@ -1,7 +1,8 @@
%beam1.k=[-1,0];
%beam1.origin=[2,0.5];
-beam1.k=[0,-1];
-beam1.origin=[.8,2];
+beam_initial_travel_angle=(22+45-180)/180*pi;
+beam1.k=[cos(beam_initial_travel_angle), sin(beam_initial_travel_angle)];
+beam1.origin=[1.7,2];
%beam1.k=[-1,-1];
%beam1.origin=[2,2];
beam1.face=NA;
@@ -15,7 +16,8 @@ beam1.polarization = 2; % 1 for s and 2 for p
beams={beam1,beam2};
n_rutile=[2.7532, 2.4885]; % n_s and n_p
-n_disk= [1.3751, 1.3751];
+n_disk= [1.3751, 1.3868]; % MgF2 book value
+n_disk= [1.465 , 1.465 ]; % MgF2 measured
n_air= [1., 1.];
face1.vertex1=[-1,0];