%**************************************************************************
%ppm_und_sim_param
%This file contains all the parameters required by the simulation program.
%
%Zachary Wolf
%4/2/08

%Output file information
OUTPUT_FILE_DIR = 'C:\Magdata\Echo7 U20 Sim\Pole8 shift++1mm\x1mm\';

%Magnet block segmentation parameters
NUM_BLOCK_XDIV = 20;
NUM_BLOCK_YDIV = 20;
NUM_BLOCK_ZDIV = 5;

%Undulator parameters
%UND_GAP = .007340;  %(m)
UND_GAP = .007440;  %(m)
%UND_GAP = .011905;  %(m)
PERIOD = .020;  %(m)
NUM_CTR_PERIOD = 10;  %Number of periods in undulator center
BR = 1.2;  %(T)
BLOCK_X_WIDTH = .025000;  %(m)
BLOCK_Y_WIDTH = .019761;  %(m)
BLOCK_Z_WIDTH = .004850;  %(m)
BLOCK_Z_SPACE = .000150;  %(m)
BLOCK_END_MAG_1_Z_WIDTH = .001400;  %(m)
BLOCK_END_SPACE_2_Z_WIDTH = .001335;  %(m)
BLOCK_END_MAG_2_Z_WIDTH = .002425;  %(m)
BLOCK_END_SPACE_3_Z_WIDTH = .001335;  %(m)
BLOCK_END_MAG_3_Z_WIDTH = .003825;  %(m)

%Positions where field is calculated
%X_FIELD_PTS = 0;
X_FIELD_PTS = 0 : .001 : .001;
Y_FIELD_PTS = 0;
Z_FIELD_PTS = -.038 : .0002 : .264;

