Commit 0c56ecc3 authored by Andreas Freise's avatar Andreas Freise
Browse files

changing gauss_param to beam_param in ABCD code

parent be683e58
import numpy as np
from pykat.optics.gaussian_beams import gauss_param
from pykat.optics.gaussian_beams import beam_param
def apply(ABCD, q1, n1, n2):
return gauss_param(nr=n2, q=n2 * (ABCD[0,0] * q1/float(n1) + ABCD[0,1]) / (ABCD[1,0] * q1/float(n1) + ABCD[1,1]))
return beam_param(nr=n2, q=n2 * (ABCD[0,0] * q1/float(n1) + ABCD[0,1]) / (ABCD[1,0] * q1/float(n1) + ABCD[1,1]))
def mirror_trans(n1, n2, Rc):
return np.matrix([[1.0,0.0],[(n2-n1)/float(Rc),1.0]])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment