Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab Coding Problem Do not try this if you are in need. lol Given the parameters set in the template below, create a script that

Matlab Coding Problem image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedDo not try this if you are in need. lol

Given the parameters set in the template below, create a script that uses Euler's method to chart the height of water in the tank (y in the diagram below) of Pliney's fountain. Use a time-step of 0.01 seconds and investigate from t=0 to t=100 seconds. Assume the tank is initially empty. Plot the resulting relationship. Rt Qin dy y_high 2) * f * lin (C/2gy TER? dt y_low - y = 0 y=0; f =0 F Conditional programming Calculate new y value yy_h ysy_! T F T Iterative Programming Euler's Method dy_lin - (C/2gy * tera) * f dt TR; f=1 f=f f=0 Introduce a new variable f which is 1 when the fountain is on, and when the fountain is off Script @ 1 %% Parameters and initial conditions 2 Q_in=50*10^-6; % Flow in m^3/s 3 Rt=0.05; % Tank radius in m 4 y_high=0.1; % high water mark in m 5 r=0.007; %outlet radius in m 6 C=0.6; % dimensionless constant 7 y_low=0.025; % low water mark in m 8 g=9.81; % gravitational constant in m/s^2 9 y=0; % initial water level in m 10

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

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

8. Explain competency models and the process used to develop them.

Answered: 1 week ago