Menu

Problem 1 19 10 Pts Problem 3 10 Pts Figure Given Storage Tank Contains Liquid Depth Y Y 0 Q43871490

using Mathlab

Problem 1 (1.9) - 10 pts: Problem 3 - 10 pts: The figure given below is a storage tank that contains a liquid at depth y wher

Problem 1 (1.9) – 10 pts: Problem 3 – 10 pts: The figure given below is a storage tank that contains a liquid at depth y where y = 0 when the tank is half full. Liquid is withdrawn at a constant flow rate Q to meet demands. The contents are resupplied at a sinusoidal rate 3Q sin (1). The equation “Change = increases – decreases” can be written for this system as Write your own MATLAB script to calculate the depth of y from Problem 1 above. This script will first ask the users to input the numerical value for area, constant flow rate, initial time, final time, time increment and initial depth. This script should include a for-loop and a function called “derix” that will calculate the derivative of the depth with respect to time (/dt). This function will take input of depth, constant flow rate, area, and time, and give output of the calculation of the derivative. d(Ay) 2= 3Q sin(t)-2 dt (Change in volume) = (inflow)-(outflow) Test your script on the following test cases. or, since the surface area A is constant Test Case #1 1250 450 1250 Test Case #4 1250 450 L 0 Input Area (m) | Constant flow rate (m/d) Initial time (d) Final time (d) Time increment (d) Initial depth (m) Final depth (m) Test Case #2 Test Case #3 1250 450 450 0 0 10 10 10.5 0 0 1.4819 1.4945 10 2 0 1.7060 10 0.25 0 1.51871 Output L Save your MATLAB script using file name lastname.. texagstankfew.m Deliverable: Use Euler’s method to solve for the depth y from t=0 to 10 d with a step size of 0.5 d. The parameter values are A = 1250 m2 and Q = 450 m3/d. Assume that the initial condition is y=0. (Round the final answers to five decimal places). I suggest you to perform the calculation in spreadsheet software (e.g. Microsoft excel or google spreadsheet). Fill your answers in the table below. Include proof of calculation in your submission (e.g.spreadsheet file). Label the proof of calculation file as lastname_probleml Depth, yo 1. Compressed zipped all files: a. This assignment problem file including your name and collaborator’ names (if exists) and filled table for problem 1 (rename the file as lastname_Assignment1.docx), b. Proof of calculations for problem 1 (lastname probleml) (e.g. spreadsheet file), c. PNG file of the plot for Problem 2 (lastname_problem2.png), d Matlab script file for Problem 2 (lastname beamde fuestion.m): e. Matlab script file for Problem 3(lastname storagstankfew.m). f Matlab function for Problem 3 (deriv.m). 2. Submit the compressed/zipped files to the assignment page on Canvas before due date. 2012ala 3. Your assignment will be graded based on the completeness of files submission, accordance of submission files to instruction on the problems (e.g. script as a script and function as a function), properly functioning matlab scripts and functions, correctness of calculations (e.g. numerical value). 4.5 10 Show transcribed image text Problem 1 (1.9) – 10 pts: Problem 3 – 10 pts: The figure given below is a storage tank that contains a liquid at depth y where y = 0 when the tank is half full. Liquid is withdrawn at a constant flow rate Q to meet demands. The contents are resupplied at a sinusoidal rate 3Q sin (1). The equation “Change = increases – decreases” can be written for this system as Write your own MATLAB script to calculate the depth of y from Problem 1 above. This script will first ask the users to input the numerical value for area, constant flow rate, initial time, final time, time increment and initial depth. This script should include a for-loop and a function called “derix” that will calculate the derivative of the depth with respect to time (/dt). This function will take input of depth, constant flow rate, area, and time, and give output of the calculation of the derivative. d(Ay) 2= 3Q sin(t)-2 dt (Change in volume) = (inflow)-(outflow) Test your script on the following test cases. or, since the surface area A is constant Test Case #1 1250 450 1250 Test Case #4 1250 450 L 0 Input Area (m) | Constant flow rate (m/d) Initial time (d) Final time (d) Time increment (d) Initial depth (m) Final depth (m) Test Case #2 Test Case #3 1250 450 450 0 0 10 10 10.5 0 0 1.4819 1.4945 10 2 0 1.7060 10 0.25 0 1.51871 Output L Save your MATLAB script using file name lastname.. texagstankfew.m Deliverable: Use Euler’s method to solve for the depth y from t=0 to 10 d with a step size of 0.5 d. The parameter values are A = 1250 m2 and Q = 450 m3/d. Assume that the initial condition is y=0. (Round the final answers to five decimal places). I suggest you to perform the calculation in spreadsheet software (e.g. Microsoft excel or google spreadsheet). Fill your answers in the table below. Include proof of calculation in your submission (e.g.spreadsheet file). Label the proof of calculation file as lastname_probleml Depth, yo 1. Compressed zipped all files: a. This assignment problem file including your name and collaborator’ names (if exists) and filled table for problem 1 (rename the file as lastname_Assignment1.docx), b. Proof of calculations for problem 1 (lastname probleml) (e.g. spreadsheet file), c. PNG file of the plot for Problem 2 (lastname_problem2.png), d Matlab script file for Problem 2 (lastname beamde fuestion.m): e. Matlab script file for Problem 3(lastname storagstankfew.m). f Matlab function for Problem 3 (deriv.m). 2. Submit the compressed/zipped files to the assignment page on Canvas before due date. 2012ala 3. Your assignment will be graded based on the completeness of files submission, accordance of submission files to instruction on the problems (e.g. script as a script and function as a function), properly functioning matlab scripts and functions, correctness of calculations (e.g. numerical value). 4.5 10

Expert Answer


Answer to Problem 1 (1.9) – 10 pts: Problem 3 – 10 pts: The figure given below is a storage tank that contains a liquid at depth y…

OR