-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathU2Qmap.m
More file actions
33 lines (30 loc) · 747 Bytes
/
U2Qmap.m
File metadata and controls
33 lines (30 loc) · 747 Bytes
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
function U2Qmap()
global turbmodel u uhat tausgs Q nx solution_domain tauhatsgs w0hat w1hat w2hat
if (solution_domain == 1)
if (turbmodel <= 1 || turbmodel == 5)
Q = u;
end
if (turbmodel >= 2 && turbmodel <= 4)
Q = zeros(2*nx,1);
Q(1:2:end) = u;
Q(2:2:end) = tausgs;
end
end
if (solution_domain == 2)
if (turbmodel <= 10)
Q = uhat;
end
if (turbmodel == 11 || turbmodel == 12)
Q = zeros(3*nx,1);
Q(1:3:end) = uhat;
Q(2:3:end) = w0hat;
Q(3:3:end) = w1hat;
end
if (turbmodel == 13 || turbmodel == 14)
Q = zeros(4*nx,1);
Q(1:4:end) = uhat;
Q(2:4:end) = w0hat;
Q(3:4:end) = w1hat;
Q(4:4:end) = w2hat;
end
end