Docsity

Comparison of Galerkin and Petrov-Galerkin Methods for Convection-Diffusion Problem - Prof, Assignments of Mechanical Engineering

Toggle sidebar
bg1
1
MANE 6750 – Generalized Finite Element Methods
Rensselaer Polytechnic Institute
Problem Set # 2
1. (100 points) In this homework we will work with the convection-diffusion problem. In 3D
the equation takes the form
z)y,f(x,t)z,y,x,t)z,y,x,
t
)t,z,y,x(
2
+θ∇κ=θ∇⋅+
∂
θ∂ ((U
where
).z,y,x(offunctionsgiven,f,0,
z
,
y
,
x
,
z
,
y
,
x
2
2
2
2
2
2
2
>κ
∂
∂
∂
∂
∂
∂
≡∇
∂
∂
∂
∂
∂
∂
≡∇
U
Despite its apparent simplicity, this equation appears in a wide range of disciplines. If
θ(x,y,z,t) is….
• Temperature → Heat Transfer
• Pollutant concentration → Coastal Engineering
• Probability distribution → Statistical Mechanics (Fokker-Planck equation)
• Pricing of an option → Financial Engineering (Black-Scholes equation).
In this problem we will consider steady state heat transfer (i.e., θ is “temperature”) in a one-
dimensional channel as a fluid flows through it with prescribed velocity (v) under a
prescribed temperature gradient.
The governing differential equation simplifies to
Lxat
0xat
dx
d
dx
d
v
R
L
2
2
=θ=θ
=θ=θ
θ
α=
θ
Fluid
x
Channel of unit
cross-sectional
area
x=0
x=L
v
θ (0)
=
θ
L
θ (
L
)
=
θ
R
pf3
pf4

Partial preview of the text

Download Comparison of Galerkin and Petrov-Galerkin Methods for Convection-Diffusion Problem - Prof and more Assignments Mechanical Engineering in PDF only on Docsity!

MANE 6750 – Generalized Finite Element Methods

Rensselaer Polytechnic Institute

Problem Set # 2

1. (100 points) In this homework we will work with the convection-diffusion problem. In 3D

the equation takes the form

x,y,z,t) x,y,z,t) f(x,y, z) t

( x,y,z,t ) 2

  • ⋅∇θ =κ∇θ + ∂

∂θ U ( (

where

, 0 ,f,givenfunctionsof(x,y,z ).

z

y

x

z

y

x

2

2

2

2

2

2 2

κ >

U

Despite its apparent simplicity, this equation appears in a wide range of disciplines. If

θ(x,y,z,t) is….

  • Temperature → Heat Transfer
  • Pollutant concentration → Coastal Engineering
  • Probability distribution → Statistical Mechanics (Fokker-Planck equation)
  • Pricing of an option → Financial Engineering (Black-Scholes equation).

In this problem we will consider steady state heat transfer (i.e., θ is “temperature”) in a one-

dimensional channel as a fluid flows through it with prescribed velocity (v) under a

prescribed temperature gradient.

The governing differential equation simplifies to

atx L

atx 0

dx

d

dx

d v

R

L

2

2

θ=θ =

θ=θ =

θ =α

θ

Fluid

x

Channel of unit

cross-sectional

area

x=0 x=L

v

θ (0)= θL θ (L)= θR

where α is the “diffusivity” of the fluid (assumed constant). This equation looks very much like

the Poisson equation except for the odd order derivative term on the left hand side. The

analytical solution is

where Pe=vL/ α is known as the “Peclet number” of the flow. In our problem, we assume

L=

θL=

θR=

The following figure shows the temperature profile along the channel for different values of the

Peclet number. As the Pe increases, the analytical solution shows a strong boundary layer at x=L.

(a) ( Galerkin method ) Let us try to solve the above equation using linear finite elements.

Divide the domain into (n-1) elements of length

h = 1/(n-1)

using ‘n’ nodes x 1 (=0),x 2 ,…,xn(=L)

Write down the Galerkin weak form corresponding to this problem. Remember that in the

Galerkin formulation, the trial as well as the test functions are the linear “hat” functions

shown below.

exp(Pe) 1

x 1 L

Pe exp (x)

R L

L

−

θ −θ

θ −θ

Notice that with γ = 0 we recover the original Galerkin method. For this problem use the

following expression for γ

e

e

Pe

Pe γ=coth( −

and plot the numerical solution at the nodal points superimposed on the analytical solution for

n=20.