![]() |
OptFEM2DP1 Toolbox
V1.2
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 2D
|
00001 function Test=valid_StiffElas() 00002 % Copyright: 00003 % See \ref license 00004 i=1; 00005 Test(i).u={@(x,y) x - 2.*y, @(x,y) x + y}; 00006 Test(i).cu={'x - 2*y','x + y'}; 00007 Test(i).v={@(x,y) x + 2.*y, @(x,y) 2.*x - y}; 00008 Test(i).cv={'x + 2*y','2*x - y'}; 00009 Test(i).Mass=-5/12; 00010 Test(i).Stiff=-8; 00011 Test(i).lambda=1; 00012 Test(i).mu=2; 00013 Test(i).degree=2; 00014 i=2; 00015 Test(i).u={@(x,y) x.^2 - 2.*x.*y, @(x,y) y.^2 + x}; 00016 Test(i).cu={'x^2 - 2*x*y','y^2 + x'}; 00017 Test(i).v={@(x,y) x.^2 + 2.*y.^2, @(x,y) 2.*x.^2 - x.*y}; 00018 Test(i).cv={'x^2 + 2*y^2','2*x^2 - x*y'}; 00019 Test(i).Mass=37/360; 00020 Test(i).Stiff=-4/3; 00021 Test(i).lambda=1; 00022 Test(i).mu=2; 00023 Test(i).degree=2; 00024 i=3; 00025 Test(i).u={@(x,y) x.^2 - y.^2, @(x,y) x.^3 - y.^3}; 00026 Test(i).cu={'x^2 - y^2','x^3 - y^3'}; 00027 Test(i).v={@(x,y) 2.*y.^3 + x, @(x,y) 2.*x.^2 - x.*y}; 00028 Test(i).cv={'2*y^3 + x','2*x^2 - x*y'}; 00029 Test(i).Mass=1/12; 00030 Test(i).Stiff=3; 00031 Test(i).lambda=1; 00032 Test(i).mu=1; 00033 Test(i).degree=2; 00034 i=4; 00035 Test(i).u={@(x,y) x.^2 - y.^4, @(x,y) x.^4 - y.^3}; 00036 Test(i).cu={'x^2 - y^4','x^4 - y^3'}; 00037 Test(i).v={@(x,y) x.^2.*y.^2 + 2.*y.^3, @(x,y) 2.*x.^2 - x.*y}; 00038 Test(i).cv={'x^2*y^2 + 2*y^3','2*x^2 - x*y'}; 00039 Test(i).Mass=1/14; 00040 Test(i).Stiff=5/9; 00041 Test(i).lambda=3; 00042 Test(i).mu=1; 00043 Test(i).degree=2; 00044 i=5; 00045 Test(i).u={@(x,y) x.^3.*y.^2 - x.^2 - y.^4, @(x,y) x.^4 - 2.*y.^5 - y.^3}; 00046 Test(i).cu={'x^3*y^2 - x^2 - y^4','x^4 - 2*y^5 - y^3'}; 00047 Test(i).v={@(x,y) x.^2.*y.^3 + 2.*y.^3, @(x,y) -x.^4.*y + 2.*x.^2}; 00048 Test(i).cv={'x^2*y^3 + 2*y^3','-x^4*y + 2*x^2'}; 00049 Test(i).Mass=-1927/4200; 00050 Test(i).Stiff=101/35; 00051 Test(i).lambda=1; 00052 Test(i).mu=3; 00053 Test(i).degree=2; 00054 i=6; 00055 Test(i).u={@(x,y) x.^6 + x.^3.*y.^2 - x.^2 - y.^4, @(x,y) -2.*x.*y.^5 + x.^5 - y.^3}; 00056 Test(i).cu={'x^6 + x^3*y^2 - x^2 - y^4','-2*x*y^5 + x^5 - y^3'}; 00057 Test(i).v={@(x,y) x.^3.*y.^3 + 2.*y.^3, @(x,y) -x.^4.*y.^2 + 2.*x.^2}; 00058 Test(i).cv={'x^3*y^3 + 2*y^3','-x^4*y^2 + 2*x^2'}; 00059 Test(i).Mass=-367/1120; 00060 Test(i).Stiff=1073/504; 00061 Test(i).lambda=1; 00062 Test(i).mu=2; 00063 Test(i).degree=2;