3
$\begingroup$

I’m interested in solving the heat equation: d[K[z] d[T[z],z],z]=0, equipped with T(-h/2)=Tm and T(h/2)=Tc.

Is it possible to get a symbolic solution in Mathematica using the power series method?

The solution they provide in literature is attached in the picture.

Where: K(z)=Km+(Kc-Km)(1/2+z/h)^n

enter image description here

$\endgroup$
1
  • $\begingroup$ neither Maple nor Mathematica can solve the heat pde analytically with the $k$ coefficient (thermal conductivity of the material) as function of space. Mathematica can solve it for scalar $k$. btw, the heat pde depends on time also. so you need to have initial conditions, not just boundary conditions. $\endgroup$
    – Nasser
    Commented Sep 28, 2022 at 9:02

1 Answer 1

4
$\begingroup$

As mentioned in comment, neither Maple nor Mathematica can solve the heat pde analytically with the $K$ coefficient (thermal conductivity of the material) as function of space. Mathematica can solve it for scalar $k$ which I show below so you can use if you want to try for yourself.

Heat PDE depends on time and space. You have not said what the initial conditions are. Assuming $u(x,0)=f(x)$ then

ClearAll[u, x, t, Tm, Tk, h, f, n, z, k];
pde = D[u[z, t], t] == k*D[u[z, t], {z, 2}]
bc = {u[-h/2, t] == Tm, u[h/2, t] == Tc}
ic = u[z, 0] == f[z]
sol = DSolve[{pde, bc, ic}, u[z, t], {z, t}, Assumptions -> {h > 0, t > 0, k > 0}];

Mathematica graphics

In the steady state (which you showed), i.e. as $t \to \infty$ then we see due to the term $e^{-\frac{\pi ^2 t K[1]^2}{h^2}}$ it will go to zero. Hence the sum term vanish and the solution at steady state solution $u(z,t)$ becomes

$$ u(z,\infty) =T_m-\frac{\left(-\frac{h}{2}-z\right) (T_c- T_m)}{h} $$

This does not match what you showed, but $k$ used here is not function of space.

May be Mathematica in next version could solve the heat pde with $k$ function of space.

If you try to make $k$ function of space, then Mathematica can not solve it

ClearAll[u, x, t, Tm, Tk, h, f, n, z, k];
pde = D[u[z, t], t] == k[z]*D[u[z, t], {z, 2}]
bc = {u[-h/2, t] == Tm, u[h/2, t] == Tc}
ic = u[z, 0] == f[z]
sol = DSolve[{pde, bc, ic}, u[z, t], {z, t}, Assumptions -> {h > 0, t > 0}];
$\endgroup$
1
  • $\begingroup$ Thank you so much for your answer. My problem was to find this solution for k function of space. I hope that the next versions of Mathematica will allow the resolution in symbolic form. $\endgroup$
    – Giuseppe
    Commented Sep 28, 2022 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.