rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
postprocess_gravity.m
Go to the documentation of this file.
1 function data = postprocess_gravity(data, glob, params)
2 %function data = postprocess_gravity(data, glob, params)
3 % subtracts a previously added addent induced by gravitational effects.
4 %
5 % In case of a numerical scheme for the Richard's equation it is possible to
6 % model gravity by adding a defect growing with height to the initial data
7 % function. This way, the resulting concentration gradient diffuses a down-ward
8 % flow is created.
9 %
10 % required fields of params:
11 % - 'gravity': gravitational factor
12 
13 data = data - glob(:,2) * params.gravity;
14 
15 end
16 %| \docupdate
function data = postprocess_gravity(data, glob, params)
subtracts a previously added addent induced by gravitational effects.