4 function kw = water_permeability(
this, glob, S, model)
7 kw = model.tp_kw_factor * Squadrat ./ (Squadrat + (1-S).^(0.5));
10 function dkw = water_permeability_derivative(this, glob, S, model)
13 unten = oben + (1-S).^(0.5);
16 unten_der = oben_der - 0.5 * (1-S).^(-0.5);
18 dkw = model.tp_kw_factor * (oben_der .* unten - oben .* unten_der) ./ (unten .* unten);
19 assert(~any(isnan(dkw)));
22 function ko = oil_permeability(this, glob, S, model)
24 Squadrat = (1-S).*(1-S);
25 ko = model.tp_ko_factor * Squadrat ./ (Squadrat + S.^(0.5));
28 function dko = oil_permeability_derivative(this, glob, S, model)
30 oben = (1-S) .* (1-S);
31 unten = oben + S.^(0.5);
33 oben_der = -2 + 2 * S;
34 unten_der = oben_der + 0.5 * S.^(-0.5);
36 dko = model.tp_ko_factor * (oben_der .* unten - oben .* unten_der) ./ (unten .* unten);
37 assert(~any(isnan(dko)));
40 function pc = capillary_pressure(this, glob, S, model)
42 pc = model.tp_pb * S.^(-1/model.tp_lambda);
45 function dpc = capillary_pressure_derivative(this, glob, S, model)
47 dpc = model.tp_pb .* (-1/model.tp_lambda) .* S.^(-1/model.tp_lambda - 1);
50 function ddpc = capillary_pressure_second_derivative(this, glob, S, model)
52 ddpc = model.tp_pb .* (-1/model.tp_lambda).*(-1/model.tp_lambda - 1) .* S.^(-1/model.tp_lambda - 2);
55 function c = injection_concentration(this, glob, model)
60 function s_under = lower_source(this, glob, model)
65 function s_above = upper_source(this, glob, model)
70 function descr = default_descr(this, descr)
72 descr.tp_kw_factor = 1;
73 descr.tp_ko_factor = 1;
74 descr.tp_lambda = 0.5;