You are on page 1of 46

Institute of Structural Engineering

Chapter 3
Variational Formulation &
the Galerkin Method

Method of Finite Elements I

Page 1

Institute of Structural Engineering

Todays Lecture Contents:


Introduction
Dierential formulation
Principle of Virtual Work
Variational formulations
Approximative methods
The Galerkin Approach

Method of Finite Elements I

Page 2

Institute of Structural Engineering

Page 3

The dierential form of physical processes


Physical processes are governed by laws (equations) most probably
expressed in a dierential form:

The axially loaded bar equation:

The isotropic slab equation:

The Laplace equation in two


dimensions:
(e.g. the heat conduction problem)

Method of Finite Elements I

Page 4

Institute of Structural Engineering

The dierential form of physical processes


Focus: The axially loaded bar example.
Consider a bar loaded with constant end load R. Strength of Materials Approach

R

f(x)
L-x

Given: Length L, Section Area A, Young's modulus E


Find: 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-eects are not of interest to us.
Method of Finite Elements I

Equilibrium equation
R
f ( x) = R ( x ) =
A
Constitutive equation (Hookes Law)

( x)

R
E
AE
Kinematics equation

( x) =

( x) =

(x)
x

( x) =

Rx
AE

Page 5

Institute of Structural Engineering

The dierential form of physical processes


Focus: The axially loaded bar example.
Consider and innitesimal element of the bar:

The Dierential Approach


Equilibrium equation

d
=0 A
=0
dx
x0 x

A = A( + ) A lim
!

Constitutive equation (Hookes Law)


= E
Kinematics equation
du
=
dx

Given: Length L, Section Area A, Young's modulus E


Find: 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-eects are not of interest to us.
Method of Finite Elements I

d 2u
AE 2 = 0
Strong Form
dx
Boundary Conditions (BC)
u(0) = 0
Essential BC

( L) = 0
AE

du
=R
dx x= L

Natural BC

Page 6

Institute of Structural Engineering

The dierential form of physical processes


Focus: The axially loaded bar example.

R

The Dierential Approach


d 2u
AE 2 = 0
dx
u(0) = 0
AE

du
=R
dx x= L

Strong Form
Essential BC
Natural BC

Denition
The strong form of a physical process is the well posed
set of the underlying dierential equation with the
accompanying boundary conditions

Method of Finite Elements I

Page 7

Institute of Structural Engineering

The dierential form of physical processes


Focus: The axially loaded bar example.

R

The Dierential Approach


d 2u
AE 2 = 0
dx
u(0) = 0
AE

du
=R
dx x= L

Strong Form
Essential BC
Natural BC

vThis is a homogeneous 2nd order ODE with known solution:


Analytical Solution:

du(x)
u(x) = uh = C1x + C2 & (x) =
= C1 = const!
dx

Method of Finite Elements I

Page 8

Institute of Structural Engineering

The dierential form of physical processes


Focus: The axially loaded bar example.

The Dierential Approach


d 2u
AE 2 = 0
dx
u(0) = 0

AE

du
=R
dx x= L

Strong Form
Essential BC
Natural BC

Analytical Solution:

C1 ,C2
To fully dene the solution (i.e., to evaluate the values of parameters )
we have to use the given boundary conditions (BC):
u(0)=0
u(x) = uh = C1x + C2 du

R
dx

u( x) =
Method of Finite Elements I

Rx
AE

x= L

EA

C2 = 0

C1 =

R
EA

v Same as in the mechanical approach!

Institute of Structural Engineering

The Strong form 2D case


A 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 dicult to be evaluated
ii. In most cases CANNOT be evaluated at all. Why?
Complex geometries
Complex loading and boundary conditions
Method of Finite Elements I

Page 9

Page 10

Institute of Structural Engineering

Deriving the Strong form 3D case

su : supported area with prescribed displacements U su


s f : surface with prescribed forces f
f B : body forces (per unit volume)
U : displacement vector
: strain tensor (vector)

: stress tensor (vector)


Method of Finite Elements I

sf

Page 11

Institute of Structural Engineering

Deriving the Strong form 3D case


Kinematic Relations

= LU

U
U = V ,

Method of Finite Elements I

L=

, T = xx yy zz 2 xy 2 yz 2 xz

Page 12

Institute of Structural Engineering

Deriving the Strong form 3D case


Strain Compatibility Saint Venant principle

L1 = 0

Method of Finite Elements I

2
y 2

2
2
z
L1 = 2

yz

2
x 2

2
2
xy

2
z 2

2
y 2

2
2
yz

2
x 2

xz

2
x 2

2
xz

zy

xy

2
xy

2
z 2

xz

2
xz
2

xy
2

2
y

yz

Page 13

Institute of Structural Engineering

Deriving the Strong form 3D case


Equilibrium Equations
L2 + f B = 0

Body loads:

T = xx yy zz xy yz zx , L 2 =LT
Surface loads:

on s f we have f

sf

=0

l 0 0 m 0 n
where N = 0 m 0 l n 0
0 0 n 0 m l

l, m and n are cosines of the angles between the normal on the


surface and X, Y and Z
Method of Finite Elements I

