aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example_beam_trace.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/example_beam_trace.m b/example_beam_trace.m
index 30703d2..bbe4502 100644
--- a/example_beam_trace.m
+++ b/example_beam_trace.m
@@ -1,12 +1,17 @@
beam1.k=[-1,0];
beam1.origin=[2,0.5];
+%beam1.k=[0,-1];
+%beam1.origin=[.4,2];
beam1.face=NA;
beam1.intensity = 1;
beam1.polarization = 1; % 1 for s and 2 for p
+beam1.status='incoming'; % could be reflected, refracted, incoming
beam2=beam1;
beam1.polarization = 2; % 1 for s and 2 for p
+beams={beam1,beam2};
+
face1.vertex1=[-1,0];
face1.vertex2=[1,0];
@@ -47,7 +52,6 @@ border4.n_right = [1, 1];
border4.n_left= [1, 1];
borders={border1,border2, border3, border4};
-beams={beam1,beam2};
border_limits=[-2,-2, 2,2];