%**************************************************************************
%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\heater undulator sim\software test\';

%Block segmentation parameters
NUM_BLOCK_XDIV = 20;
NUM_BLOCK_YDIV = 20;
NUM_BLOCK_ZDIV = 5;

%Undulator parameters
UND_GAP = .03400;  %(m)
%UND_GAP = .100;  %(m)
PERIOD = .054;  %(m)
NUM_CTR_PERIOD = 9;  %Number of periods in undulator center
BR = 1.2;  %(T)
BLOCK_X_WIDTH = .06;  %(m)
BLOCK_Y_WIDTH = .027;  %(m)
BLOCK_Z_WIDTH = PERIOD / 4;  %(m)
BLOCK_END_MAG_1_Z_WIDTH = .00703;  %(m)
BLOCK_END_SPACE_2_Z_WIDTH = .00140;  %(m)
BLOCK_END_MAG_2_Z_WIDTH = .00670;  %(m)
BLOCK_END_SPACE_3_Z_WIDTH = .00340;  %(m)
BLOCK_END_MAG_3_Z_WIDTH = .01190;  %(m)

%Positions where field is calculated
%X_FIELD_PTS = 0;
X_FIELD_PTS = -.03 : .005 : .03;
Y_FIELD_PTS = 0;
Z_FIELD_PTS = -.3 : .005 : .85;
%Z_FIELD_PTS = -.3 : .0005 : .85;
%Z_FIELD_PTS = -.1 : .73336 / 799 : .63336;