3 % This is the first
function from
6 % This implements the
function
9 % -\frac{\lambda p}{m} x
10 % - \frac{\lambda^2}{m} t
12 % \right)^{\frac{1}{p}}
16 % \partial_t u = - \partial_x \left( u^p \partial_x u \right)
18 % where
'[x,y]' is given by
'glob', and the
function parameters are read from
19 %
'params'. We use
this function for an EOC test of our newton_model().
22 % glob: global coordinate vectors
23 % params: parameter specifying the
function
25 % required fields of params:
26 % t: time instance at which the spatial solution is computed
28 % optional fields of params:
29 % plaplace_A: scalar specifying constant `A` (Default = 1.0)
30 % plaplace_lambda: scalar specifying constant `\lambda` (Default = 0.8)
31 % diff_p: scalar specifying the exponent constant
'p' (Default = 0.5)
32 % diff_m: scalar specifying the constant
'm' (Default = 1.0)
36 if ~isfield(params, 'plaplace_A')
37 params.plaplace_A = 1.20;
40 if ~isfield(params, 'plaplace_lambda')
41 params.plaplace_lambda = 0.8;
43 %A = params.plaplace_A;
44 %lambda = params.plaplace_lambda;
46 if ~isfield(params, 'diff_p')
51 if ~isfield(params, 'diff_m')
59 % res = (-lambda * p/m * X - lambda^2*p/m*t + A).^(1/p);
function res = exact_function_plaplace(glob, params)
This is the first function from http://eqworld.ipmnet.ru/en/solutions/npde/npde1201.pdf.