A spherical water tank of radius, R = 4 meters is emptied through a small circular hole of radius r = 0.02 meters at the bottom. The top of the tank is open to atmosphere. The instantaneous water level, h, (measured from the bottom of the tank, at the drain), in the tank can be determined from the solution of the following ODE: dh dt = r² √2gh 2hR-h² where g = 9.81 m/s², t is in seconds and his in meters. a) If the initial water level (at t = 0 seconds) is h = 4m, find the water level of the tank after 3 hours, using Euler method with a step size of 1 hour (note: be consistent with the units). Give your answer correct to 4 decimal places. b) Based on your calculation in part (a), at least how many hours does it take to drain the water level below 2 meters? c) Use MATLAB's ode45 function to find the time it takes for the tank to drain completely (ie. h = 0). Give your answer in minutes, correct to the nearest 10 minutes (you need to use a step size of 10 minutes). Note: • you have to generate the full tspan vector (instead of just specifying the start and end values of the tspan), with a step size of 10 minutes and pass it to the ode45 function. • the height. h will become a complex value once it falls below 0 meters.
A spherical water tank of radius, R = 4 meters is emptied through a small circular hole of radius r = 0.02 meters at the bottom. The top of the tank is open to atmosphere. The instantaneous water level, h, (measured from the bottom of the tank, at the drain), in the tank can be determined from the solution of the following ODE: dh dt = r² √2gh 2hR-h² where g = 9.81 m/s², t is in seconds and his in meters. a) If the initial water level (at t = 0 seconds) is h = 4m, find the water level of the tank after 3 hours, using Euler method with a step size of 1 hour (note: be consistent with the units). Give your answer correct to 4 decimal places. b) Based on your calculation in part (a), at least how many hours does it take to drain the water level below 2 meters? c) Use MATLAB's ode45 function to find the time it takes for the tank to drain completely (ie. h = 0). Give your answer in minutes, correct to the nearest 10 minutes (you need to use a step size of 10 minutes). Note: • you have to generate the full tspan vector (instead of just specifying the start and end values of the tspan), with a step size of 10 minutes and pass it to the ode45 function. • the height. h will become a complex value once it falls below 0 meters.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Please use Matlab.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education