Question: ( Problem 2 - use MATLAB ) In a cylindrical tube made of milk chocolate ( inside radius R = 2 c m , total
Problem use MATLAB
In a cylindrical tube made of milk chocolate inside radius
total length a warm milk is flowing
slowly in laminar fashion.
The milk entering the tube is chocolatefree
Chocolate dissolving in the milk is carried downstream,
also spreading radially inward by diffusion. The diffusion
coefficient of the chocolate in the milk is
You realize that the system may be described with the
following PDE is the length down the tube, is the
radius, is the concentration of chocolate in the milk:
You also identify the following boundary conditions:
BC # At the center of the pipe, the concentration of
chocolate is continuous and is at its minimum. Thus left
side" BC:
BC# At the pipe wall, which is solid, the chocolate isalways at a saturation concentration in the milk. Thus
right side" BC:
Use an mfile 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 and 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
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
