%**************************************************************************
%calc_und_field_param
%This file contains the parameters used by the program which calculates the
%undulator fields.
%
%Zachary Wolf, 10/12/09

%Parameters
NAME = 'LCLS Undulator Field Calculation';
OUTPUT_DIR = 'C:\LCLS\Gap Change\SN27\';
%b_r = 1.15935;    %Remnant field in magnet blocks (T)
b_r = 1.19948;    %Remnant field in magnet blocks (T)
mu_r = 1.05;  %Relative permeability of magnet block material
lx_m = .066;  %Width of magnet blocks in x (m)
ly_m = .057;  %Height of magnet blocks in y (m)
lz_m = .009;  %Length of magnet blocks in z (m)
lx_p = .044;  %Width of poles in x (m)
ly_p = .048;  %Height of poles in y (m)
lz_p = .006;  %Length of poles in z (m)
%g_u = .00690; %Undulator gap (m)
g_u = .010260; %Undulator gap (m)
num_bn = 10;  %Number of coefficients to use in field expansion
