Академический Документы
Профессиональный Документы
Культура Документы
Martin Saa
224009495
Aero 430
HW 6
1. Problem
1.
du
3. Q(x)=2∗π∗x*q(x) , q(x) = -𝛾
dx
4. X1 = 3 , X3 = 6. 5
https://www.mathcha.io/editor 1/7
10/25/2018 Mathcha
https://www.mathcha.io/editor 2/7
10/25/2018 Mathcha
2. Elemental Derivation
1. Noting that heat conduction is axisymmetric
2. From equation set (1), we can conclude the following
1. Q(x) = constant → Q’(x) = 0
2. Q 1 = Qi-1 + 0
i-
2
3. -Q 1 = -Qi - 0
i-
2
4. (-Qi - 0 ) + (Qi-1 + 0) = 0
3. Using the definition of Q from section 1.2.3 , and the above, we can derive the following for
each element
1. element j ; j ∈ Xi-1 , Xi
1. Qi-1 + 0 = - 2 ⋅ 𝜋 ⋅ x 1 ⋅ 𝛾 ⋅ u' 1
i- i-
2 2
2. -Qi - 0 = 2 ⋅ 𝜋 ⋅ x 1 ⋅ 𝛾 ⋅ u' 1
i-i-
2 2
b. 2 ≡ Kj21 + Kj22 ⋅u '
1
i-
2
2. Using the center difference estimate for u':
ui - ui-1
u' 1 =
i-
2
h
ui - ui-1
1. Qi-1 + 0 = -2 ⋅ 𝜋 ⋅ x 1 ⋅ 𝛾 ⋅
i- h
2
j j
a . ≡ K11 ⋅ ui-1 + K12 ⋅ ui
j
2 ⋅ 𝜋 ⋅ xmid ⋅ 𝛾 j
2 ⋅ 𝜋 ⋅ xmid ⋅ 𝛾
b. ∴ K11 = , ∴ K12 = -
h h
ui - ui
2. Similarly, -Qi - 0 = 2 ⋅ 𝜋 ⋅ x 1 ⋅ 𝛾 ⋅
i- h
2
j j
a . ≡ K21 ⋅ ui-1 + K22 ⋅ ui
j
2 ⋅ 𝜋 ⋅ xmid ⋅ 𝛾 j j
2 ⋅ 𝜋 ⋅ xmid ⋅ 𝛾
b. ∴ K21 = - =K12 , ∴ K22 = = Kj11
h h
ui+1 - ui
1. Qi + 0 = -2 ⋅ 𝜋 ⋅ x 1 ⋅ 𝛾 ⋅
i+ h
2
a.≡ Kj11+1 ⋅ ui + Kj12+1 ⋅ ui+1
2 ⋅ 𝜋 ⋅ xmid ⋅ 𝛾 2 ⋅ 𝜋 ⋅ xmid ⋅ 𝛾
j+1 j+1
b. ∴ K11 = , ∴ K12 = -
h h
https://www.mathcha.io/editor 3/7
10/25/2018 Mathcha
ui+1 - ui
2. Similarly, -Qi+1 - 0 = 2 ⋅ 𝜋 ⋅ x 1 ⋅ 𝛾 ⋅
i+ h
2
j j+1
a . ≡ K21 ⋅ ui + K22 ⋅ ui+1
2 ⋅ 𝜋 ⋅ xmid ⋅ 𝛾 2 ⋅ 𝜋 ⋅ xmid ⋅ 𝛾
j+1 j j+1
b. ∴ K21 = - =K12 , ∴ K22 = = Kj11
h h
4. After constructing the Q(x) equations for all elements j1... jN, we have the following
1. At every interior grid point, i2... iN:
j j
a. -Qi - 0 = K21 ⋅ ui-1 + K22 ⋅ ui
j+1 j+1
b. Qi + 0 = K11 ⋅ ui + K12 ⋅ ui+1
c. Bringing condition 2.2.4
j+1
j
1. K21 ⋅ ui-1 + K22 + K11
j
⋅ ui + Kj12+1 ⋅ ui+1 = 0
2. At the outside grid points
a. K111 ⋅ u1 + K112 ⋅ u2 = Q1
b. KN N
21 ⋅ uN + K22 ⋅ uN+1 = -QN+1
3. Using this system of equations, we can build a tri-diagonal matrix and solve for ui
a. This is also called assembling the global K matrix
https://www.mathcha.io/editor 4/7
10/25/2018 Mathcha
3. Analytical Solution
1. The process for finding the analytical solution is outlined in the book
2. Finding a value for C, the temperature, u, can be solved for across the pipe
https://www.mathcha.io/editor 5/7
10/25/2018 Mathcha
4. Results
Note that this was run for meshes with elements of { 32, 16... 1 }
Plotting the Error vs Location for the multiple meshes:
https://www.mathcha.io/editor 7/7