Professional Documents
Culture Documents
Lecture2 PDF
Lecture2 PDF
u u
2u
pu
u
,
.
.
.
,
,
,
,
.
.
.
,
x1
xn t x1 x2
tp
f u, x, t,
scalar unknowns
u = u(x, t),
vector unknowns
v = v(x, t),
Nabla operator
= i x
+ j y
+ k z
u =
i u
x
v =
vx
x
j u
y
+
v = det
vy
y
k u
z
+
x Rn , t R,
v Rm ,
u u u
x , y , z
vx vy vz
u = (u) = 2 u =
m = 1, 2, . . .
v = (vx , vy , vz )
gradient
z
vz
z
=0
n = 1, 2, 3
x = (x, y, z),
iT
divergence
=
2u
x2
vz
y
vx
z
vy
x
2u
y 2
vy
z
vz
x
vx
y
2u
z 2
curl
Laplacian
v = [vx , vy , vz ] =
vy
x
vy
y
vy
z
vx
x
vx
y
vx
z
vz
x
vz
y
vz
z
1111111111111111
0000000000000000
0000000000000000
1111111111111111
1111111111111111
0000000000000000
0000000000000000
1111111111111111
T
D(v) = (v + v ) =
2
Spin tensor
1
2
1
2
S(v) = v D(v)
vx
x
vx
y
vx
z
vy
x +
vy
y
1 vy
2
z +
1
2
vy
x
vz
x
vx
y
vz
y
1
2
1
2
(skew-symmetric part of v)
vz
x
vz
y
vz
z
vx
z
vy
z
a b = aT b = [a1 a2 a3 ]
b2 = a1 b1 + a2 b2 + a3 b3 R
b3
v u = vx
Example.
b1
u
u
u
+ vy
+ vz
x
y
z
convective derivative
a, b R ,
a1
a1 b1
a b = abT =
a2 [b1 b2 b3 ] = a2 b1
a3
a3 b1
a1 b2
a2 b2
a3 b2
a1 b3
33
a2 b3
R
a3 b3
1.
T = {tij },
2.
T 1 , T 2 R33 , a R3
T 1 + T 2 = {t1ij + t2ij },
t t t
3
11 12 13 P
ai [ti1 , ti2 , ti3 ]
a T = [a1 , a2 , a3 ] t21 t22 t23 =
| {z }
i=1
t31 t32 t33
i-th row
t
a
t t t
3
1j
11 12 13 1 P
T a = t21 t22 t23 a2 =
t2j aj (j-th column)
j=1
t3j
a3
t31 t32 t33
2
2
2
1
1
1
3
t11 t12 t13
t11 t12 t13
P
t1ik t2kj
T 1 T 2 = t121 t122 t123 t221 t222 t223 =
k=1
t231 t232 t233
t131 t132 t133
3.
4.
5.
6.
2 T
T : T = tr (T (T ) ) =
3
3 P
P
i=1 k=1
t1ik t2ik
f dx =
f n ds
||x|| =
Consider f (x) = x
volume integral:
surface integral:
xx=
so that
x2 + y 2 + z 2
= {x R3 : ||x|| = 1}
f 3 in
and n =
x
||x||
on
4 3
f dx = 3
dx = 3|| = 3 1 = 4
3
Z
Z
Z
Z
xx
f n ds =
ds =
||x|| ds =
ds = 4
||x||
Mathematical equations
1. Mass is conserved
continuity equation
momentum equations
3. Energy is conserved
energy equation
z
v
Eulerian
(x1 ; y1 ; z1 )
Lagrangian
(x0 ; y0 ; z0 )
x = x(x0 , t)
v
(x1 ; y1 ; z1 )
(x0 ; y0 ; z0 )
k
i
x = x(x0 , y0 , z0 , t)
y = y(x0 , y0 , z0 , t)
z = z(x0 , y0 , z0 , t)
dx
= vx (x, y, z, t),
dt
dy
= vy (x, y, z, t),
dt
dz
= vz (x, y, z, t),
dt
x|t0 = x0
y|t0 = y0
z|t0 = z0
dx
dy
dz
=
=
vx
vy
vz
dy
dx
v
y(x)
vy
vx
Streamlines can be visualized by injecting tracer particles into the flow field.
dS
dV
fixed infinitesimal CV
integral
dS
dV
moving infinitesimal CV
differential
Eulerian
Let u = u(x, t), where x = x(x0 , t). The chain rule yields
u u dx u dy u dz
u
du
=
+
+
+
=
+ v u
dt
t
x dt
y dt
z dt
t
substantial derivative = local derivative + convective derivative
Reynolds transport theorem
d
dt
u(x, t) dV =
V Vt
Vt
rate of change in
a moving volume
u(x, t)
dV +
t
rate of change in
a fixed volume
SSt
u(x, t)v n dS
convective transfer
through the surface
conservation of momentum
conservation of energy
u dV +
f n dS =
q dV
t V
S
V
S
f = vu du
V
dS
flux function
in V
dm
=
dV +
dV =
v n dS = 0
dt
dt Vt
t
SSt
V Vt
accumulation of mass inside CV = net influx through the surface
Divergence theorem yields
Z
+ (v) dV = 0
t
V
Continuity equation
+ (v) = 0
t
Lagrangian representation
(v) = v + v
Incompressible flows:
d
dt
=v =0
d
+ v = 0
dt
(constant density)
Conservation of momentum
Physical principle:
dV
dS
n
h
f = ma
total force
f = g dV + h dS,
body forces
gravitational, electromagnetic,. . .
surface forces
Stress tensor
= pI +
where
h=n
momentum flux
where
xx =
yy =
zz =
1
(v + vT ),
2
2
3
D(v) =
xy = yx =
xx
xz = zx
yz = zy
vy
x
vx
y
` x
vz
= v
+
x
z
v
z
+ zy
= v
y
y
yx
SSt
= pI +
(v)
+ (v v) = p + + g
t
(v)
v
dv
+ (v v) =
+ v v + v
+ (v) =
t
t
t
dt
|
|
{z
}
{z
}
Momentum equations
substantial derivative
continuity equation
Conservation of energy
Physical principle:
dV
dS
n
h
e = s + w
Heating: s = q dV fq dS
q
fq
absolute temperature
thermal conductivity
w = f v = g v dV + v ( n) dS,
= pI +
|v|2
2
e
|v|
2
E =e+
accumulation
heating
work done
SSt
dE
(E)
E
+ (Ev) =
+ v E + E
+ (v) =
t
t
t
dt
{z
}
{z
}
|
|
substantial derivative
Momentum equations
dv
= p + + g
dt
continuity equation
(Lagrangian form)
dE
de
dv
(e)
= +v
=
+ (ev) + v [p + + g]
dt
dt
dt
t
+ (v) = 0
t
2. Momentum equations / Newtons second law
(v)
+ (v v) = p + + g
t
3. Energy equation / first law of thermodynamics
(E)
+ (Ev) = (T ) + q (pv) + v ( ) + v : + g v
t
|v|2
E =e+
,
2
(e)
+ (ev) = (T ) + q p v + v :
t
where
f = f (u, x, t)
U =
v v + pI
v , F =
(E + p)v T v
E
Q=
0
g
(q + g v)
U R5 ,
F R35 ,
Q R5
representing all equations in the same generic form simplifies the programming
it suffices to develop discretization techniques for the generic conservation law
Constitutive relations
Variables:
, v, e, p, , T
D(v) =
1
(v + vT ),
2
2
3
e = cv T
cv
Now the system is closed: it contains five PDEs for five independent variables
, v, e and algebraic formulae for the computation of p, and T . It remains to
specify appropriate initial and boundary conditions.
|t=0 = 0 (x),
v|t=0 = v0 (x),
e|t=0 = e0 (x)
Let = in w out
Boundary conditions
in = {x : v n < 0}
Inlet
= in ,
v = vin ,
in
e = ein
in
out
Solid wall
w = {x : v n = 0}
Outlet
out = {x : v n > 0}
v n = vn
or
v=0
no-slip condition
T = Tw
fq
T
n =
given temperature or
v s = vs
prescribed velocity
or
p + n n = 0
s n=0
vanishing stress
The problem is well-posed if the solution exists, is unique and depends continuously
on IC and BC. Insufficient or incorrect IC/BC may lead to wrong results (if any).