Graphing Matlab Heat Transfer | T_0 Variable

  • Context: MATLAB 
  • Thread starter Thread starter Corey Williams
  • Start date Start date
  • Tags Tags
    Graphing Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
Corey Williams
Messages
5
Reaction score
0
I'm working with heat transfer and need to graph theoretical results. I've tried several things and it will either throw something along the lines of "no explicit solution found" or just hang forever. I'm not new to programming, but I am new to the Matlab library. The only variable is T(t). T_0 is the known initial value.
n%20_1%20%2B%20%5Cepsilon%20_2%29%28T%28t%29%5E4-T_0%5E4%29&sig=a80379b09dc84b43d9ada9b17c73ba77.gif

Alternatively you can use
der?T%28t%29%5E4-T_0%5E4%5Capprox4T_0%5E3%28T%28t%29-T_0%29&sig=26bed7715e187fb1f47fbc4f389cbda8.gif


Code:
% One of the things I tried. Seems to be a lot of methods, not sure which one to use.
syms T(t);
ode = (v^2) / r == (mass * specifSubstrate) * diff(T,t) + a * (convSubstrate + convFilm) * (T - tempAmbient) + stefBolt * a *(emOne + emTwo) * (4 * tempAmbient^3 * (T - tempAmbient));
cond = T(0) == tempAmbient;
TSol(t) = dsolve(ode,cond);
 
Physics news on Phys.org
It seems that your problem is solving the differential equation, not (as your title suggests) the plotting part itself.

While Matlab is very useful for numerical computations, symbolic manipulations is not where it shines. I would suggest using Mathematica if you need an analytic solution. However, if your only worry is plotting the solution, you can (and should) use any of Matlab’s built-in numerical ODE solvers.