forked from randlab/hytool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grf_drw.m
79 lines (67 loc) · 1.34 KB
/
grf_drw.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
72
73
74
75
76
function grf_drw(rd)
%GRF_DRW - Draw the type curves of Barker
%
% Syntax: grf_drw( rd )
%
% rd = dimensionless radius = r/rw
%
% Description:
% Draw a series of type curves of Barker (1988).
%
% See also: grf_dim, grf_dls
%
if(nargin==0) % Default value for rd if not given by user
rd=1;
end
figure(1)
clf
t=logspace(-1,4)*rd.^2;
clf
for n=1:.5:3
s=grf_dls([n,rd],t);
[x,d]=ldiff(t,s);
loglog(t,s,'-','LineWidth',2)
hold on
end
legend({'n=1','n=1.5','n=2','n=2.5','n=3'},...
'FontSize',16,'Location','NorthWest')
title(sprintf('GRF model for r_D = %g',rd),'FontSize',16)
xlabel('t_D','FontSize',16)
ylabel('s_D','FontSize',16)
figure(2)
clf
n=[1.5,2,2.5,3];
for i=1:4
subplot(2,2,i)
s=grf_dls([n(i),rd],t);
[x,y]=ldiff(t,s);
loglog(t,s,'-','LineWidth',2); hold on
loglog(x,y,'-.','LineWidth',2)
xlabel('t_D')
ylabel('s_D')
title(sprintf('r_D=%g, n=%g',rd,n(i)))
axis tight
%axis([min(t) max(t) 1e-2 1e2])
end
figure(3)
clf
t=logspace(-1,6)*rd.^2;
subplot(1,2,1)
s=grf_dls([1.5,rd],t);
[x,y]=ldiff(t,s);
loglog(t,s,'k-','LineWidth',1.5)
grid on
hold on
loglog(x,y,'k-.','LineWidth',1.5)
grid on
%yticks([])
%xticks([])
axis([1e-1 1e6 1e-2 1e2])
subplot(1,2,2)
semilogx(t,s,'k-','LineWidth',1.5)
hold on
plot(x,y,'k-.','LineWidth',1.5)
axis([1e-1 1e6 1e-2 70])
grid on
%yticks([])
%xticks([])