Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How would I go about solving this in MatLab? Part 11 Water flows into the top of an open barrel at a constant mass flow

image text in transcribed
image text in transcribedHow would I go about solving this in MatLab?
Part 11 Water flows into the top of an open barrel at a constant mass flow rate of i, lb/s. Water exits through a pipe near the base with a mass flow rate proportional to the height of the liquid inside the barrel and is denoted as". The area ofthe base isA.9, and the density ofthe water is = 62.4 b/ft. The barrel is initially empty. =401b/s 4-98 -12lbs The solution for is the instantancous liquid height (L) in the barrel can be written as (L is in ft) (13) Create a function file titled Team HW4AB2 P11pf with 10epset M (defined later in the problem) This would be your main function known aparentimoi Establish the necessary constants, such as area (A) and density (p) in the parent function (that will serve as inputs to the nested function). Additionally, define following variables within the * Mass flow rate ratio (mratio-m A variable defining the number of elements in time vector(n)60, Maximum time for the flow tmax-180 s Use the output from the mototection (described later) and do the following within the function . Compute the instantaneous mass of water () in kips, inside the barrel as a function of time using (14)

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

2. Give ungraded assignments to encourage exploration.

Answered: 1 week ago