diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-07-07 21:51:05 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-07-07 21:51:05 -0400 |
commit | ff43b64a647e977c1bcc9c0ff3af1587fbfe886b (patch) | |
tree | 2aa271450b84600d5753228fa01ed737433861a6 /example_beam_trace.m | |
parent | e0b26a41d7e8698acc8126400fe2f7ed0cc630b3 (diff) | |
download | wgmr-ff43b64a647e977c1bcc9c0ff3af1587fbfe886b.tar.gz wgmr-ff43b64a647e977c1bcc9c0ff3af1587fbfe886b.zip |
beam polarization added
Diffstat (limited to 'example_beam_trace.m')
-rw-r--r-- | example_beam_trace.m | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/example_beam_trace.m b/example_beam_trace.m index 24fab15..95b5ff3 100644 --- a/example_beam_trace.m +++ b/example_beam_trace.m @@ -2,21 +2,22 @@ beam.k=[-1,0]; beam.origin=[2,0.5]; beam.face=NA; beam.intensity = 1; +beam.polarization = 1; % 1 for s and 2 for p face1.vertex1=[-1,0]; face1.vertex2=[1,0]; -face1.n_right = 1; -face1.n_left= 2.5; +face1.n_right = [1, 1]; +face1.n_left= [2.5, 2.9]; face2.vertex1=[1,0]; face2.vertex2=[0,1]; -face2.n_right = 1; -face2.n_left= 2.5; +face2.n_right = [1, 1]; +face2.n_left= [2.5, 2.9]; face3.vertex1=[0,1]; face3.vertex2=[-1,0]; -face3.n_right = 1; -face3.n_left= 2.5; +face3.n_right = [1, 1]; +face3.n_left= [2.5, 2.9]; faces={face1,face2,face3}; |