| 1 |
function [txy] = u_t(x,y,type); |
| 2 |
%U_T Analytical solution (for testing purposes, if available) |
| 3 |
% |
| 4 |
% Usage: [txy] = u_t(x,y,type); |
| 5 |
% |
| 6 |
% Input: |
| 7 |
% |
| 8 |
% xm(1:L,1) ==> x-coordindinates of evaluation points |
| 9 |
% ym(1:L,1) ==> y-coordindinates of evaluation points |
| 10 |
% type(1:L,1) ==> point type (interior/diri/neum) |
| 11 |
% |
| 12 |
% Output: |
| 13 |
% |
| 14 |
% txy ==> value of the analytical solution at evaluation points |
| 15 |
% |
| 16 |
% Author: Michael Holst |
| 17 |
% rcsid="$Id: u_t.m,v 1.2 2008/03/12 06:23:07 fetk Exp $" |
| 18 |
|
| 19 |
[M,one] = size(x); |
| 20 |
|
| 21 |
txy = zeros(M,1); |
| 22 |
txy = sin(pi*x) .* sin(pi*y); |
| 23 |
|