Professional Documents
Culture Documents
CHAPTER ONE
Essential Background
ô Mapping
The calculations for mapping areas can easily be performed in Matlab. Consider finding mapping for a curved quadrilateral
area. All four sides are curved and are defined by three points on each side for a total of 8 points. The master element has
eight nodes as shown in the figure. The coordinates of the key points are as follows.
pts = [0.5, 0.5; 1.1, 1.6; 1.7, 2.1; 1.5, 2.5; 1.1, 2.8;
MatlabFiles\Chap01\Quad8Mapping.m
3
pts = @0.5, 0.5; 1.1, 1.6; 1.7, 2.1; 1.5, 2.5; 1.1, 2.8;
% Mapping for a quadrilateral defined by the following eight points
H1 − s^2Lê2, ...
HH−1 + sL∗Hs − 2∗tLLê4, H−1 + sL∗tD;
x = n∗xn; y=n∗yn;
dxs=dns∗xn; dxt=dnt∗xn;
end
end
detJ=@D; x=@D; y=@D;
x = @x, mapHi:i+20,3LD;
for i=1:21:lengthHmapL
y = @y, mapHi:i+20,4LD;
detJ = @detJ, mapHi:i+20,5LD;
end
% Plot quadrilateral from mapped coordinates
% The surface plot shows detJ values
clf
hold on
meshHx,y, zerosHlengthHxLLL;
meshHx,y, detJL
titleH'Jacobian over mapped element'L
xlabelH'x'L; ylabelH'y'L; zlabelH'detJ'L
hold off
4
2.5
2
y
1.5
0.5
0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8
x
ô Differentiation
ij ÅÅÅÅÅÅÅÅÅÅ y ij ÅÅÅÅ yz ij ÅÅÅÅ yz
jj ∑x zzz jj ∑s zz jj ∑t zz
jj ∑N2 zz jj ∑N2 zz jj ∑N2 zz
∑N1 ∑N1 ∑N1
ÅÅÅÅÅÅ ÅÅÅÅÅ
Bx = jj ÅÅÅÅÅÅÅÅÅÅ zz = ÅÅÅÅ
ÅÅÅÅÅ J j zz - ÅÅÅÅ
ÅÅÅÅÅ J j zz
jj ∑x zz detJ 22 jjj ÅÅÅÅ∑sÅÅÅÅÅÅ zz detJ 21 jjj ÅÅÅÅ∑tÅÅÅÅÅ zz
j z j z j z
1 1
k ª { k ª { k ª {
ÅÅÅÅÅÅ zy
jij ÅÅÅÅ∑y zz
ij ÅÅÅÅ
jj ∑s
yz
zz
ij ÅÅÅÅ
jj ∑t
yz
zz
jj z j zz jj ∑N2 zz
∑N1
j z
∑N1 ∑N1
j
ÅÅÅÅÅÅ ÅÅÅÅÅÅ
B y = jjj ÅÅÅÅÅÅÅÅ2ÅÅ zzz = - ÅÅÅÅ
detJ 12 j
ÅÅÅÅÅ J j ÅÅÅÅÅÅÅÅ2ÅÅ zz + ÅÅÅÅ
ÅÅÅÅÅ J j zz
jj ∑y zz jj ∑s zz detJ 11 jjj ÅÅÅÅ∑tÅÅÅÅÅÅ zz
j z j z j z
∑N 1 ∑N 1
k ª { k ª { k ª {
Consider evaluation of derivatives of the interpolation vector with respect to x and y at s = 1 ê 2 and t = -1 ê 4 for the 8 node
element.
MatlabFiles\Chap01\Quad8Derivatives.m
5
coord = @0.5, 0.5; 1.1, 1.6; 1.7, 2.1; 1.5, 2.5; 1.1, 2.8;
% for the 8 node element.
>> Quad8Derivatives
b =
Columns 1 through 6
Columns 7 through 8
0.4035 -0.6466
-0.0805 -0.0788
ô Area integration
Consider evaluation of the following integral over the quadrilateral using 3 µ 3 Gauss quadrature.
MatlabFiles\Chap01\Quad8AreaIntegration.m
>> Quad8AreaIntegration
kk =
Columns 1 through 6
Columns 7 through 8
0.2795 -0.2533
-0.4689 -1.3028
0.6061 -0.2034
-0.6751 0.1178
0.5274 -0.0542
-1.7043 0.1730
1.6564 -0.2213
-0.2213 1.7442
ô Boundary integration
Consider evaluation of the following integral over side 3 of the quadrilateral using 3 point Gauss quadrature.
side 3
MatlabFiles\Chap01\Quad8LineIntegral.m
>> Quad8LineIntegral
ka =
Columns 1 through 6
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0.1420 0.0775
8
0 0 0 0 0.0775 0.3670
0 0 0 0 -0.0258 0.0258
0 0 0 0 0 0
Columns 7 through 8
0 0
0 0
0 0
0 0
-0.0258 0
0.0258 0
0.0645 0
0 0