Question

In: Mechanical Engineering

The following equation describes a certain dilution process, where y(t) is the concentration of salt in a tank of freshwater to which salt brine is being added.

The following equation describes a certain dilution process, where y(t) is the concentration of salt in a tank of freshwater to which salt brine is being added.

dy = 4 !! dt 10 + 2t

 

Suppose that y(0) = 0. Plot y(t) for 0 ≤ t ≤ 10.

Solutions

Expert Solution

Let y(t) be the concentration of salt in a tank.

 

The dilution process is governed by the equation

dt/dt + 2/(10 + 2t)y = 4 and y(0) = 0

 

Solve this equation using ‘ode45’ command and function file called ‘conc’, which contains the first order derivative of concentration expression.

 

Plot the variation of concentration of salt with time.

 

Mat-lab code for Required problem is provided below.

Save this program as ‘problem7_29.m’.

% Concentration of salt in a tank of fresh water

[t,y] = ode45(@conc, [0,10],0);

plot(t,y);

xlabel(\'Time(Sec)\');

ylabel(\'Concentration\');

title(\'Salt brine concentration after adding for 10s\');

Save the function file as ‘conc.m’.

function ydot = conc(t,y)

ydot = 4 - (2/(10+2*t))*y;

The output of the code ‘Required problem’ in the figure window is shown below.

After 10 seconds, the concentration of salt brine reaches 25 concentration value.


Let y(t) be the concentration of salt in a tank.

 

The dilution process is governed by the equation

dt/dt + 2/(10 + 2t)y = 4 and y(0) =

Related Solutions

Change in concentration of salt in a reactor can be modeled by the following equation y’...
Change in concentration of salt in a reactor can be modeled by the following equation y’ = ty+y1/2 Initial concentration of salt at time (t= 0 hours) is 1g/l, y(0)= 1, find the concentration of salt after 0.2 hour y(0.2)= ? by using Euler, Heun and RK4 methods. Use h= 0.1
Which of the following describes a ‘repo’? a- Where a bank agrees to buy certain assets...
Which of the following describes a ‘repo’? a- Where a bank agrees to buy certain assets from an institution for cash in return for being able to borrow from that institution in the future b- Where a bank sells some assets (e.g. bonds) and agrees to buy them back at a particular price after a set period of time c- Where a bank sells some assets (e.g. bonds) and agrees to buy them back at a particular price after a...
Consider the following differential equation: (t^2)y'-y=(y^2), where y'=dy/dt. (a) find y(t) if y(1)=1/2 (b)find limt->infinityy(t)
Consider the following differential equation: (t^2)y'-y=(y^2), where y'=dy/dt. (a) find y(t) if y(1)=1/2 (b)find limt->infinityy(t)
Which of the following statements about the general exponential equation y = 600 (1.05)t is true?...
Which of the following statements about the general exponential equation y = 600 (1.05)t is true? (Assume t is time in years, with t = 0 in 1950.) Check all that apply. A)After 1950, each year the y-value is 1.05 times greater than the previous year. B)The initial amount of 600 is increasing at a rate of 1.05% each year after 1950. C)When t = 1, y is 105% of its original value, 600. D)The initial amount of 600 is...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT