1 function U = my_u0_components(X,Y,params)
2 %
function U = my_u0_components(X,Y,params)
4 %
function computing parameter independent components of a
function
5 % f. The
function f is obtained by computing corresponding
6 % parameter dependent coefficients and then computing a linear combination
8 % Initial data
function is consistent with dirichlet values.
9 % See my_udir_coefficients
for specification of the
function.
11 % Bernard Haasdonk 24.10.2008
13 U = {sin(pi*X).*(X<Y) + sin(pi*Y).*(X>=Y)};