From a4d6cb481d6745e6396a509a1df92ed510384a6b Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Fri, 8 Jul 2011 12:49:20 -0400 Subject: beams definitions are in the same place --- example_beam_trace.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]; -- cgit v1.2.3