Analysis of 1-D Problems: 1 Where Are We Headed?
Analysis of 1-D Problems: 1 Where Are We Headed?
Analysis of 1-D Problems: 1 Where Are We Headed?
3. Using ANSYS
d2 T
kA − hpT + hpTf = 0
dx2
where:
k ≡ Thermal Conductivity
A ≡ Cross-sectional area in direction of conduction
h ≡ Convective heat transfer coefficient
p ≡ Fin perimeter
Tf ≡ Temperature of surrounding fluid
Tb ≡ Temperature of base(i.e. source)
T (e) = Si Ti + Sj Tj
where:
Xj − X X − Xi
Si = , Sj =
ℓ ℓ
In matrix form: { }
(e)
[ ] Ti
T = Si Sj
Tj
1
The general form of our differential equation is:
d2 T
C1 + C2 T + C3 = 0
dx2
where:
C1 = kA
C2 = −hp
C3 = hpTf
Let’s go one step further and make our differential equation very general and applicable to other
problems . . . set T = ψ. Now we need to solve this thing using . . . The Galerkin Formulation!!!
Remember the basic idea with weighted residuals is to assume an approximate solution, substi-
tute into the governing D.E., and solve. The result is residual or error. We then work to set that
error or residual equal to zero in different manners.
With Galerkin’s formulation, we multiply the residual by a weighting function, average it, and
set it equal to zero. The residual equation is:
∫ L
Ri = Φi (D.E.)dx = 0
0
The weighting function must be of the same form as the approximate solution. Since we are using
ψ (e) = Si ψi + Sj ψj as our approximate solution, we will use shape functions as the weighting func-
tion.
Then: Where:
R1
0
(1)
R2 = R2 + R2
(2)
R2 0
(2) (3)
R3 = R3 + R3
R3 = 0 (3) (4)
R4 0
R4 = R4 + R4
..
R5 0 .
Let’s examine the Nodal Residual Equations for nodes 1, 2, 3, 4 . . . You can draw in the arrows!
∫ X2 [ ](1)
(1) d2 ψ
R1 = S1 C1 + C2 ψ + C3 dX = 0
X1 dX 2
2
(1) (2)
R2 = R2 + R2
∫ X2 [ ](1) ∫ X3 [ ](2)
(1) d2 ψ (2) d2 ψ
R2 = S2 C1 + C2 ψ + C3 dX + S2 C1 + C2 ψ + C3 dX = 0
X1 dX 2 X2 dX 2
(2) (3)
R3 = R3 + R3
∫ X3 [ ](2) ∫ X4 [ ](3)
(2) d2 ψ (3) d2 ψ
R3 = S3 C1 + C2 ψ + C3 dX + S3 C1 + C2 ψ + C3 dX = 0
X2 dX 2 X3 dX 2
(3) (4)
R4 = R4 + R4
∫ X4 [ ](3) ∫ X5 [ ](4)
(3) d2 ψ (4) d2 ψ
R4 = S4 C1 + C2 ψ + C3 dX + S4 C1 + C2 ψ + C3 dX = 0
X3 dX 2 X4 dX 2
..
.
In general for element (e) with nodes i and j
∫ Xj [ ](e)
(e) (e) d2 ψ
Ri = Si C1 + C2 ψ + C3 dX (1)
Xi dX 2
∫ Xk [ ](e)
(e) (e) d2 ψ
Rj = Sj C1 + C2 ψ + C3 dX (2)
Xj dX 2
Now, lets manipulate the 2nd-order term from the governing equation into a 1st-order term. Take
dψ
the derivative of (Si dX ) using the chain rule.
( )
d dψ d2 ψ dSi dψ
Si = Si +
dX dX dX 2 dX dX
Rearrange algebraically ( )
d2 ψ d dψ dSi dψ
Si 2
= Si − (3)
dX dX dX dX dX
Xj −X Xj −X
Substitute Equation 3 into Equation 1 and solve . . . knowing Si = ( ℓ ) and ψ = ( ℓ ψi +
X−Xi
ℓ ψj ):
∫ [ ( )] ∫ Xj ( ) ∫ Xj ∫ Xj
(e)
Xj
d dψ −dSi dψ
Ri = C1 Si dX + C1 dX + Si (C2 ψ)dX + Si C3 dX
Xi dX dX Xi dX dX Xi Xi
z [ }| {
z }| { ∫ X −X ( )]
(e) dψ dψ Xj −d( j ℓ ) d Xj − X X − Xi
Ri = C1 Si |X=Xj −C1 Si |X=Xi + C1 ψi + ψj dX
dX dX Xi dX dX ℓ ℓ
z }| { z}|{
C2 ℓ C2 ℓ ℓ
+ ψi + ψj + C3
3 6 2
Knowing Si = 1 at X = Xi and Si = 0 at X = Xj
(e) dψ C1 C2 ℓ C2 ℓ ℓ
Ri = −C1 |X=Xi − (ψi − ψj ) + ψi + ψj + C3
dX ℓ 3 6 2
3
Substituting Equation 3 into Equation 2 and solving gives a similar result:
(e) dψ C1 C2 ℓ C2 ℓ ℓ
R j = C1 |X=Xj − (−ψi + ψj ) + ψi + ψj + C3
dX ℓ 6 3 2
Wow!! Remember ψ is the temperature for our problem.
There are two parts to this result: an element “stiffness” contribution and a forcing function
contribution. [ ]
(e) 0 0
[K]B.C. =
0 hA
{ }
(e) 0
{F}B.C. =
hATf
Now combine the whole thing!!
[K](e) {T} = {F}(e)
4
2.2 Tip Element ONLY
(e) (e) (e)
For only the tip element, [K](e) = [K]C1 + [K]C2 + [K]B.C.
{ [ ] [ ] [ ]}
(e) kA 1 −1 hpℓ 2 1 0 0
[K] = + +
ℓ −1 1 6 1 2 0 hA
(e) (e)
and {F}(e) = {F}C3 + {F}B.C.
{ } { }
hpℓTf 1 0
{F} (e)
= +
2 1 hATf
Wow!! This should all look familiar! Now assemble global stiffness matrix and load matrix for
the whole finite element model. Solve same as we did the mechanics solution: [K]{T} = {F}. See
two examples in textbook.
ANSYS Example
6
5 Fluid Mechanics with 1-D Linear Elements
u = 0 at y = 0 u = 0 at y = h
Note that the governing equation is of the same general form as the equation we developed for Heat
Transfer:
d2 ψ
C1 2 + C2 ψ + C3 = 0
dx
where:
ψ=u
x=y
C1 = µ
C2 = 0
C3 = −dp
dx
where: [ ] [ ]
(e) C1 1 −1 µ 1 −1
[K]C1 = =
ℓ −1 1 ℓ −1 1
[ ]
(e) −C2 ℓ 2 1
[K]C2 = =0
6 1 2
Therefore: [ ]
µ 1 −1
[K](e)
= ← Flow Resistance Matrix
ℓ −1 1
From derivation of {F}(e) in Heat Transfer
{ }
C3 ℓ 1
{F} (e)
=
2 1
{ }
− dp ℓ 1
{F} (e)
= dx ← Flow Forcing Matrix
2 1
dp
For fully-developed laminar flow, dx is a constant
As before, assemble global “stiffness” and “force” matrices. Then solve the Global Matrix Equation:
[K]{u} = {F}
7
6 Typical 1-D Fluid Mechanics Finite Element Model
where:
ρ ≡ Fluid density at each element
W ≡ Channel width (in z-direction)
u ≡ Element flow velocity
∫ Yj
(e)
ṁ = ρW (Si ui + Sj uj )dY
Yi
( )
(e) ui + uj
ṁ = ρW ℓ
2
7 Verify Results
Again, answers must be verified to some degree of certainty!! (See book for conservation of
energy in each element.)