How can plot and solve this partial differential equation in mathematica?
$$ K \frac{\partial^2 T}{\partial x^2}- h (T-T_m) = \frac{\partial T}{\partial t} $$
$ Tm = 25 $
$ k= 47 $
$ h= 1.5 $
this equation is for a bar 1 meter long the boundary conditions
$ T(0,t) = 0 °C $
$ T(L,t) = 0 °C $
And the initial conditions are
$ T(x,0) = 42 °C $
And how can solve whit the finite difference method?
I try with this
Ecuacion = D[\[Theta][x, s], x, x] - (h + s)/k \[Theta][x, s] == -(1/ s) (h Ta + 41)
SolED = DSolve[{Ecuacion, \[Theta][0, s] == 0, \[Theta][L, s] == 0}, \[Theta][x, s], x]
code
so that people can use it to answer your question. $\endgroup$