forked from ldominguezruben/ASET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathASET_TransportMeas.m
55 lines (44 loc) · 1.2 KB
/
ASET_TransportMeas.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
46
47
48
49
50
51
52
53
function [Meas]=ASET_TransportMeas(Css,V,S,St,Dis)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This function calculate the value of Qss in the measured zone.
%by Dominguez Ruben, L. FICH-UNL
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%check the min array size
if St.nback<St.nvel
St.n=St.nback;
else
St.n=St.nvel;
end
if St.mback<St.mvel
St.m=St.mback;
else
St.m=St.mvel;
end
%%
%%%%%%%%%%%%%%%%%%%%%
%Transport calculate
%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Calculate Qss measured zone Kg/s
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for j=1:St.m
for i=1:St.n
if isnan(V.mcsMag(i,j)) | isnan(V.mcsBack(i,j))
Meas.coarse(i,j)=nan;%zero is is nan velocity or backsccatter
else
Meas.coarse(i,j)=(Css(i,j))*Dis.Meas(i,j);%kg/s
end
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Calculate Qw measured zone kg/s
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for j=1:St.m
for i=1:St.n
if isnan(V.mcsMag(i,j)) | isnan(V.mcsBack(i,j))
Meas.fine(i,j)=0;%zero is is nan velocity or backsccatter
else
Meas.fine(i,j)=(S.Csf/1000)*Dis.Meas(i,j);%kg/s
end
end
end