Beruflich Dokumente
Kultur Dokumente
Homework Assignment 1
Roll Number:
10327715
Siddhartha Srivastava
Contents
1 Introduction
1.1 Beam Problem . . . . . . . . . . .
1.2 Weak Formulation . . . . . . . . .
1.3 hp version . . . . . . . . . . . . . .
1.4 ZienkiewiczZhus patch recovery .
2 FEM analysis
2.1 Patch Test . . . . . . . . . . . .
2.2 p version . . . . . . . . . . . . .
2.3 h version . . . . . . . . . . . . .
2.4 Jumps and Discontinuities . . .
2.4.1 Point Loads . . . . . . .
2.4.2 Material Discontinuities
2.5 Recovered Derivative . . . . . .
2.6 Complex Simulations . . . . . .
.
.
.
.
.
.
.
.
3 Conclusion
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2
2
2
2
3
.
.
.
.
.
.
.
.
3
3
4
4
7
8
8
9
11
14
Siddhartha Srivastava
Introduction
The finite element method is a powerful tool for solving differential equations. The
method can easily deal with complex geometries and higher-order approximations of
the solution. The idea is to divide the domain into elements and seek a polynomial
approximations to the unknown functions on each element. The method glues these
piece-wise approximations together to find a global solution.
1.1
Beam Problem
1.2
(1)
Weak Formulation
The weak formulation of the above problem can be found by multiplying a weight
function to the strong form and integrating the equation using integration by parts.
We get the final form of weak form as:
1
Z 1
Z 1
du
du dv
+ kuv dx =
f vdx + (EA )v
(2)
EA
dx dx
dx
0
0
0
1.3
hp version
hp-FEM is a general version of the finite element method (FEM), based on piecewisepolynomial approximations that employs elements of variable size (h) and polynomial degree (p). The finite element method converges exponentially fast when the
Siddhartha Srivastava
1.4
ZienkiewiczZhus patch recovery method or the ZZ recovery method uses the nodal
averaging method to obtain recovered stresses and compared stresses interpolated
from the recovered stresses with those computed from the finite element solution at
the quadrature points to find the error in the numerical solution. Thus it provides
a 1 level higher order approximation (better fit) for the derivatives.
FEM analysis
In this section a brief analysis of the h and p version of the FEM as well recovery
method of derivative is presented.
2.1
Patch Test
Consider the following example of beam under axial loading for testing the validity
of code as well as well as for understanding few properties of FEM based solutions
Let the distributed loading f be given as
f = 12x2
(3)
(4)
On analytically solving the strong form and applying the Boundary conditions we
get,
u = x4 4x
(5)
2.2
Siddhartha Srivastava
p version
For p version analysis of the problem mentioned in the section 2.1, we take a single
element and vary the p i.e. order of approximation of the finite element solution.
Please note that for this version of code higher order lagrange shape functions are
used.
0
p=1
p=2
p=3
p=4
exact
0.5
Displacement
1.5
2.5
3.5
0.1
0.2
0.3
0.4
0.5
0.6
Position (x)
0.7
0.8
0.9
2.3
(6)
h version
For h version analysis of the problem given in 2.1, we now take different number
of elements while keeping the order of approximation constant as 1. The value of
Siddhartha Srivastava
0
p=1
p=2
p=3
p=4
exact solution
0.5
1
1.5
du/dx
2
2.5
3
3.5
4
4.5
5
0.1
0.2
0.3
0.4
0.5
0.6
Position(x)
0.7
0.8
0.9
1.2
Curve Fit:
error=5.262*exp(1.607*p)
1
error
0.8
0.6
0.4
0.2
1.5
2
2.5
3
Order of approximation (p)
3.5
Siddhartha Srivastava
FEM Solutions
0
nelem=1
nelem=2
nelem=4
nelem=8
nelem=16
nelem=32
0.5
Function Value
1.5
2.5
3
0
0.1
0.2
0.3
0.4
0.5
0.6
Xvalues
0.7
0.8
0.9
0.9
0.5
1
du/dx
1.5
2
2.5
3
3.5
4
0.1
0.2
0.3
0.4
0.5
0.6
Position (x)
0.7
0.8
Siddhartha Srivastava
0.7
0.6
Estimated error
Exponential Fit
error
0.5
0.4
0.3
0.2
0.1
0
10
15
20
Number of elements
25
30
35
0.12
Error
0.1
0.08
0.06
0.04
0.02
0
10
15
20
Number of Elements
25
30
35
2.4
Jumps and Discontinuities in the stress can be caused either by application of point
loads or by discontinuities in material properties.
2.4.1
Siddhartha Srivastava
Point Loads
Consider the following example where a point load of 1 unit is acting at x=0.5.
Assume no other force is acting on the body. Since f = 0, u must be piece-wise
linear in x. Therefore as seen in section 2.2 a piecewise linear function can exactly
solve the problem. The jump in the stresses can be evaluated by
EA
du
du
|x EA |x+ = Q
dx
dx
(7)
x
: 0 x < 0.5
0.5 : 0.5 x 1
1 : 0 x < 0.5
0 : 0.5 x 1
u(x) =
and,
du
=
dx
FEM Solutions
0.6
0.5
u(x)
0.4
0.3
0.2
0.1
0
0.1
0.2
0.3
0.4
0.5
0.6
Position(x)
0.7
0.8
0.9
Material Discontinuities
Siddhartha Srivastava
Derivative
du/dx
0.8
0.6
0.4
0.2
0.1
0.2
0.3
0.4
0.5
0.6
Position(X)
0.7
0.8
0.9
The exact solution for the problem can be found out to be:
u(x) =
x
: 0 x < 0.5
0.5 (0.5 + x) : 0.5 x 1
and,
du
=
dx
1
: 0 x < 0.5
0.5 : 0.5 x 1
It is evident from figure 11 and figure 12 that the FEM solutions are exact. Further
figure 12 shows jump in stress at material discontinuity at x = 0.5.
2.5
Recovered Derivative
Siddhartha Srivastava
FEM Solutions
0.8
0.7
0.6
u(x)
0.5
0.4
0.3
0.2
0.1
0
0.1
0.2
0.3
0.4
0.5
0.6
Position(X)
0.7
0.8
0.9
0.9
du/dx
0.8
0.6
0.4
0.2
0
0
0.1
0.2
0.3
0.4
0.5
Xvalues
0.6
0.7
0.8
10
Siddhartha Srivastava
Derivative
0
0.5
p=2
Derivative
Recovered derivative
p=3
exact solution
du/dx
1.5
2
2.5
3
3.5
4
4.5
0.1
0.2
0.3
0.4
0.5
0.6
Position(x)
0.7
0.8
0.9
du/dx
0.8
0.6
0.4
0.2
0
0.2
0.1
0.2
0.3
0.4
0.5
0.6
Position(X)
0.7
0.8
0.9
2.6
Complex Simulations
The code provides platform for complex simulations like multiple point loads, piecewise polynomial/sinusoidal elastic properties, spring stiffness and distributed forces.
It also provides options different boundary conditions (Dirichlet, Neumann and
Robin).
To test their applicability, let us take one such complex problem. Let the distributed
11
Siddhartha Srivastava
Derivative
1.2
du/dx
0.8
0.6
0.4
0.2
0
0
0.1
0.2
0.3
0.4
0.5
Xvalues
0.6
0.7
0.8
0.9
1+
: 0 x < 0.5
1 + x : 0.5 x 1
1+
: 0 x < 0.5
1 + x : 0.5 x 1
12
Siddhartha Srivastava
FEM Solutions
1.2
1
0.8
u(x)
0.6
0.4
0.2
0
0.2
0.1
0.2
0.3
0.4
0.5
0.6
Position (X)
0.7
0.8
0.9
du/dx
10
8
FEM Solutions
Recovered derivative
4
2
0
2
4
0
0.1
0.2
0.3
0.4
0.5
0.6
Xvalues
0.7
0.8
0.9
13
Siddhartha Srivastava
Conclusion
It was evident from the examples covered that even a simple 1D beam problem
presents challenging issues in numerical simulations. Discussions presented in examples cater some of these issues. As per the arguments presented even with a
benchmarked code and post processing tools in place, the results should be evaluated with an observant eye.
14