Professional Documents
Culture Documents
Applications of The Finite Element Method To Boundary Value Problems
Applications of The Finite Element Method To Boundary Value Problems
Applications of The Finite Element Method To Boundary Value Problems
Applications of the
Finite Element Method
to
Boundary Value Problems
DI Daniel Schöllhammer
Institute of Structural Analysis
Graz University of Technology
WS 2019/20
FEM – LE 3 Slide: 1
© D. Schöllhammer, Institute of Structural Analysis, TU Graz
Lecture Outline
EduFEM: Application Program Structure
EduFEM Specific:
Run Convergence Studies
Adding additional Test-Cases
FEM – LE 3 Slide: 2
© D. Schöllhammer, Institute of Structural Analysis, TU Graz
BVPs in EduFEM
Implemented BVP’s
L2 - Projection (1D, 2D, 3D)
Laplace Operator (2D, 3D)
Linear Elasticity (1D, 2D, 3D)
Finite Strains (geometrically non-linear elasticity, see FEM II)
Beams (Bernoulli beam, Timoshenko beam)
Plate (Kirchhoff plate, Reissner-Mindlin plate)
FEM – LE 3 Slide: 3
© D. Schöllhammer, Institute of Structural Analysis, TU Graz
Implementation Overview
Typical Function Hierarchy
...Input
...Solve
if applicable:
...L2Norm
...ExactSol
FEM – LE 3 Slide: 4
© D. Schöllhammer, Institute of Structural Analysis, TU Graz
Convergence Studies in EduFEM
If exact solution is known, L2 Error can be computed and
compared with different discretizations (i.e. number of elements,
element order vs. L2 Error)
__Run.m contains code to run convergence studies
__VisConf.m is responsible for plotting convergence rate
FEM – LE 3 Slide: 5
© D. Schöllhammer, Institute of Structural Analysis, TU Graz
Changing the Input Parameters
Problem Inputs (ie. geoemtry, BCs) are realized in EduFEM as
separate TestCases
To add additional domains, BCs: add a new TestCase.
Hint: Functions where TestCase variable is passed, contains
input-specific code.
...Run
...Main
...Solve
if applicable:
...L2Norm
FEM – LE 3 Slide: 6
© D. Schöllhammer, Institute of Structural Analysis, TU Graz
Example TestCase 200
given:
elastic disc (plane strain), 𝐸 = 2.1 ∗ 104 , 𝜈 = 0.3,
body force: 𝑓𝑥 = 0, 𝑓𝑦 = −2500
1.0
2.0
FEM – LE 3 Slide: 7
© D. Schöllhammer, Institute of Structural Analysis, TU Graz
MATLAB excurse: Global Variables
Sometimes values need to be changed within deeply nested
functions (e.g. a beam height).
There are three options
1. Edit variable inside function manually each run
2. Pass variable to all functions via headers (all headers and function
calls must be adapted)
3. Define variable as global
FEM – LE 3 Slide: 8