rbmatlab 0.10.01
models/common/postprocess_gravity.m
Go to the documentation of this file.
00001 function data = postprocess_gravity(data, glob, params)
00002 %function data = postprocess_gravity(data, glob, params)
00003 % subtracts a previously added addent induced by gravitational effects.
00004 %
00005 % In case of a numerical scheme for the Richard's equation it is possible to
00006 % model gravity by adding a defect growing with height to the initial data
00007 % function. This way, the resulting concentration gradient diffuses a down-ward
00008 % flow is created.
00009 %
00010 % required fields of params:
00011 %   - 'gravity':   gravitational factor
00012 
00013 data = data - glob(:,2) * params.gravity;
00014 
00015 end
00016 %| \docupdate 
 All Classes Namespaces Files Functions Variables