forked from randlab/hytool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheha_cmp.m
More file actions
26 lines (24 loc) · 698 Bytes
/
eha_cmp.m
File metadata and controls
26 lines (24 loc) · 698 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
function s = eha_cmp( p, d)
%EHA_CMP - Intenal function that computes the drawdown for a variable rate pumping test using the Eden and Hazel (1973) method.
%
% Syntax: s = eha_cmp( p, d)
%
% p(1) = a = slope of late time straight line
% p(2) = A1 = intercept of the first straight line
% p(3) = A2 = intercept of the second straight line
%
% d = three colums matrix containing for each time step:
%
% column 1 = Hn = reduced time defined by Eden and Hazel
% column 2 = id. number of the pumping period
% column 3 = flow rate at this time
%
% See also: eha_pre, eha_gss, eha_rpt
%
a=p(1);
p(1)=[];
if( size(p,1)== 1 )
s=a.*d(:,1)+p(d(:,2))';
else
s=a.*d(:,1)+p(d(:,2));
end