Computational Assignment
Computational Assignment
Given data
Solution for this problem is done using FEM by following necessary steps as plain stress
problem analysis.
ASTU Page 1
Step 1- Discretizing the Domain:
Consider the problem as plane stress problem. And it is used linear triangular element to
discretize and a having a total of six elements with eight nodes.
The total force due to distributed load is divided in to node 5 and 8. With resultant force of
0.3375 kN downward and 10.4625 kN upward respectively.
1 1 5 6
2 1 2 5
3 2 4 5
4 2 3 4
5 5 8 7
6 5 7 6
ASTU Page 2
Step 2 -Writing the Element Stiffness Matrices
Six element stiffness matrices are obtained by making call to MATLAB Linear triangular
element stiffness. Each matrix has size of 6x6.
>> E=208e9;
>> t=0.02;
>> age=27;
>> NU=age/100;
>> k1 = LinearTriangleElementStiffness1(E,NU,t,0,0,0.25,0.25,0,0.25,1);
>> k2 = LinearTriangleElementStiffness1(E,NU,t,0,0,0.25,0,0.25,0.25,1);
>> k3 = LinearTriangleElementStiffness1(E,NU,t,0.25,0,0.5,0.25,0.25,0.25,1);
>> k4 = LinearTriangleElementStiffness1(E,NU,t,0.25,0,0.5,0,0.5,0.25,1);
>> k5 = LinearTriangleElementStiffness1(E,NU,t,0.25,0.25,0.25,0.5,0,0.5,1);
>> k6 = LinearTriangleElementStiffness1(E,NU,t,0.25,0.25,0,0.5,0,0.25,1);
The system has 8 nodes thus, global stiffness matrix K become 16x16. So to found K first set up
zero matrix of size 16x16 and call for MATLAB function of K=LinearTriangleAssemble . As the
matrix is large it is suppressed in the analysis.
>> K=zeros(16);
>> K = LinearTriangleAssemble(K,k1,1,5,6);
>> K = LinearTriangleAssemble(K,k2,1,2,5);
>> K = LinearTriangleAssemble(K,k3,2,4,5);
ASTU Page 3
>> K = LinearTriangleAssemble(K,k4,2,3,4);
>> K = LinearTriangleAssemble(K,k5,5,8,7);
>> K = LinearTriangleAssemble(K,k6,5,7,6);
U1x= U1y=U6x=U6y=U7x=U7y= 0
F2x=F2y=F3x=F3y=F4x=F5x=F8x=F8y=0
F5y= -0.3375*103 N, F4y=10.4625*103 N
Step 5 – Solving the Equation:
Solve the system of equation in step 3 will performed by partitioning manually and use
MATLAB. First call submatrix
>> Fp=[0,0,0,0,0,10462.5,0,-337.5,0,0]';
>> Up=Kp\Fp;
>> U=[0;0;Up(1:8);0;0;0;0;Up(9:10)];
ASTU Page 4
Step 6–post – processing:
ASTU Page 5
As ∑ Fx= 0 and ∑ Fy= 0 force equilibrium is satisfied.
Then set up the element nodal displacement vector and solve for element stress sigma.
>> U=[0;0;Up(1:8);0;0;0;0;Up(9:10)];
>> u1=[U(1:2);U(9:12)];
>> u2=[U(1:4);U(9:10)];
>> u3=[U(3:4);U(7:10)];
>> u4=[U(3:8)];
>> u5=[U(9:10);U(13:16)];
>> u6=[U(9:10);U(11:14)];
Now it is possible to calculate the principal stresses and principal angle for each element by
making
pstr1 =
1.0e+06 *
0.7357
-2.4370
-0.0000
ASTU Page 6
pstr2 = LinearTriangleElementPStresses(str2)
pstr2 =
1.0e+06 *
3.9639
0.4101
-0.0000
The major principal stress distribution on a vertical face 0.125m from the fixed support is similar
to the principal stresses calculated at the cancroids for element no 1 ,2 , 5 and 6 as the problem is
solved by CST method
ASTU Page 7
2. The rectangular beam in Fig. 3 has a square opening of side length S. Use the load
magnitudes, type and number of elements, length of side of the square given in Table- 1
to compute the displacement, forces at A,B, C and at the load application points. Point B
is at center and use the material data given in Question number 1.
Given data
Required
Solution
ASTU Page 8
Solution for this problem is done using FEM by following necessary steps as plane stress
problem analysis.
The problem is needed to analyze as plane stress problem. And it is used Constant Strain
Triangle (CST) to discretize and a having a total of 12 elements with 12 nodes.
Element Nodes
1 1 4 12
2 1 2 4
3 2 5 4
ASTU Page 9
4 2 3 5
5 3 6 5
6 5 6 7
7 6 8 7
8 7 8 9
9 7 9 10
10 10 9 11
11 10 11 12
12 12 4 10
>> E=209e9;
>> NU=0.27;
>> t=0.02;
>> k1 = LinearTriangleElementStiffness1(E,NU,t,0,0,0.375,0.25,0,0.375,1);
>> k2 = LinearTriangleElementStiffness1(E,NU,t,0,0,0.5,0,0.375,0.25,1);
>> k3 = LinearTriangleElementStiffness1(E,NU,t,0.5,0,0.625,0.25,0.375,0.25,1);
>> k4 = LinearTriangleElementStiffness1(E,NU,t,0.5,0,1,0,0.625,0.25,1);
>> k5 = LinearTriangleElementStiffness1(E,NU,t,1,0,1,0.375,0.625,0.25,1);
>> k6 = LinearTriangleElementStiffness1(E,NU,t,0.625,0.25,1,0.375,0.625,0.5,1);
>> k7 = LinearTriangleElementStiffness1(E,NU,t,1,0.375,1,0.75,0.625,0.5,1);
>> k8 = LinearTriangleElementStiffness1(E,NU,t,0.625,0.5,1,0.75,0.5,0.75,1);
>> k9 = LinearTriangleElementStiffness1(E,NU,t,0.625,0.5,0.5,0.75,0.375,0.5,1);
ASTU Page 10
>> k10 = LinearTriangleElementStiffness1(E,NU,t,0.375,0.5,0.5,0.75,0,0.75,1);
The system has 12 nodes thus, global stiffness matrix K become 24x24. So to found K first
set up zero matrix of size K and call for MATLAB function of K=LinearTriangleAssemble .
>> K=zeros(24);
>> K = LinearTriangleAssemble(K,k1,1,4,12);
>> K = LinearTriangleAssemble(K,k2,1,2,4);
>> K = LinearTriangleAssemble(K,k3,2,5,4);
>> K = LinearTriangleAssemble(K,k4,2,3,5);
>> K = LinearTriangleAssemble(K,k5,3,6,5);
>> K = LinearTriangleAssemble(K,k6,5,6,7);
>> K = LinearTriangleAssemble(K,k7,6,8,7);
>> K = LinearTriangleAssemble(K,k8,7,8,9);
>> K = LinearTriangleAssemble(K,k9,7,9,10);
>> K = LinearTriangleAssemble(K,k10,10,9,11);
>> K = LinearTriangleAssemble(K,k11,10,11,12);
>> K = LinearTriangleAssemble(K,k12,12,4,10);
U1=U2=U21=U22=U23=U24=0
ASTU Page 11
St= Natural Boundary Condition
F3=F4=F5=F6=F7=F8=F9=F10=F11=F12=F13=F14=F17=F19=F20=0
Solve the system of equation in step 3 will performed by partitioning manually and use
MATLAB. First call Partitioned Stiffness matrix Kp
>> Kp=K(3:20,3:20);
>> Fp=[0,0,20,0,0,0,0,0,0,0,0,0,18,-31.25,0,-62.5,0,0]';
X Y Fx Fy Ux Uy
3 1 0 20 0 -0.0236 -0.1403
ASTU Page 12
5. Consider the footing in Fig. 5.
a) Assume that the two layers in the figure are of the same type of soil (Sand Soil). Compare
the stress at a depth Z from the surface using both numerical method and Boussinesq
formula for point load.
Given data:
Solution
Boussinesq (1883) solved the problem for stresses inside a semi-infinite mass due to a point load
acting on the surface. In rectangular coordinates, the stresses may be expressed as follows:
ASTU Page 13
At center X=0, Y=0
Therefore, result from numerical method and Boussinesq formula for point load will be:
1 114.59
2 28.65
3 12.73
4 7.16
5 4.58
6 3.18
7 2.33
8 1.7
ASTU Page 14
Solution using FEM
The solution for question 5 and 6 is done by Linear Constant Strain (LST) method. Or using
MATLAB function QuadTriangleElementStiffness, but the final result of the analysis cannot
defined by the program, the program displays the solution as not a number(Nan).
b) Assume that you have two layers as given in the figure above. Use both theoretical estimation
and computational method (FEM) to estimate the stresses, settlement due to the distributed load
from the water tank and self-weight of the soil at depth Z below the surface. Use the following
data.
Solution
For the first layer the stress distribution below the center of the loaded area is calculated using
the ‘Boussinesq’ formula for a uniform vertical loading on a circular area:
ASTU Page 15
4 0.25 0.087 10.44 76 86.44
For two-layer system using Poisson’s ratio method, Equivalent Poisson’s ratio is used in
ASTU Page 16