Page 14

Institute of Structural Engineering

Deriving the Strong form 3D case


Constitutive Law

= C
C is elasticity matrix and depends on material properties E and
(modulus of elasticity and Poissons ratio)

=C
Method of Finite Elements I

Institute of Structural Engineering

Page 15

Dierential Formulation
Summary - General Form 3D case:

Boundary problem of the linear theory of elasticity: dierential


equations and boundary conditions

15 unknowns: 6 stress components, 6 strain components and 3


displacement components

3 equilibrium equations, 6 relationships between displacements and


strains, material law (6 equations)

Together with boundary conditions, the state of stress and


deformation is completely dened

Method of Finite Elements I

Page 16

Institute of Structural Engineering

Principle of Virtual Work


The principle of virtual displacements: the virtual work of a system of

equilibrium forces vanishes on compatible virtual displacements; the


virtual displacements are taken in the form of variations of the real
displacements
Equilibrium is a consequence of vanishing of a virtual work
Internal Virtual Work

External Virtual Work

T
T B

dV
=
U

f dV + U

Sf

SfT

f f dS + U iT R iC
S

Stresses in equilibrium with applied loads


Virtual strains corresponding to virtual displacements
Method of Finite Elements I

Institute of Structural Engineering

Page 17

Principle of Complementary Virtual Work


The principle of virtual forces: virtual work of

equilibrium variations of the stresses and the forces on


the strains and displacements vanishes; the stress eld
considered is a statically admissible eld of variation

Equilibrium is assumed to hold a priori and the

compatibility of deformations is a consequence of


vanishing of a virtual work

Both principles do not depend on a constitutive law

Method of Finite Elements I

Institute of Structural Engineering

Variational Formulation
Based on the principle of stationarity of a functional,

which is usually potential or complementary energy


Two classes of boundary conditions: essential
(geometric) and natural (force) boundary conditions
Scalar quantities (energies, potentials) are considered
rather than vector quantities

Method of Finite Elements I

Page 18

Institute of Structural Engineering

Page 19

Principle of Minimum
Total Potential Energy
Conservation of energy: Work = change in potential,
kinetic and thermal energy

For elastic problems (linear and non-linear) a special case


of the Principle of Virtual Work Principle of minimum
total potential energy can be applied
U is the stress potential: ij = U / ij

1 T
U = C dv
2
v

W = f Udv + f Uds
Sf

BT

Method of Finite Elements I

Institute of Structural Engineering

Page 20

Principle of Minimum
Total Potential Energy
Total potential energy is a sum of strain energy and

potential of loads P = U W
This equation, which gives P as a function of deformation
components, together with compatibility relations within
the solid and geometric boundary conditions, denes the
so called Lagrange functional
Applying the variation we invoke the stationary condition
of the functional
P

dP = dU dW = 0

Method of Finite Elements I

Institute of Structural Engineering

Page 21

Variational Formulation
By utilizing the variational formulation, it is possible to

obtain a formulation of the problem, which is of lower


complexity than the original dierential form (strong
form).
This is also known as the weak form, which however can
also be a_ained by following an alternate path (see
Galerkin formulation).
For approximate solutions, a larger class of trial functions
than in the dierential formulation can be employed; 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.
Method of Finite Elements I

Institute of Structural Engineering

Approximative Methods
Instead of trying to nd 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 specic points within the system.

The procedure of reducing the physical process to its discrete
counterpart is the discretisation process.

Method of Finite Elements I

Page 22

Page 23

Institute of Structural Engineering

Approximative Methods
Variational Methods

Weighted Residual Methods

approximation is based on the


start with an estimate of the the solution and
minimization of a functional, as those
demand that its weighted average error is
defined in the earlier slides.
minimized

Rayleigh-Ritz Method

The Galerkin Method


The Least Square Method
The Collocation Method
The Subdomain Method
Pseudo-spectral Methods

Method of Finite Elements I

Page 24

Institute of Structural Engineering

The dierential form of physical processes


Focus: The axially loaded bar with distributed load example.

ax
d 2u
AE 2 = ax
dx
u(0) = 0
x

AE

du
=0
dx x= L

Strong Form
Essential BC
Natural BC

Analytical Solution:

C1 ,C2
To fully dene the solution (i.e., to evaluate the values of parameters )
we have to use the given boundary conditions (BC):
u(x) = uh + u p = C1x + C2
aL2
ax 3
u( x) =
x
2EA
6EA
Method of Finite Elements I

C2 = 0

ax
u(0)=0
2
du

R
aL
6EA dx = EA
C1 =
x= L
2EA

Page 25

Institute of Structural Engineering

The dierential form of physical processes


Focus: The axially loaded bar with distributed load example.

ax

aL2
ax 3
u( x) =
x
2EA
6EA
x

2.5

2.5

1.5

1.5

1
0.5

0.5

0
0

0.5

Length (m)
Method of Finite Elements I

1.5

0.5

1
Length (m)

1.5

Page 26

Institute of Structural Engineering

Weighted Residual Methods


Focus: The axially loaded bar with distributed load example.

ax
R

and its corresponding strong form:

Given an arbitrary weighting function w


