-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtfer_2S.m
46 lines (34 loc) · 1.5 KB
/
tfer_2S.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
33
34
35
36
37
38
39
40
41
42
43
44
45
% TFER_2S Evaluates the transfer function for a PMA in Case C.
% Author: Timothy Sipkens, 2019-03-21
%
% 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_2S(sp, m, d, z, prop)
[tau,~,~,rs] = parse_inputs(sp,m,d,z,prop);
% parse inputs for common parameters
%-- Estimate device parameter --------------------------------------------%
lam = 2 .* tau .* ([sp.alpha]' .^ 2 - ...
[sp.beta]' .^ 2 ./ (rs .^ 4)) .* prop.L ./ prop.v_bar;
%-- Taylor series expansion constants ------------------------------------%
C1 = 2 .* tau .* ([sp.alpha]' .^ 2 - ...
[sp.beta]' .^ 2 ./ (rs .^ 4));
C2 = -2 .* tau .* ([sp.alpha]' .^ 2 ./ rs - ...
5 .* [sp.beta]' .^ 2 ./ (rs .^ 5));
%-- Evaluate G0 and transfer function ------------------------------------%
G0 = @(r) rs + C1 .* (r - rs) .* exp(-lam) ./ ...
(C2 .* (r - rs) + C1 - C2 .* (r - rs) .* exp(-lam));
ra = min(prop.r2, max(prop.r1, G0(prop.r1)));
rb = min(prop.r2, max(prop.r1, G0(prop.r2)));
Lambda = (1 ./ (2 .* prop.del)) .* (rb - ra);
end