1
Designing a Temperature Distribution Profile
Jai-Kwan Bae
12/11/2014
Prof. Gracewski
2
Abstract
In order to design an appropriate temperature distribution for fish, a profile T(Ο) needs to
be determined for the temperature controller. Once the profile is decided, I could use the separation
of variables and geometric symmetry on the Laplaceβs equation to derive an ordinary differential
equation. Then, the initial conditions, boundary conditions and orthogonality are used to determine
the coefficients of the temperature distribution. In the last section, we use our result to calculate
the heat flow that can be used as a sanity check.
Problem Statement
Figure 1. Spherical Coordinates Figure 2. Temperature Distribution of a Pond
PDE: π»2π’ = 0 for 0 < π < π and 0 < π· <π
2
BCβs: π’ (π,π
2) = 0
π’(π, π·) = π(π·)
The heat flow into the pudding is equal to Kβ― β π’ β π|π=πππ
Parameters: a=5m, πΎ0 = 0.6π/(π ππΆ), π’ (π,π
2) = 0, π(0) = 8β, π(π·) > 0.
3
Derivation
PDE: π»2π’ = 0 for 0 < π < π and 0 < π· <π
2
BCβs: π’ (π,π
2) = 0 π’(π, π·) = π(π·)
In spherical coordinates, Laplaceβs equation has the form of:
β2π’ =1
π2
π
ππ(π2
ππ’
ππ) +
1
π2π ππ2π·
π2π’
ππ2+
1
π2π πππ·
π
ππ·(sin π·
ππ’
ππ·) = 0
Since the temperature distribution is axisymmetric, we know:
π2π’
ππ2= 0
Then PDE becomes:
β2π’ =1
π2
π
ππ(π2
ππ’
ππ) +
1
π2π πππ·
π
ππ·(sin π·
ππ’
ππ·) = 0
- Separation of Variables
Assume
π’(π, π·) = πΉ(π)πΊ(π·)
Obtain:
πΊ
π2
π
ππ(π2
ππΉ
ππ) +
πΉ
π2 sin π·
π
ππ·(sin π·
ππΊ
ππ·) = 0
4
Multiply Ο2
FG and rearrange it:
1
πΉ
π
ππ(π2
ππΉ
ππ) = β
1
πΊ sin π·
π
ππ·(sin π·
ππΊ
ππ·) = π
Broke up the above equation into two ordinary differential equations:
ODE#1: π
πΞ¦(sin π·
ππΊ
πΞ¦) + π sin π· πΊ = 0 0 < π· <
π
2
BC #1: πΊ (π
2) = 0, |πΊ(0)| < β
ODE#2: π2 π2πΉ
ππ2 + 2πππΉ
ππβ πΉπ = 0 0 < π < π
BC #2: |πΉ(0)| < β
IC: π’(π, π·) = π(π·)
Then we solve the Eigenvalue problems:
- Suppose Ξ»=0,
Observe,
π2ππΉ
ππ= ππππ π‘πππ‘ = π1, sin Ξ¦ β
ππΊ
πΞ¦= ππππ π‘πππ‘ = π2
Then,
F =π1
π+ π1
β², πΊ = π2 β« csc Ξ¦ πΞ¦ = π2 (log (tanΞ¦
2)) + π2
β²
By the boundary conditions, |F(0)|, |G(0)| < β, πΊ (π
2) = 0
β΄ F = π1β², πΊ = π2
β² = 0, π’0 = 0, π‘πππ£πππ
5
- Suppose Ξ»>0,
For ODE#1, in Sturm Louiville Form, we can see:
π(π·) = π ππ π· , π = 0, π(π·) = π ππ π·
β΄ πΊπ(π·)=ππ(πππ π·), ππ = π(π + 1)
However, since G(π/2)=0, m is always odd.
β΄ πΊπ(π·)=π2πβ1(πππ π·), ππ = (2π)(2π β 1), for n=1,2,3, β¦.
For ODE#2, Assume πΉ(π) = πΆππ
2π(πΆπ ππ β1) + π2(πΆπ (π β 1)ππ β2) β ππΆππ = 0
πΆππ(2π + π (π β 1) β π) = 0
π 2 + π β π = 0
π = 2π β 1 ππ β 2π
β΄ πΉπ(π) = AnΟ2nβ1 +Bn
Ο2n,
By the boundary condition #2:
β΄ πΉπ(π) = AnΟ2nβ1,
β΄ π’π = πΉππΊπ,
π’ = β π’π
β
π=1
= β AnΟ2nβ1π2πβ1(πππ π·)
β
π=1
Note that since the differential equations have the Strum Louiville Form, Ξ» β₯ 0.
6
- Orthogonality
β« ππ(πππ π·)ππ(πππ π·) π ππ π· ππ·
π2
0
= 0 when π β π
β«(π2πβ1(πππ π·))2 π ππ π· ππ·
π2
0
=1
4π β 1
The initial conditions is :
π’(π, π·) = π(π·) = β π΄ππ2πβ1π2πβ1(πππ π·)
β
π=1
β΄ β« π(π·)π2πβ1(πππ π·) π ππ π· ππ·
π2
0
= β π΄ππ2πβ1 β« π2πβ1(πππ π·)π2πβ1(πππ π·) π ππ π· ππ·
π2
0
β
π=1
=π΄ππ2πβ1
4π β 1
β΄ π΄π =4π β 1
π2πβ1β« π(π·)π2πβ1(πππ π·) π ππ π· ππ·
π2
0
Thus, the solution is:
π’ = β π’π
β
π=1
= β AnΟ2nβ1π2πβ1(πππ π·)
β
π=1
Where
π΄π =4π β 1
π2πβ1β« π(π·)π2πβ1(πππ π·) π ππ π· ππ·
π2
0
7
- Heat flow of the hemisphere surface
Kβ― β π’ β π|π=πππ= Kβ―βu
βΟοΏ½ΜοΏ½ β οΏ½ΜοΏ½ π sin Ξ¦ ππππΞ¦ = 2ΟKπ2 β«
βu
βΟ
π
20
sin Ξ¦ πΞ¦
= 2ΟKπ2 β« β(2π β 1)π΄ππ2πβ2π2πβ1(πππ π·) sin Ξ¦ πΞ¦
β
π=1
π2
0
= 2ππΎ β(2π β 1)π΄ππ2π β« π2πβ1(πππ π·) π ππ π· ππ·
π2
0
β
π=1
= 2ππΎ β(2π β 1)π΄ππ2π β« π2πβ1(π₯)ππ₯
1
0
β
π=1
- Heat flow of the upper surface
Kβ― β π’ β πππ = πΎ β―1
Ο
ππ’
πΞ¦Ξ¦Μ β Ξ¦Μπππππ = 2ππΎ β«
ππ’
πΞ¦ππ
π
0
= 2ΟK β« β π΄ππ2πβ1ππ2πβ1(πππ π·)
πΞ¦ππ
β
π=1
π
0
= 2ΟK β π΄π
π2π
2π
ππ2πβ1(πππ π·)
πΞ¦
β
π=0
|Ξ¦=
Ο2
β΄ The total Heat flux = 2ΟK β π΄ππ2π [(2π β 1) β« π2πβ1(π₯)ππ₯
1
0
β1
2π
ππ2πβ1(π₯)
ππ₯|π₯=0]
β
π=1
Note that this value should be 0 as a sanity check.
8
Results
(a) π1(π·) = π0 cos Ξ¦
Figure 3. Plot of π0 cos Ξ¦
π΄1 =3
πβ« 8 cos2 π sin π ππ
π/2
0=
24
aβ
1
3=
8
π, π΄π = 0 π€βππ π β 1
β΄ π’1 =8
ππ πππ π·
In the previous section, we derived the heat flux: Kβ― β π’ β π|π=πππ
=2ππΎ β (2π β 1)π΄ππ2π β« π2πβ1(π₯)ππ₯1
0βπ=1 = 2ππΎ β π΄1π2 β
1
2= 24π
Figure 4. Plot of π’1(π, 0)
0.5 1.0 1.5
2
4
6
8
1 2 3 4 5
2
4
6
8
9
Figure 5. Contour plot of π’1(π, Ξ¦)
(b) π2(π·) = 3 πππ π· + 5 πππ 3 π·
Figure 6. Plot of π2(π·) = 3 πππ π· + 5 πππ 3 π·
π΄1 =3
πβ« (3 πππ π· + 5 cos3 π·) cos π· sin π· ππ·
π/2
0=
6
a= 1.2,
π΄2 =7
π3β« (3 πππ π· + 5 πππ 3 π·)π3(cos π·) sin π· ππ·
π/2
0
=2
π3=
2
125
0.5 1.0 1.5
2
4
6
8
10
π΄π = 0 π€βππ π β 1, 2
β΄ π’2(π, π·) = π΄1π πππ π· + π΄2π3π3(πππ π·)
=6
5π πππ π· +
1
125π3(5 cos3 Ξ¦ β 3 πππ π·)
In the previous section, we derived the heat flux: Kβ― β π’ β π|π=πππ
=2ΟKπ2 β«βu
βΟ
π
20
sin Ξ¦ πΞ¦ = 2ππΎ β (2π β 1)π΄ππ2π β« π2πβ1(π₯)ππ₯1
0βπ=1
= 2ΟK (π΄1π2 β1
2+ 3π΄2π4 β (β
1
8)) = 13.5π
Figure 7. Plot of π’2(π, 0)
Figure 8. Contour Plot of π’2(π, Ξ¦)
1 2 3 4 5
2
4
6
8
11
Discussion
In order to design the temperature profile for fish, I had to choose a specific species of fish
that I am targeting for. Lake Trout is one of the most common fish that you can see in a pond and
the optimal temperature for the species is around 40β which is about 4β. Compare to the original
solution, you can observe that the second profile has more gentle temperature change. I also tried
to make the profile as simple as possible such that the fish inside the pond wonβt get confused by
the artificial manipulation. The sanity checks were achieved by checking all kinds of various
conditions, such as T(Ξ¦) > 0, u (Ο,Ο
2) = 0, T(0) = 8. The most characteristic sanity check was to
see if the total heat flux is 0. We proved above that the total heat flux becomes 0 when
(2π β 1) β« π2πβ1(π₯)ππ₯1
0=
1
2π
ππ2πβ1(π₯)
ππ₯|π₯=0. It turns out the equation is satisfied in case n=1 and
n=2. From the conservation energy, we can deduce that it is true for all eigenfunctions.
Summary
This project focuses on solving the Laplaceβs equation in an axisymmetric situation. We
used the separation of variables to obtain the ordinary differential equation and could observe the
eigenfunctions are Legendre polynomials. By setting a temporary initial condition with fixed
boundary conditions, all the coefficients were obtained and the graphs were drawn with
Mathematica as figures.