Temperature Distribution of Current Carrying Wire in Matlab

In summary, the conversation discusses using the shooting algorithm in Matlab to solve a non-linear ODE. The issue of not having a boundary at x = L/2 is brought up, and the functions for bar_temp and bar_res are mentioned. The function bar_res is used to find the initial guess for the shooting algorithm to find the temperature distribution.
  • #1
patric44
296
39
Homework Statement
the temperature distribution of a current carrying wire using Matlab using the shooting method ?
Relevant Equations
in the figure .
hi guys
i was trying to solve this non linear ode using the shooting algorithm in Matlab :
Untitled.jpg

i am not sure how to solve it using the normal shooting algorithm i have , since no other boundary at x = L/2 was given to check the shooting ?!
Matlab:
function dTdx = bar_temp(x,y)
k = 72;
h = 2000;
epsilon = 0.1;
sigma = 5.67e-8;
i = 2;
rho = 32e-8;
Tinf = 300;
D = 7.62e-5;
L = 4e-3;
p = (4*h)/(k*D);
q = (4*epsilon*sigma)/(k*D);
z =-(i^2*rho)/(k*(pi/4*D^2)^2);
dTdx = [y(2);(p*(y(1)-Tinf))+(q*(y(1)^4-(Tinf)^4))+z];
end

Matlab:
function r = bar_res(IC_guess)
T0 = 300;
TL = ??;
L = 4e-3;
[x,y] = ode45(@bar_temp,[0,L/2],[T0 IC_guess]);
r = y(end,1)-TL;
end

Matlab:
L = 4e-3;
T0 = 300;
guess = fzero(@(x)bar_res(x),-50);
[x,y] = ode45(@bar_temp,[0,L/2],[T0 guess]);
plot(x,y(:,1));
xlabel('x')
ylabel('T')
title('Temperature Distribuiton')
 
Physics news on Phys.org
  • #2
Since the temperature is symmetric with respect to L/2, T = 300 at x = L
 

1. What is the purpose of studying temperature distribution of current carrying wire in Matlab?

The purpose of studying temperature distribution of current carrying wire in Matlab is to understand the thermal behavior of the wire and predict its temperature under different operating conditions. This information is crucial for designing safe and efficient electrical systems.

2. How is Matlab used to simulate temperature distribution of current carrying wire?

Matlab is a powerful tool for numerical simulations and can be used to solve complex mathematical equations that describe the thermal behavior of a current carrying wire. By inputting the relevant parameters and boundary conditions, Matlab can calculate the temperature distribution along the wire and visualize it in the form of graphs or heat maps.

3. What factors affect the temperature distribution of a current carrying wire?

The temperature distribution of a current carrying wire is affected by several factors, including the wire's material properties, current flow, ambient temperature, and heat dissipation mechanisms. Additionally, the wire's geometry and insulation also play a role in determining its temperature distribution.

4. How accurate are the temperature predictions from Matlab simulations?

The accuracy of temperature predictions from Matlab simulations depends on the accuracy of the input parameters and boundary conditions. With proper calibration and validation, Matlab simulations can provide highly accurate results. However, it is always recommended to compare the simulation results with experimental data for validation.

5. Can Matlab simulations be used for other thermal analysis applications?

Yes, Matlab simulations can be used for various thermal analysis applications, such as heat transfer in electronic devices, thermal management in buildings, and thermal comfort analysis. Its versatility and ability to handle complex equations make it a popular choice for researchers and engineers in the field of thermal analysis.

Similar threads

  • Advanced Physics Homework Help
Replies
6
Views
2K
  • Advanced Physics Homework Help
Replies
11
Views
2K
Replies
1
Views
619
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
9
Views
2K
  • Programming and Computer Science
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
Back
Top