toobug1,
rJ=r_v pr?k~Bn if you're using 2007 or later version zemax, it's easy to get laser beam M-sqare:
V7(-<})8 LTlbrB 1) Editors --> Merit Function: to edit the merit function Type=POPD, Data=25 OR 26 for beam M^2; set Surf, Wave,Field per your system configuration;
Ouos f1
e]DuV)k& 2) Tools --> Optimization --> Merit Function Listing: to open a text window display merit function;
G<:gNWXd\ wT>~7$=L{ 3) Analysis --> Physical Optics -->POP: to set incident beam parameters like waist...., remember to Save your setting before POP analysis;
cf+EQY [M/0