rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
porsche_neumann_components.m
1 function neu_comp = porsche_neumann_components(glob,params)
2 %function neu_comp = porsche_neumann_components(glob,params)
3 %
4 % function setting the neumann components (i.e. the speed) in the
5 % porsche_model to the value given by model.speed
6 %
7 % input
8 % params: the porsche_model
9 % glob: n-by-2-matrix with the points of the grid
10 %
11 % ouput
12 % neu_comp: cell with the neumann_components
13 %
14 % needed fields in model:
15 % model.speed
16 % model.xrange
17 %
18 % Oliver Zeeb, 09.05.11
19 
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;
23 neu_comp={neu_comp};