Professional Documents
Culture Documents
FEMlabnew PDF
FEMlabnew PDF
FEMlabnew PDF
Institutionen for
informationsteknologi Lab - Introduction to Finite Element Methods
Teknisk databehandling and COMSOL Multiphysics
Besoksadress:
MIC hus 2, Polacksbacken
Lagerhyddsvagen 2
Postadress:
Using a finite element method to compute the shape
Box 337
751 05 Uppsala
of a soap film
Telefon:
018471 0000 (vaxel) We are now going to consider a soap film in a wire frame. The minimal
Telefax: surface connecting the wire frame (the soap film) is a solution (u) to the
01852 30 49 following partial differential equation (Laplaces equation),
u(x; y ) = 0; (x; y ) 2 ;
Hemsida:
For a given domain and function r (x; y ), in general this problem has no
Lagerhyddsvagen 2
Postal address: analytical solution. Instead we use numerical approximations, in this case
Box 337
SE-751 05 Uppsala
the finite element method (FEM).
SWEDEN
Telephone:
+46 18471 0000 (switch)
FEM for PDEs
Telefax:
+46 1852 30 49
One of the most important features of finite element methods is that they
Web page:
http:/www.it.uu.se/ are based on unstructured grids. (Finite difference methods use structured
grids.) This means that FEM is more flexible with respect to the geometry.
For example, in two dimensions, we dont need the computational domain
to be rectangular or something that can be mapped onto a rectangle.
X
N
uh(x; y ) =
j j (x; y );
j =1
where
j are coefficients and j (x; y ) are basis functions. The subscript h
refers to the mesh that was used and is computed as the largest distance
between two neighboring points in the mesh. The coefficients
j are found
by solving a linear system of equations.
2 (5)
0.5
0 0.5
y
0
1
0.5 0.5 1
0.5
0
0
1 0.5
0.5
1 0.5 0 0.5 1 y
x 1 1 x
If you want to change the parameters in PDE or set intial values in the
domain you can click Physics, Subdomain Settings. (In this case
the PDE does not have any parameters and it is a time-independent
3 (5)
Refine the mesh by clicking Mesh, Refine mesh, and solve the
problem again. Do you see any difference in the solution?
Solving an Application
As a new employed engineer you have been assigned a task to control the
temperature in a critical part of a machine. It is important that temperature
does not exceed a certain threshold in the part. To calculate the temperature
you will need to solve the heat equation in 2D.
Heat equation
G= rT
where is a material parameter. For homogenous and isotropical material
is a constant scalar. As we have a solid body there is no convection in the
body. Moreover, we will disregard that can be temperature dependent.
T
= T + h
t
where
= :
v
Together with boundary conditions on the heat equation above describes
the temperature distribution in a homogenous isotropical solid body.
The Problem
We will solve the heat equation under stationary conditions (we have tem-
perature equilibrium, i.e. no time dependency) and without any heat sour-
ces inside the body. Figure 1 defines the geometry of the body. The tem-
perature field is independent of the z-direction (consider an outstretched
body in the z-direction). On the boundaries 1 we have heat exchange with
2
2 0.7 2
3
0.4 1 0.4 3 1
3 0.4
2 3 2
0.6 0.4
0.6
Task