Graphing Matlab Heat Transfer | T_0 Variable

  • Context: MATLAB 
  • Thread starter Thread starter Corey Williams
  • Start date Start date
  • Tags Tags
    Graphing Matlab
Click For Summary
SUMMARY

The discussion focuses on graphing heat transfer results using Matlab, specifically addressing the challenges of solving a differential equation involving the variable T(t) and the known initial value T_0. The user encountered issues with Matlab's symbolic toolbox, leading to errors like "no explicit solution found." It is concluded that while Matlab is effective for numerical computations, it is not optimal for symbolic manipulations. For analytic solutions, Mathematica is recommended, while Matlab's built-in numerical ODE solvers are suggested for plotting solutions.

PREREQUISITES
  • Familiarity with Matlab programming and syntax
  • Understanding of ordinary differential equations (ODEs)
  • Knowledge of heat transfer principles and variables
  • Experience with numerical methods for solving equations
NEXT STEPS
  • Learn how to use Matlab's built-in numerical ODE solvers for plotting
  • Explore the capabilities of Mathematica for symbolic solutions
  • Study the MathWorks documentation on solving systems of differential equations
  • Investigate advanced heat transfer modeling techniques in Matlab
USEFUL FOR

Engineers, researchers, and students working on heat transfer problems who need to graph theoretical results using Matlab or seek alternatives for symbolic solutions.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 45 ·
2
Replies
45
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
1K
  • · Replies 27 ·
Replies
27
Views
3K