Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SOLVE IT WITH MATLAB ODE PLZ A cylindrical tank with a height of 0 . 5 m and a diameter of 0 . 5 m

SOLVE IT WITH MATLAB ODE PLZ A cylindrical tank with a height of 0.5m and a diameter of 0.5m is initially filled halfway with water. A feed is sent at a speed of 10ms through a pipe with diameter of 0.03
m. The flow rate at the outlet of the tank is directly proportional to the liquid level in the tank and given by F1(m3s)=0.01h. The feed is a brine (salt-water solution) with a
salt concentration of 1molL, and initially (@t=0) the tank contains pure water.
Under these conditions, write a MATLAB code that returns:
whether the liquid level in the tank decreases or increases,
the time required for the tank to be filled to 90% of its capacity,
value of CA when the volume of the tank reaches 90% of its capacity,
value of CA(t=20s).
Note: Assume that the solution is ideal (density of pure water = density of brine).
Please note:
Constants have already been defined in the code section.
Use a time span from 0 to 20, consisting of 1000 points.
You can choose to use either an anonymous function or a user-defined function according to your preference.
For a user-defined MATLAB function, please write your function at the end of the main code.
The height values over time should be assigned to a variable named 'h', and the concentration values should be assigned to a variable named 'C_A'.A cylindrical tank with a height of 0.5m and a diameter of 0.5m is initially filled halfway with water. A feed is sent at a speed of 10m//s through a pipe with diameter of 0.03 m. The flow rate at the outlet of the tank is directly proportional to the liquid level in the tank and given by F_(1)(m^(3)//s)=0.01h. The feed is a brine (salt-water solution) with a salt concentration of 1 mol/L, and initially (@t =0) the tank contains pure water. Under these conditions, write a MATLAB code that returns: whether the liquid level in the tank decreases or increases, the time required for the tank to be filled to 90% of its capacity, value of C_(A) when
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

Surfactant Enhanced Subsurface Remediation Emerging Technologies

Authors: David A. Sabatini, Robert C. Knox, Jeffrey H. Harwell

1st Edition

0841232253, 978-0841232259

More Books

Students also viewed these Chemical Engineering questions

Question

5) Determine if the variables are independent.

Answered: 1 week ago