method of finite elements i...method of finite elements i. if we imagine there were forces (virtual...
TRANSCRIPT
Institute of Structural Engineering Page 1
Method of Finite Elements I
Chapter 3
Variational Formulation & the Galerkin Method
Book Chapters[O] V1/Ch1/1- 13[F] Ch1
Institute of Structural Engineering Page 2
Method of Finite Elements I
Today’s Lecture Contents:
• Introduction
• Differential formulation
• Principle of Virtual Work
• Variational formulations
• Approximative methods
• The Galerkin Approach
Institute of Structural Engineering Page 3
Method of Finite Elements I
FE across different dimensions
The lectures so far have deal with the Structural Approach to Finite Elements, namely the Direct Stiffness Method. These were elements serving specific loading conditions (trussaxial loads / beam bending)
However, the Finite Elements family includes further and usually more generic members, each one typically suited for a particular domain (1D, 2D or 3D) and intended for solution of problems, as these are specified by their governing equations.
Institute of Structural Engineering Page 4
Method of Finite Elements I
FE across different dimensions
©Carlos Felippa
Institute of Structural Engineering Page 5
Method of Finite Elements I
Different Elements demonstrate a different degree of complexity
Truss element2nodes, 2DOFs
Tri-cubic brick element64nodes, 192DOFs@
C. F
elip
pa
FE across different dimensions
No wonder we will here use the truss element for demonstration!
Institute of Structural Engineering Page 6
Method of Finite Elements I
The differential form of physical processesThe governing laws of physical processes are usually expressed in a differential form:
• The Laplace equation in two dimensions:
(e.g. the heat conduction problem)
• The isotropic slab equation:
• The axially loaded bar equation:
Institute of Structural Engineering Page 7
Method of Finite Elements I
The differential form of physical processes1D: The axially loaded bar example.Consider a bar loaded with constant end load R.
Given: Length L, Section Area A, Young's modulus EFind: stresses and deformations.
Assumptions:The cross-section of the bar does not change after loading.The material is linear elastic, isotropic, and homogeneous.The load is centric.End-effects are not of interest to us.
Strength of Materials Approach
Equilibrium equation
( )( ) Rf x R xA
σ= ⇒ =x
R
R
L-x
f(x)
Constitutive equation (Hooke’s Law)
( )( )x Rx
E AEσ
ε = =
Kinematics equation
( ) ( )xxx
δε =
( ) RxxAE
δ =
Institute of Structural Engineering Page 8
Method of Finite Elements I
The differential form of physical processes
The Mechanics of Materials approach exemplified in the previous slide, is an approach that is not easily generalizable.
Instead, we would like to follow an approach, which initiates from a generic infinitesimal volume of our given structure.
For the 1D case, as in the employed bar example, the infinitesimal volume degenerates to an infinitesimal length Δx (see next slide)
This is the so-called differential approach, whichestablishes a continuous differential equation as thegoverning equation of the problem, termed the strong form.
Institute of Structural Engineering Page 9
Method of Finite Elements I
The differential form of physical processes1D: The axially loaded bar example.Consider and infinitesimal element of the bar:
Given: Length L, Section Area A, Young's modulus EFind: stresses and deformations.
Assumptions:The cross-section of the bar does not change after loading.The material is linear elastic, isotropic, and homogeneous.The load is centric.End-effects are not of interest to us.
The Differential ApproachEquilibrium equation
Constitutive equation (Hooke’s Law)Eσ ε=
Kinematics equationdudx
ε =
0( ) lim 0 0
x
dA A A Ax dxσ σσ σ σ
∆ →
∆= + ∆ ⇒ = ⇒ =
∆
( )
2
2
(0) 0 0
0
x L
d u Strong Form
Boundary Conditions (BC)Esse
AEd
uL
duAE Rd
x
ntial BC
Natural Bx
C
σ
=
=
⇒
=
=
=
Institute of Structural Engineering Page 10
Method of Finite Elements I
The differential form of physical processes
Definition
The strong form of a physical process is the well posed set of the underlying differential equation with the accompanying boundary conditions.
1D: The axially loaded bar example. The Differential Approach
2
2
(0) 0
0
x L
Strong Form
EuduAE Rdx
d uAEdx
ssential BC
Natural BC=
=
=
=
x
R
Institute of Structural Engineering Page 11
Method of Finite Elements I
Analytical Solution:
1 2 1( )( ) & !( )h
du xu x u C x C x constCdx
ε= = =+ = =
This is a homogeneous 2nd order ODE with known solution:Let’s attempt to find the solution to this problem:
The differential form of physical processes
1D: The axially loaded bar example. The Differential Approach
2
2
(0) 0
0
x L
Strong Form
EuduAE Rdx
d uAEdx
ssential BC
Natural BC=
=
=
=
x
R
Institute of Structural Engineering Page 12
Method of Finite Elements I
The differential form of physical processes
1D: The axially loaded bar example. The Differential Approach
Analytical Solution:
2(0) 0
1 21
0( )
x L
uh du R
dx EA
Cu x u C x C RC
EA=
=
=
== = + → ⇒
=
2
2
(0) 0
0
x L
Strong Form
EuduAE Rdx
d uAEdx
ssential BC
Natural BC=
=
=
=
( ) Rxu xAE
=
x
R
To fully define the solution (i.e., to evaluate the values of parameters ) we have to use the given boundary conditions (BC):
Institute of Structural Engineering Page 13
Method of Finite Elements I
The differential form of physical processes
However, determination of the problem solution via an analytical approach is not always straightforward nor feasible.
Beyond the very simple example employed herein, actual problems are far more complex, with more members, and more complex loads and boundary conditions involved.
Let’s examine for example what the problem looks like when we go to the 2D or 3D domains:
Institute of Structural Engineering Page 14
Method of Finite Elements I
The Strong form – 2D caseA generic expression of the two-dimensional strong form is:
and a generic expression of the accompanying set of boundary conditions:
: Essential or Dirichlet BCs
: Natural or von Neumann BCs
Disadvantages
The analytical solution in such equations is i. In many cases difficult to be evaluatedii. In most cases CANNOT be evaluated at all. Why?
• Complex geometries• Complex loading and boundary conditions
Institute of Structural Engineering Page 15
Method of Finite Elements I
The differential form of physical processes
Instead of trying to solve the problem analytically, we would like to do it in an approximate, i.e., numerical way.
To this end, let us first consider what are the possible ways in which the system is allowed to deform.
Let’s consider this for instance, for the example we have on the bar problem (next slide), and let’s see what are the kinematically admissible ways for the system to deform from a state u(x) to a state u(x)+δu(x)
Solution by approximation
Institute of Structural Engineering Page 16
Method of Finite Elements I
Admissible Displacements δu(x)
©Carlos Felippa
Institute of Structural Engineering Page 17
Method of Finite Elements I
The differential form of physical processes
All kinematically admissible deformations are candidates for our system to deform. However, only one of these possible paths u*(x) will be the true one under a given set of loads.
Which one is the true deformation u*(x)?
It is the one satisfying the well-established principle ofvirtual work
Solution by approximation
Institute of Structural Engineering Page 18
Method of Finite Elements I
The virtual work of a system of equilibrium forces vanishes when compatible virtual displacements δu(x) are imposed:
f f
f
S T ST T B iT iC
iV V S
dV dV dS= + +∑∫ ∫ ∫ε τ U f U f U R
Internal Virtual Work External Virtual Work
ετ
fSf𝐟𝐟𝐵𝐵
1CR
2CR
fS
V
Principle of Virtual Work
Institute of Structural Engineering Page 19
Method of Finite Elements I
Principle of Virtual Work
The virtual work of a system of equilibrium forces vanishes when compatible virtual displacements δu(x) are imposed:
f f
f
S T ST T B iT iC
iV V S
dV dV dS= + +∑∫ ∫ ∫ε τ U f U f U R
Stresses in equilibrium with applied loads
Virtual strains corresponding to virtual displacements
Internal Virtual Work External Virtual Work
Institute of Structural Engineering Page 20
Method of Finite Elements I
The Minimum Potential Energy (MPE) Principle
For elastic systems subject to conservative forces (which is the case of systems we are dealing with), the principle of Virtual Work is equivalent to the principle of minimum total potential energy (MPE).
The MPE principle states that the actual displacement solution u*(x), out of possible trial solutions, that satisfies the governing equations is the one which renders the Total Potential Energy functional Π stationary:
0 *U W iff u uδ δ δΠ = − = =
©Carlos Felippa
Internal energy (= strain energy)
External work
1 12 2
0 0
l l du duU EA dx EA dxdx dx
ε ε= = =∫ ∫
0
( )l
W qudx Ru L= + =∫conc. load
distr. load
Institute of Structural Engineering Page 21
Method of Finite Elements I
Variational Formulation
• By utilizing the previous variational formulation, it is possible to obtain a formulation of the problem, which is of lower complexity than the original differential form (strong form).
• This is also known as the weak form, which however can also be attained by following an alternate path (see Galerkinformulation).
• For approximate solutions, a larger class of trial solutions u(x) can be employed than in the differential formulation; for example, the trial functions need not satisfy the natural boundary conditions because these boundary conditions are implicitly contained in the functional – this is extensively used in MFE.
Institute of Structural Engineering Page 22
Method of Finite Elements I
Approximative MethodsInstead of trying to find the exact solution of the continuous system, i.e., of the strong form, try to derive an estimate of what the solution should be at specific points within the system.
The procedure of reducing the physical process to its discrete counterpart is the discretisation process.
Institute of Structural Engineering Page 23
Method of Finite Elements I
Variational Methods approximation is based on the minimization of a functional, as those defined in the earlier slides.
• Rayleigh-Ritz Method
Weighted Residual Methods start with an estimate of the the solution and demand that its weighted average error is minimized
• The Galerkin Method
• The Least Square Method
• The Collocation Method
• The Subdomain Method
• Pseudo-spectral Methods
Approximative Methods
Here, we focus on this approach
Institute of Structural Engineering Page 24
Method of Finite Elements I
Bar Problem: Strong FormFocus: Now assume the axially loaded bar BUT with distributed load:
Analytical Solution:
3(0) 0
1 20 2
2
1
( ) 06
2
x L
uh p du
dx
axu x u u C x CCEA
aLCEA
=
=
== + = + − →
=
=
2
2
(0) 0
0
x L
Strong Form
EsuduAEdx
d uAE axdx
sential BC
Natural BC=
=
=
−
=
( )2 3
2 6aL axu x xEA EA
⇒ = −
x
To fully define the solution (i.e., to evaluate the values of parameters ) we have to use the given boundary conditions (BC):
1 2,C C
ax
Institute of Structural Engineering Page 25
Method of Finite Elements I
Bar Problem: Strong FormFocus: The axially loaded bar with distributed load deformation and strain plots:
x
ax
0
0.5
1
1.5
2
2.5
0 0.5 1 1.5 2Length (m)
0
0.5
1
1.5
2
2.5
3
0 0.5 1 1.5 2Length (m)
( )2 3
2 6aL axu x xEA EA
= −
Institute of Structural Engineering Page 26
Method of Finite Elements I
If we imagine there were forces (virtual forces) inside and outside of the bar, then the virtual work generated by these 'virtual forces' should conserve energy. For the bar, this principle can be stated as:
Therefore, the weak form of the problem is defined as
Find such that:
Observe that the weak form involves derivatives of a lesser order than the original strong form.
x
The Weak Form from the PVWLet’s now examine the same problem, and let us use the Principle of Virtual Work:
ax
( )
int
int
where
, ,
extL
extl o
W W
W A dx W ax u dx u u x
δ δ
δ σ δε δ δ δ δ
=
= ⋅ = ⋅ =∫ ∫( )
where , and duduE
dx dxδ
σ δε= =
L
l o
du duA E dx ax u dxdx dx
δ δ = ⋅ ∫ ∫
Institute of Structural Engineering Page 27
Method of Finite Elements I
The method uses an arbitrary weighting function w that satisfies the essential conditions and additionally:
If then,
x
Deriving the Weak FormThe Galerkin Method
( )
2
2
(0) 0 0
0
x L
d uAE axdx
Strong Form
Boundary Conditions (BC)Essentu
L
duAEdx
ial BC
Natural BC
σ
=
=
= ⇒
=
= −ax Let us look at an
alternative approximation:
Institute of Structural Engineering Page 28
Method of Finite Elements I
Multiplying the strong form by w and integrating over L:
Integrating by parts, the following relation is derived:
x
The Galerkin MethodFocus: The axially loaded bar with distributed load example.
ax
Institute of Structural Engineering Page 29
Method of Finite Elements I
Elaborating a little bit more on the relation:
x
The Galerkin MethodFocus: The axially loaded bar with distributed load example.
ax
Institute of Structural Engineering Page 30
Method of Finite Elements I
Elaborating a little bit more on the relation:
why?
Therefore, the weak form of the problem is defined asFind such that:
why?
This result is equivalent to the result obtained via the PVW
x
The Galerkin MethodFocus: The axially loaded bar with distributed load example.
ax
Institute of Structural Engineering Page 31
Method of Finite Elements I
The Galerkin Method
The steps performed using the Galerking method, actuallylead to the same kind of weak formulation we would haveobtained via the principle of Virtual work or the MKE (remember slide). This is just an alternative.
However, how do we now solve the resulting weakformulation?
We introduce the FE method steps
The Galerkin method
Institute of Structural Engineering Page 32
Method of Finite Elements I
Theory – Consider the general case of a differential equation:
Example – The axially loaded bar:
Try an approximate solution to the equation of the following form
where are trial functions and are unknown quantities that we need to evaluate. The solution must satisfy the boundary conditions.
Since is an approximation, substitutingit in the initial equation will result in an error:
Choose the following approximation
Demand that the approximation satisfies the essential conditions:
The approximation error in this case is:
The Galerkin Method – trial functions
Institute of Structural Engineering Page 33
Method of Finite Elements I
Weighted Residual Methods
Notice how we chose an approximate solution which is a 3rd degree polynomial. Indeed, in the approximate solution chosenhere, the trial functions are
N1 = 1, N2 = x, N3 = x2, N4 = x3
This implies that we made a good guess, since we already knowthat the true solution is a 3rd order polynomial!
(see slide)
Comments
Institute of Structural Engineering Page 34
Method of Finite Elements I
Assumption 1: The weighted average error of the approximation should be zero
The Galerkin Method
Institute of Structural Engineering Page 35
Method of Finite Elements I
Assumption 1: The weighted average error of the approximation should be zero
Therefore once again integration by parts leads to
But that’s the Weak Form!!!!!
The Galerkin Method
Institute of Structural Engineering Page 36
Method of Finite Elements I
Assumption 1: The weighted average error of the approximation should be zero
Therefore once again integration by parts leads to
But that’s the Weak Form!
Assumption 2: The weight function is approximated using the same scheme as for the solution
Remember that the weight function must
also satisfy the BCs
Substituting the approximations for both and in the weak form,
The Galerkin Method
Institute of Structural Engineering Page 37
Method of Finite Elements I
The following relation is retrieved:
where:
Remember that the weight function is (almost) arbitrary!
Therefore, the only way this holds for any w(x) is:
dx
dx
dx
The Galerkin Method
Institute of Structural Engineering Page 38
Method of Finite Elements I
Performing the integration, the following relations are established:
The Galerkin Method
Institute of Structural Engineering Page 39
Method of Finite Elements I
Or in matrix form:
that’s a linear system of equations:
and that’s of course the exact solution. Why?
The Galerkin Method
Institute of Structural Engineering Page 40
Method of Finite Elements I
What if we do not make such a good guess, i.e., a 3rd order polynomial and instead try the following (suboptimal) approximation:
The weight function assumes the same form:
This again needs to satisfy the essential BCs, therefore:
Substituting now into the weak form:
Wasn’t that much easier? But….is it correct?
( )( )2
2 2 200
3L Lw EAu x ax dx u
EAα− = ⇒ =∫
The Galerkin Method
Institute of Structural Engineering Page 41
Method of Finite Elements I
0
0.5
1
1.5
2
2.5
3
0 0.5 1 1.5 2Length (m)
Strong Form Galerkin-Cubic order Galerkin-Linear
Our 1st order approximation is only accurate at the boundaries of the element!
How to improve accuracy, while still using only a 1st order approximation?
The Galerkin Method
Institute of Structural Engineering Page 42
Method of Finite Elements I
We saw in the previous example that the Galerkin method is based on the approximation of the strong form solution using a set of basis functions. These are by definition absolutely accurate at the boundaries of the problem. So, why not increase the boundaries?
Instead of seeking the solution of a single bar we chose to divide it into three interconnected and not overlapping elements
1 2 3
element: 1 element: 2
The Galerkin Method
Institute of Structural Engineering Page 43
Method of Finite Elements I
1 2 3
element: 1 element: 2
We still have 1st order polynomials, but they are as many as the sub-elements, i.e., 4 unknown coefficients ui
The Galerkin Method
Institute of Structural Engineering Page 44
Method of Finite Elements I
1 2 3
The Galerkin Method
Institute of Structural Engineering Page 45
Method of Finite Elements I
Summarythe weak form of a continuous problem was derived in a systematic way:
This part involves only the solution approximation
This part only involves the essential boundary conditions a.k.a. loading
The Galerkin Method
Institute of Structural Engineering Page 46
Method of Finite Elements I
And then an approximation was defined for the displacement field, for example
The weak form also involves the first derivative of the approximation
Strain field
Displacement field
The Galerkin Method
Institute of Structural Engineering Page 47
Method of Finite Elements I
where u1,u2 are so far random coefficients. Instead, we can choose to write the same relationship using a different basis N(x):
Vector of degrees of freedom
Shape Function Matrix
Displacement field
In this case, we express u in term of the degrees of freedom, i.e., the displacements at the ends of the bar:
Substituting in our initial displacement approximation we obtain:
𝑑𝑑 = 𝑢𝑢(𝑥𝑥 = 0)𝑢𝑢(𝑥𝑥 = 𝐿𝐿) =
𝑢𝑢0𝑢𝑢𝐿𝐿 = 1 0
1 𝐿𝐿𝑢𝑢1𝑢𝑢2 ⇔
𝑢𝑢1𝑢𝑢2 = 1 0
1 𝐿𝐿−1 𝑢𝑢0
𝑢𝑢𝐿𝐿
𝑢𝑢 = 1 𝑥𝑥 1 01 𝐿𝐿
−1 𝑢𝑢0𝑢𝑢𝐿𝐿 = 𝐿𝐿 − 𝑥𝑥
𝐿𝐿𝑥𝑥𝐿𝐿
𝑢𝑢0𝑢𝑢𝐿𝐿 ⇒ 𝑁𝑁(𝑥𝑥) = 𝐿𝐿 − 𝑥𝑥
𝐿𝐿𝑥𝑥𝐿𝐿
[ ]{ }( )u N x d=
The Galerkin Method
shape functions
Institute of Structural Engineering Page 48
Method of Finite Elements I30-Apr-10
The Shape Functions for the generic bar (truss) Element
Truss Element Shape Functions
(in global coordinates)
( ) [ ] 11 2
2
uu x N N
u
=
Institute of Structural Engineering Page 49
Method of Finite Elements I
[ ]{ } [ ]{ }( )
d N xd B d
dxε = =
Then:
The weak form also involves the first derivative of the approximation
Strain field
[ ] [ ] [ ]( ) 1 1 1d N x
Bdx L
= = −where
Strain Displacement Matrix
Vector of degrees of freedom
Displacement field
[ ]{ }( )u N x d=
The Galerkin Method
Institute of Structural Engineering Page 50
Method of Finite Elements I30-Apr-10
Strain-Displacement relation
defineThe truss element
stress displacement matrix
Constant Variation of strains along the element’s length
Institute of Structural Engineering Page 51
Method of Finite Elements I
Therefore if we return to the weak form :
The following FUNDAMENTAL FEM expression is derived
and set:
since this has to hold ∀
The Galerkin Method
w :
[ ]{ } [ ]{ } [ ]{ }∑ i i ii
u = N d = N d ε = B d w = N w
Institute of Structural Engineering Page 52
Method of Finite Elements I
EA has to do only with material and cross-sectional properties
We call the Finite Element stiffness Matrix
Ιf E is a function of {d}
Ιf [B] is a function of {d}
Material Nonlinearity
Geometrical Nonlinearity
The Galerkin Method
Institute of Structural Engineering Page 53
Method of Finite Elements I
The Galerkin Method The bar (truss) Element
[ ] [ ] [ ]
[ ]
[ ] [ ]
[ ]
[ ]
KK
K
⇒
⇒ ⇒
∫∫L
L T0
0
2
-11 1= EA -1 1 dx= B EA B dx 1L L-1-1 1B = 1= EA -1 1 LL L L 1
1 -1EA=-1 1L
Indeed, if we use the proposed formulation for [N], [B]:
bar stiffness of the DSM!
Institute of Structural Engineering Page 54
Method of Finite Elements I
EA has to do only with material and cross-sectional properties
We call the force vector for distributed loads
The Galerkin Method
[ ]{ } { }fK d =
The FEM equation to solve is (as in the DSM):
{ } [ ] ( )∫L
T
0
f = N -αx dx
This is defined as: { } ( )( )
0f xf x L
= =
f = for concentrated loads at the nodes
Institute of Structural Engineering Page 55
Method of Finite Elements I30-Apr-10
Example 1: Truss Element under concentrated tensile force
Strong Form Solution Finite Element Solution
Boundary Conditions
Solution
Boundary Conditions
Solution
11
22
1 11 1
x
x
uf EAuLf
− = −
1
2
01 11 1100
xf EAuL
− = −
( )
( ) ( ) ( )2
1 1 2 2
100 , Lu u L thenEA
u x N x u N x u
= =
= +
Institute of Structural Engineering Page 56
Method of Finite Elements I30-Apr-10
Example 2: Truss Element under uniform distributed tensile force
Strong Form Solution
Boundary Conditions
Solution
Institute of Structural Engineering Page 57
Method of Finite Elements I30-Apr-10
1
20
1 112
Lx x
xx
xf q LL q dx
xfL
− − = =
∫
Example 2: Truss Element under uniform distributed tensile force
Finite Element Solution
Here we account for the distributed loading
Boundary Conditions
Solution
Displacement at node 2@ x=L
11
22
1 11 1
x
x
uf EAuLf
− = −
21
22
1 1 11 1 12 2
x xuq L q LEA uuL EA
− − = ⇒ = −
Institute of Structural Engineering Page 58
Method of Finite Elements I30-Apr-10
Example 2: Truss Element under uniform distributed tensile force
Strong Form Solution Finite Element Solution
Displacement at node 2@ x=L
2
2 2xq L
uEA
=
( ) ( ) ( )1 1 2 2 2xq L
u x N x u N x u xEA
= + =
Institute of Structural Engineering Page 59
Method of Finite Elements I30-Apr-10
Example 2: Truss Element under uniform distributed tensile force
Strong Form Solution Finite Element Solution
2
2 2xq L
uEA
=
( ) ( ) ( )1 1 2 2 2xq L
u x N x u N x u xEA
= + =
Institute of Structural Engineering Page 60
Method of Finite Elements I30-Apr-10
Example 2: Truss Element under uniform distributed tensile force
0
0.5
1
1.5
2
2.5
0 0.5 1 1.5 2Length (m)
( ) ( ) ( )1 1 2 2 2xq L
u x N x u N x u xEA
= + =
Institute of Structural Engineering Page 61
Method of Finite Elements I30-Apr-10
Example 2: Truss Element under uniform distributed tensile force
0
0.5
1
1.5
2
0 0.5 1 1.5 2Length (m)
( ) ( ) ( )1 21 2 2
xdN x dN x q Lu x u u
dx dx EA= + =
Institute of Structural Engineering Page 62
Method of Finite Elements I
The bar (truss) ElementGeneralization for more elements
[O] Ch2 §5, Figure 2.4
Axially loaded rod. Discretization in two linear elements. Number in brackets at node denotes global node number
Institute of Structural Engineering Page 63
Method of Finite Elements I
The bar (truss) ElementGeneralization for more elements
[O] Ch2 §5, Figure 2.4
Axially loaded rod. Discretization in two linear elements. Number in brackets at node denotes global node number
Institute of Structural Engineering Page 64
Method of Finite Elements I
Self study ExerciseTapered Bar Element
[O] Ch2 §5, Figure 2.4
Example 2.1 from [O] Ch2 §5: Analyse the axially loaded rod with exponentially varying cross sectional area using three meshes of one, two and three linearbar elements.