%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                      
% Name: LP_SetupInstrument.m                                                           
% Author: Reine Gill       
% Modified by: Kristoffer Hultgren
%
% Description:                                                                         
%           Sets up a global structure with instrument design constants.                                                                           
%           Some values are computed once here.                                                                                      
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

global IN; % Global instrument information

IN.probe_radius  = 0.025;       % Probe radius/[m]
IN.probe_hradius = 0.0025;      % Hole in Probe, radius/[m]

% Compute probe area, by removing a small cap from a sphere
r=IN.probe_radius;          % Probe radius
h=IN.probe_hradius;         % Probe hole radius
IN.probe_area    = (4*pi*r^2-2*pi*r*(r-sqrt(r^2-h^2)));   % Surface area of one probe/[m^2] (Remove small cap with bottom radius h, from a sphere)