rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
dirichlet_values_homogeneous.m
Go to the documentation of this file.
1 function Udirichlet = dirichlet_values_homogeneous(glob, params)
2 % function Udirichlet = dirichlet_values_homogeneous(glob, params)
3 % function computing homogeneous dirichlet-values by
4 % pointwise evaluations
5 %
6 % required fields of params:
7 % c_dir : constant dirichlet value
8 %
9 
10 % glob column check
11 if params.debug
12  if ~isempty(glob) && size(glob,1) < size(glob,2)
13  warning('coordinates in variable glob are given row-wise, but expected them to be column-wise');
14  if params.debug > 2
15  keyboard;
16  end
17  end
18 end
19 decomp_mode = params.decomp_mode;
20 
21 
22 if decomp_mode == 2
23  Udirichlet = params.c_dir;
24 elseif decomp_mode == 0
25  Udirichlet = params.c_dir * ones(length(glob),1);
26 elseif decomp_mode == 1
27  Udirichlet = { ones(length(glob),1) };
28 end
29 
30 %| \docupdate
function Udirichlet = dirichlet_values_homogeneous(glob, params)
function computing homogeneous dirichlet-values by pointwise evaluations