that satises the essential conditions and
additionally:
If

Method of Finite Elements I

then,

d 2u
AE 2 = ax
Strong Form
dx
Boundary Conditions (BC)
u(0) = 0
Essential BC

( L) = 0
AE

du
=0
dx x= L

Natural BC

Institute of Structural Engineering

Weighted Residual Methods


Focus: The axially loaded bar with distributed load example.

ax

Multiplying the strong form by w and integrating over L:


Integrating equation I by parts the following relation is derived:

Method of Finite Elements I

Page 27

Institute of Structural Engineering

Weighted Residual Methods


Focus: The axially loaded bar with distributed load example.

ax
R

Elaborating a li_le bit more on the relation:

Method of Finite Elements I

Page 28

Page 29

Institute of Structural Engineering

Weighted Residual Methods


Focus: The axially loaded bar with distributed load example.

ax

Elaborating a li_le bit more on the relation:


why?

why?

Therefore, the weak form of the problem is dened as


Find

such that:

Observe that the weak form involves derivatives of a lesser order than the
original strong form.
Method of Finite Elements I

Page 30

Institute of Structural Engineering

Weighted Residual Methods


Weighted Residual Methods start with
an estimate of the solution and
demand that its weighted average
error is minimized:
The Galerkin Method
The Least Square Method
The Collocation Method
The Subdomain Method
Boris Grigoryevich Galerkin (1871-1945)
mathematician/ engineer
Method of Finite Elements I

Pseudo-spectral Methods

Page 31

Institute of Structural Engineering

The Galerkin Method


Theory Consider the general case of a
dierential equation:
Try an approximate solution to the
equation of the following form

where are test functions (input) and


are unknown quantities that we need
to evaluate. The solution must satisfy
the boundary conditions.
Since is an approximation, substituting
it in the initial equation will result in
an error:

Method of Finite Elements I

Example The axially loaded bar:

Choose the following approximation

Demand that the approximation


satises the essential conditions:

The approximation error in this case is:

Institute of Structural Engineering

The Galerkin Method


Assumption 1: The weighted average error of the approximation should
be zero

Method of Finite Elements I

Page 32

Page 33

Institute of Structural Engineering

The Galerkin Method


Assumption 1: The weighted average error of the approximation should
be zero
But thats the Weak
Form!!!!!
Therefore once again integration by parts leads to

Method of Finite Elements I

Page 34

Institute of Structural Engineering

The Galerkin Method


Assumption 1: The weighted average error of the approximation should
be zero
But thats the Weak
Form!!!!!
Therefore once again integration by parts leads to

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,
Method of Finite Elements I

Institute of Structural Engineering

The Galerkin Method


The following relation is retrieved:

where:

Method of Finite Elements I

Page 35

Institute of Structural Engineering

The Galerkin Method


Performing the integration, the following relations are established:

Method of Finite Elements I

Page 36

Page 37

Institute of Structural Engineering

Or in matrix form:

The Galerkin Method

thats a linear system of equations:

and thats of course the exact solution. Why?

Method of Finite Elements I

Page 38

Institute of Structural Engineering

The Galerkin Method


Now lets try the following approximation:

Which again needs to satisfy the natural BCs, therefore:


The weight function assumes the same form:
Substituting now into the weak form:

w2

L2
EAu2 x ( ax ) dx = 0 u2 =
3EA

Wasnt that much easier? But.is it correct?


Method of Finite Elements I

Page 39

Institute of Structural Engineering

The Galerkin Method


Strong Form

Galerkin-Cubic order

Galerkin-Linear

2.5
2
1.5
1
0.5

0
0

0.5

1
Length (m)

Method of Finite Elements I

1.5

Page 40

Institute of Structural Engineering

The Galerkin Method

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 denition
absolutely accurate at the boundaries of the problem. So, why not increase the
boundaries?
element: 1
1

element: 2
2


Instead of seeking the solution of a single bar we chose to divide it into three
interconnected and not overlapping elements

Method of Finite Elements I

Page 41

Institute of Structural Engineering

The Galerkin Method


element: 1
1

Method of Finite Elements I

element: 2
2

Page 42

Institute of Structural Engineering

The Galerkin Method


1

Method of Finite Elements I

Page 43

Institute of Structural Engineering

The Galerkin Method


The 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
Method of Finite Elements I

Page 44

Institute of Structural Engineering

The Galerkin Method


And then an approximation was dened for the displacement eld, for example
Vector of
degrees of
freedom
Displacement
eld

Shape Function
Matrix

The weak form also involves the rst derivative of the approximation

Strain eld
Method of Finite Elements I

Strain Displacement
Matrix

Page 45

Institute of Structural Engineering

The Galerkin Method


Therefore if we return to the weak form :

and set:

The following FUNDAMENTAL FEM expression is derived

or even be]er

Method of Finite Elements I

Why??

Page 46

Institute of Structural Engineering

The Galerkin Method

EA has to do only with material and cross-sectional


properties
We call

The Finite Element stiness Matrix

f E is a function of {d}

Material Nonlinearity

f [B] is a function of {d}

Geometrical Nonlinearity

Method of Finite Elements I

You might also like