Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( Problem 2 - use MATLAB ) In a cylindrical tube made of milk chocolate ( inside radius R = 2 c m , total

(Problem 2- use MATLAB)
In a cylindrical tube made of milk chocolate (inside radius
R=2cm, total length L=50cm), a warm milk is flowing
slowly (v=3cms) in laminar fashion.
The milk entering the tube is chocolate-free (0gcm3).
Chocolate dissolving in the milk is carried downstream,
also spreading radially inward by diffusion. The diffusion
coefficient of the chocolate in the milk is D=0.10cm2(s).
You realize that the system may be described with the
following PDE (z is the length down the tube, r is the
radius, c is the concentration of chocolate in the milk):
v(1-r2R2)delcdelz=Drdeldelr(rdelcdelr)
You also identify the following boundary conditions:
(BC #1) At the center of the pipe, the concentration of
chocolate is continuous and is at its minimum. Thus ("left
side" BC):
delcdelr=0
(BC#2) At the pipe wall, which is solid, the chocolate isalways at a saturation concentration in the milk. Thus
("right side" BC):
c(r=R)=0.275gcm3
Use an m-file function to invoke pdepe in MATLAB: solve
for the concentration distribution within the pipe over
the entire radius and length of the pipe.
(a) Plot this concentration distribution against z and r in
a properly labeled surface plot (a plot title reporting the
mesh size is acceptable).
(b) What are the following chocolate concentration
values, to four significant digits?
Midpoint of the tube length, at r=1cm
End of the tube length, at center of tube
(c) Display the entire program code used for your
function in MATLAB, and include your name as a
comment
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Thermodynamics for Engineers

Authors: Kenneth A. Kroos, Merle C. Potter

1st edition

1133112862, 978-113311286

More Books

Students also viewed these Chemical Engineering questions

Question

Summarize life insurance and disability insurance.

Answered: 1 week ago

Question

Discuss voluntary benefits.

Answered: 1 week ago

Question

Identify employee service benefits.

Answered: 1 week ago