-
Notifications
You must be signed in to change notification settings - Fork 0
/
TOF.m
71 lines (60 loc) · 1.3 KB
/
TOF.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
% start the outer loop for selecting the initial alpha0 and beta0 values
% at centre of each cell
global p q r tofp actofp e nx ny nz poro recursion_limit recursion_error;
nx=30;
ny=110;
nz=8;
poro=poro2212;
%error
e=0.00000001;
tofp(1:ny,1:nx,1:nz)=0;
actofp(1:ny,1:nx,1:nz)=0;
for r=1:nz
for p=1:ny
for q=1:nx
tofp(p,q,r)=0;
actofp(p,q,r)=0;
alpha0_s=0.5;
beta0_s=0.5;
gamma0_s=0.5;
disp('TOFP');
disp([q p r]);
%select cell indices
n=q;
m=p;
l=r;
recursion_limit=0;
singlecell_tofp_calculator(alpha0_s,beta0_s,gamma0_s,m,n,l,qx,qy,qz);
end
end
end
TOFP=actofp;
% tofp(1:ny,1:nx,1:nz)=0;
% actofp(1:ny,1:nx,1:nz)=0;
%
% for r=1:nz
% for p= 1:ny
%
% for q= 1:nx
%
% tofp(p,q,r)=0;
% actofp(p,q,r)=0;
%
% alpha0_s=0.5;
% beta0_s=0.5;
% gamma0_s=0.5;
% disp('TOFI');
% disp([q p r]);
% % select cell indices
% n=q;
% m=p;
% l=r;
% singlecell_tofp_calculator(alpha0_s,beta0_s,gamma0_s,m,n,l,-qx,-qy,-qz);
%
% end
%
% end
% end
% TOFI=actofp;
% TTOF=TOFI+TOFP;
%