aboutsummaryrefslogtreecommitdiff
path: root/gaussian_focus.m
diff options
context:
space:
mode:
authorMatt Argao <mcargao@email.wm.edu>2013-03-11 15:45:27 -0400
committerMatt Argao <mcargao@email.wm.edu>2013-03-11 15:45:27 -0400
commit4943c1cb5d453dd08aab0ec7000f094779178c94 (patch)
treecf784b7bf8ff87dd98494ff05f15be68bc322d0d /gaussian_focus.m
parentc181a0d3181a7f5a24e9fdc712f2cdab38a928cb (diff)
downloadmode_match-4943c1cb5d453dd08aab0ec7000f094779178c94.tar.gz
mode_match-4943c1cb5d453dd08aab0ec7000f094779178c94.zip
Prototype revised gbeam propagation.
Diffstat (limited to 'gaussian_focus.m')
-rw-r--r--gaussian_focus.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/gaussian_focus.m b/gaussian_focus.m
new file mode 100644
index 0000000..ff444ee
--- /dev/null
+++ b/gaussian_focus.m
@@ -0,0 +1,9 @@
+function [ w, s ] = gaussian_focus( w0, s0, f, lambda )
+%GAUSSIAN_FOCUS Summary of this function goes here
+% Detailed explanation goes here
+
+zR = pi*w0^2/lambda;
+s = f*(1+(s0/f-1)/((s0/f-1)^2+(zR/f)^2));
+w = w0/sqrt((1-s0/f)^2+(zR/f)^2);
+end
+