MATLAB Graphing Matlab Heat Transfer | T_0 Variable

  • Thread starter Thread starter Corey Williams
  • Start date Start date
  • Tags Tags
    Graphing Matlab
AI Thread Summary
The discussion focuses on challenges in graphing heat transfer results in Matlab, particularly related to solving a differential equation involving the variable T(t) with a known initial value T_0. Users report issues with Matlab returning "no explicit solution found" or freezing during computations. It is noted that while Matlab excels in numerical computations, it struggles with symbolic manipulations, suggesting that Mathematica may be a better option for analytic solutions. For plotting, utilizing Matlab's built-in numerical ODE solvers is recommended instead of relying on symbolic solutions. The key takeaway is to focus on numerical methods for effective graphing of heat transfer results in Matlab.
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.
 
Back
Top