Question

In: Mechanical Engineering

A water tank consists of a cylindrical part of radius r and height h and a hemispherical top. The tank is to be constructed to hold 600 m3

A water tank consists of a cylindrical part of radius r and height h and a hemispherical top. The tank is to be constructed to hold 600 m3 when filled. The surface area of the cylindrical part is 2πrh, and its volume is πr2h. The surface area of the hemispherical top is given by 2πr2, and its volume is given by 2πr3/3. The cost to construct the cylindrical part of the tank is $400 per square meter of surface area; the hemispherical part costs $600 per square meter. Use the fminbnd function to compute the radius that results in the least cost. Compute the corresponding height h.

 

 

Solutions

Expert Solution

Program plan:

• Write a function having two arguments height and the total cost of constructions as the function of radius.

• ‘fminbnd’ is used to find the least value of the function between the given intervals.

 

Program:

%**********************************************************

%A function is declared for the total cost and height as

%the arguments and the radius as the variable, fminbnd is

%used to find the radius of the least cost.

%**********************************************************

%function of radius

function [totalcost,height]=tc(r)

%‘height’ and ‘totatcost’ are the variables declared in the function.

height=600./(pi.*r.^2)-2.*r./3;

totalcost=2.*pi.*r.*height.*400+2.*pi.*600.*r.^2;

end

%main program

%‘fminbnd’ is used to find the minimum value of the function in the given interval.

rmin=fminbnd(@tc,0,10);

%‘rmin’ is assigned with the radius corresponding to the minimum total cost

disp('The radius which has least total cost is ');

%displays rmin value

disp(rmin);

%This line is used to call the function and assign the values of total cost and height to ‘[t,h]’

[t,h]=tc(rmin);

%displays 'Total minimum cost' text

disp('Total minimum cost');

%displays t variable value

disp(t);

%displays text

disp('The corresponding height is ');

%displays h variable value

disp(h);

 

Output:

The radius which has least total cost is 4.8572.

Total minimum cost 1.4823e+05.

The corresponding height is 4.8572.


 

 

Related Solutions

An amusement park ride consists of a cylindrical chamber of radius R that can rotate. The...
An amusement park ride consists of a cylindrical chamber of radius R that can rotate. The riders stand along the wall and the chamber begins to rotate. Once the chamber is rotating fast enough (at a constant speed), the floor of the ride drops away and the riders remain "stuck" to the wall. The coefficients of friction between the rider and the wall are us and uk. 1. Draw a free body diagram of a rider of mass m after...
An open-top cylindrical container is to have a volume of 729 cm3. What dimensions(radius and height)...
An open-top cylindrical container is to have a volume of 729 cm3. What dimensions(radius and height) will minimize the surface area?
A cylindrical conductive shell with radius a and height h Total i0 flow passes counterclockwise from...
A cylindrical conductive shell with radius a and height h Total i0 flow passes counterclockwise from the surface. The stream is homogeneously distributed over the lateral surface of the cylinder. Cylinder formed on the axis and at the middle point (O point) of the upper surface Find the magnetic field.
A conical tank has height 9 m and radius 4 m at the base. Water flows...
A conical tank has height 9 m and radius 4 m at the base. Water flows at a rate of 3 m^3/min. How fast is the water level rising when the level is 1 m and 2 m? (Use symbolic notation and fractions where needed.) When the water level is 1 m, the water level is rising at a rate of _ .When the water level is 2 m, the water level is rising at a rate of _.
Consider a uniformly charged cylinder with dimensions of radius r and height h contains a charge...
Consider a uniformly charged cylinder with dimensions of radius r and height h contains a charge in it’s volume. What is the magnitude and direction of the electric field at any point outside the cylinder . Describe each step as you go along .Find the electric field within the cylinder and outside of it. Describe each step as you go along. Consider the total charge Q on a line of length h with the use of Gauss’s law compute the...
Consider a uniformly charged cylinder with dimensions of radius r and height h contains a charge...
Consider a uniformly charged cylinder with dimensions of radius r and height h contains a charge in it’s volume. What is the magnitude and direction of the electric field at any point outside the cylinder . Describe each step as you go along .Find the electric field within the cylinder and outside of it. Describe each step as you go along. Consider the total charge Q on a line of length h with the use of Gauss’s law compute the...
Consider a uniformly charged cylinder with dimensions of radius r and height h contains a charge...
Consider a uniformly charged cylinder with dimensions of radius r and height h contains a charge in it’s volume. What is the magnitude and direction of the electric field at any point outside the cylinder . Describe each step as you go along .Find the electric field within the cylinder and outside of it. Describe each step as you go along. Consider the total charge Q on a line of length h with the use of Gauss’s law compute the...
a) A full conical water tank has height 3 m and diameter across the top 2...
a) A full conical water tank has height 3 m and diameter across the top 2 m. It is leaking water at a rate of 10,000 cm^3 per minute. How fast is the height of the water decreasing when the volume of water is 3,000,000 cm^3 ? b) Two planes are approaching the same air traffic control tower at equal and constant altitude. Plane A is heading due north at 200 mph, while Plane B is heading due west at...
The surface area of a right-circular cone of radius r and height h is S=πrr2+h2−−−−−−√, and...
The surface area of a right-circular cone of radius r and height h is S=πrr2+h2−−−−−−√, and its volume is V=1/3πr2h. (a) Determine h and r for the cone with given surface area S=4 and maximal volume V. h=  , r= (b) What is the ratio h/r for a cone with given volume V=4 and minimal surface area S? hr= (c) Does a cone with given volume V and maximal surface area exist? A. yes B. no
Differential equations-Cengel 2.98 A spherical tank of radius R is initially filled with water. Now a...
Differential equations-Cengel 2.98 A spherical tank of radius R is initially filled with water. Now a hole of radius r is opened at the bottom of the tank and the water is let out. According to Torricelli's law, water comes out of the opening at a velocity v = (2gy) ^ 1/2, where y is the height of the water over the hole at a given moment, and g is the acceleration of gravity. Obtain a relation for the depth...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT