-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtfer_GE_diff.m
32 lines (26 loc) · 1.08 KB
/
tfer_GE_diff.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% TFER_GE_DIFF Evaluates the transfer function for a PMA in Case F (w/ diffusion).
% Author: Timothy Sipkens, 2018-12-27
%
% Inputs:
% sp Structure defining various setpoint parameters
% (e.g. m_star, V). Use 'get_setpoint' method to generate
% this structure.
% m Particle mass
% d Particle mobility diameter
% z Integer charge state
% prop Device properties (e.g. classifier length)
%
% Outputs:
% Lambda Transfer function
% G0 Function mapping final to initial radial position
%=========================================================================%
function [Lambda, G0] = tfer_GE_diff(sp, m, d, z, prop)
[~, ~, D] = parse_inputs(sp, m, d, z, prop); % get diffusion coeff.
%-- Evaluate relevant functions ------------------------------------------%
Lambda = zeros(length(sp), length(m));
for jj=1:size(Lambda,1)
[~, G0] = tfer_GE(sp(jj), m, d, z, prop);
% get G0 function for this case
Lambda(jj,:) = tfer_diff(G0, D, prop); % apply general diffusive form
end
end