1 function neu_comp = porsche_neumann_components(glob,params)
2 %
function neu_comp = porsche_neumann_components(glob,params)
4 %
function setting the neumann components (i.e. the speed) in the
5 % porsche_model to the value given by model.speed
8 % params: the porsche_model
9 % glob: n-by-2-matrix with the points of the grid
12 % neu_comp: cell with the neumann_components
14 % needed fields in model:
18 % Oliver Zeeb, 09.05.11
20 neu_comp = zeros(size(glob,1),1);
21 ind_gamma_in = glob(:,1)<=params.xrange(1)+10*eps;
22 neu_comp(ind_gamma_in) = params.speed;