Question

Please write clearly and answer all parts using MATLAB when asked.
Problem #4. The convective heat transfer problem of cold oil (Pr > 10) flowing over a hot surface can be described by the following second-order ordinary differential equations. d2T Pr(0.3322 dT dh where T is the dimensionless temperature, x is the dimensionless similarity variable, and Pr is called Prandtl number, a dimensionless group that represents the fluid thermos-fluid properties. For oils, Pr-10-1000, depending on the kinds of oils. This problem is a boundary-value problem with the two conditions given on the wall (x-0) and in the fluid far away from the wall (e.g., x=5). You are asked to use the shooting method to solve this problem by employing the MATLAB functions such as ode45 and fzero: 4.1 Setup a function file, [dy] = dTdx(x, T, Pr), so you can solve this second-order differential by solve two first-order ordinary differential equations. Note that Pr is a parameter that can be assigned any values. 4.2 Convert the present boundary-value problem to a root-finding problem that is solved with MATLAB fzero. Plot the variation of dimensionless temperature T as a function of x for four values of Pr: 10, 100, 200, 500. 4.3

0 0
Add a comment Improve this question Transcribed image text
Answer #1

syms y(t)
Pr = 100 % assuming as hot body so 100, it can vary from (10 - 1000)

[Vector] = odeToVectorField(diff(y, 2) == -(Pr/2)*((0.332/2)*x*x)*diff(y) % declaring equation
M = matlabFunction(Vector,'vars', {'t','Y'})
answer = ode45(M,[0 500],[2 10]);
fplot(@(x)deval(answer,x,1), [0, 50])

Note: odeToVectorField and matlabFunction are matlab built in libraries.

Add a comment
Know the answer?
Add Answer to:
Please write clearly and answer all parts using MATLAB when asked. The convective heat transfer problem...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can...

    Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can be described by the following second-order ordinary differential equations. d'T dT +0.83x = 0 dx? dx T(0)=0 (1) T(5)=1 where T is the dimensionless temperature and x is the dimensionless similarity variable. This is a boundary-value problem with the two conditions given on the wall (x=0, T(O) = 0) and in the fluid far away from the wall (x = 5, T(5) = 1)....

  • Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can...

    Problem #4. The convective heat transfer problem of cold oil flowing over a hot surface can be described by the following second-order ordinary differential equations. der 0 dx T(0)=0 (1) T(5)=1 where T is the dimensionless temperature and x is the dimensionless similarity variable. dr? +0.83, dT This is a boundary-value problem with the two conditions given on the wall (x=0, T(O) = 0) and in the fluid far away from the wall (x = 5,7/5) = 1). You are...

  • Set up and solve a boundary value problem using the shooting method using Matlab

    Set up and solve a boundary value problem using the shooting method using Matlab A heated rod with a uniform heat source may be modeled with Poisson equation. The boundary conditions are T(x = 0) = 40 and T(x = 10) = 200 dTf(x) Use the guess values shown below. zg linspace (-200,100,1000); xin-0:0.01:10 a) Solve using the shooting method with f(x) = 25 . Name your final solution "TA" b) Solve using the shooting method with f(x)-0.12x3-2.4x2 + 12x....

  • I need the matlab codes for following question (1) (a). Solve the following second-order differential equations by a pair of first-order equations, xyʹʹ − yʹ − 8x3y3 = 0; with initial conditions y = 0...

    I need the matlab codes for following question (1) (a). Solve the following second-order differential equations by a pair of first-order equations, xyʹʹ − yʹ − 8x3y3 = 0; with initial conditions y = 0.5 and yʹ = −0.5 at x = 1. (b). Solve the problem in part (a) above using MATLAB built-in functions ode23 and ode45, within the range of 1 to 4, and compare with the exact solution of y = 1/(1 + x2) [Hint: ode23 à...

  • Cooling fins are used to increase the area available for heat transfer between metal walls and...

    Cooling fins are used to increase the area available for heat transfer between metal walls and poorly conducting fluids such as gases. A rectangular fin is shown in the following figure. To design a cooling fin and calculate the fin efficiency one must first calculate the temperature profile in the fin. If L>>B, no heat is lost from the end or from the edges, and the heat flux at the surface is given by: in which the convective heat transfer...

  • write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle...

    write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle Objective: Write MATLAB scripts to solve differential equations. Implementation: MatLab is an ideal environment for solving differential equations. Differential equations are a vital tool used by engineers to model, study and make predictions about the behavior of complex systems. It not only allows you to solve complex equations and systems of equations it also allows you to easily present the solutions in graphical form....

  • I'm trying to solve this differential equations by using matlab. But I don't know the reason why I can't ge...

    I'm trying to solve this differential equations by using matlab. But I don't know the reason why I can't get the solutions. I've attached matlab code and few differential equation. Please find a the way to solve this problem. second oder ode2.m x+ function, second-oder-ode2 t-0:0.001:30 initial-x = 0; initial-dxdt = 0: lt.影=ode45( @rhs, t, [initial.x initial.dxdt ] ); plot(t.(:,1l): xlabel( t); ylabel(x): 申 function dxdt=rhs( t, x) dxdt-1 =x(2); dxdt-2 (-50 x(2)+61.25+((1-cos(4 pi 10 t))/2) (47380 x(1)-3-7428 x(1) 2...

  • Question about MATLAB boundary value problem. How can I solve the following problems? I would appreciate...

    Question about MATLAB boundary value problem. How can I solve the following problems? I would appreciate if you could briefly explain how you get the answer. (In the second problem, the selected answer is not correct.) Given the differential equation: u" + 2u' - xu = 0 subject to the boundary conditions: du/dx (x = 0) = 4 u(x = 5) = 10 This is to be solved using a second-order accurate in space method with x = 0.1. Which...

  • please show all steps! A heat-transfer experiment in CBE 154 investigates conductive heat transport within a...

    please show all steps! A heat-transfer experiment in CBE 154 investigates conductive heat transport within a solid and convective heat transport at a solid gas interface. In this homework problem, you are to write the differential equations describing the experimental setup (but not solve them). The first part of the experiment involves measurement of a steady-state temperature profile along a brass rod to determine the conductivity of brass and the rate of heat loss through the insulation to the surrounding...

  • Problem 3: In a molten-salt nuclear reactor, radioactive liquid is flowing through a cylindrical pipe of diameter D. Fi...

    Problem 3: In a molten-salt nuclear reactor, radioactive liquid is flowing through a cylindrical pipe of diameter D. Fission in the liquid results in a uniform internal heat generation of à W/m3. The pipe wall also has a heater on it that can provide a uniform surface heating rate of q" W/m2. The radioactive liquid has a specific heat capacity of Cp J/kg-K, a mass flowrate of m kg/s, and an inlet temperature of Tm, Conduction in the fluid in...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT