What inlet flow rate would we just start to overflow

Assignment Help Python Programming
Reference no: EM132830464

Question 1. Short answers (you should submit your answers in a text file in the same folder as your python files.)

a. Concerning numpy:
i. How can I create a numpyarray that is a 6×6 identity matrix?
ii. What does numpy.linspace(10, 20, 30) do?
iii. Write a single line of code to fill a 10×10 numpy array with normally distributed random numbers from N(0,1)

b. Concerning fsolve:
i. Write the line of Python code to import fsolve.
ii. In the Python code def Find_FlowRates(Q, *args): what does *argsmean?
iii. Write a line of Python code to use fsolvewith the callback function defined in ii. and the arguments density, roughness, viscosity, roughness, seg_names, seg_lengths, seg_diamspassed as arguments.
iv. What should be returned from the function in ii.?
v. What should be the result of fsolve from iii.?

c. Concerning odeint:Given the python code x=odeint(ode_system, ic, t, myargs)
i. What arguments shouldode_systemhave?
ii. What is returned from the function ode_system?

Question 2. You have analyzed a pipe network with sprinklers in your homework 6 -part1a. Modify your program,appropriately, to analyze the pipe network below and output a nicely formatted report for the: i) flow rate and direction in each pipe, ii) the head loss in each pipe (in in of water), and iii) the pressure at each node in psi with the knowledge that the node h pressure is 80 psi.

Notes: The 12" and 16" pipes are cast iron (roughness = 0.00085 ft) while the 18" and 24" pipes are concrete (roughness = 0.003 ft). Flow is fully developed and turbulent and minor losses may be ignored. cfs stands for cubic feet per second. Room temperature water is the fluid (μ=20.50 lb⋅s/ft2, γ=62.3 lb/ft3). Name your file EX2_2.py.

193_figure.jpg

Question 3. Usepyplot to graph your Rankine cycle from homework 6 part 2 on a T-S diagram. The graphs should look like the following graphs (including title, axes labels, and summary notation):

1943_figure1.jpg

Notes: i) You should modify your rankine class to include a value for isentropic turbine efficiency (ηturbine¬) and include ηturbine in your calculation for cycle efficiency. ii) You should include the plotting function as a method of the rankine class. And, iii) You should modify your test_rankine.pyand call it EX2_3.pywith the following main function:

def main():
'''
A test program for rankine power cycles.
R1 is a rankine cycle object that is instantiated for turbine inlet of saturated vapor.
R2 is a rankine cycle object that is instantiated for turbine inlet of superheated vapor.
:return: none
'''
R1=rankine(p_high=8000, p_low=8, name='Rankine Cycle - Saturated at Turbine Inlet')
R1.calc_efficiency()
R1.plot_cycle_TS()

R2=rankine(p_high=8000, p_low=8, t_high=500, name='Rankine Cycle - Superheated at Turbine Inlet')
R2.calc_efficiency()
R2.plot_cycle_TS()

Question 4. Imagine you are trying to fill a leaky bucket with water.
i) If the inlet flowrate is 20 gpm, will the bucket runneth over or come to some steady level? Prove your answer by plotting the water level as a function of time.
ii) At what inlet flow rate would we just start to overflow the bucket?

Important factors:
a. Water flows out of the hole driven by pressure head according to:
b. The hole diameter is 0.25"
c. The bucket is 1.3 ft in diameter and 2.3 ft tall.
d. Water density is 1000kg/m3

Reference no: EM132830464

Questions Cloud

Differences between job analysis and job evaluation : Discuss the differences between job analysis and job evaluation. How do these practices help establish internally consistent job structures?
How can expand in the surrounding areas in nc : How can we expand in the surrounding areas in NC so that the referral base and clientele grow proportionately to grow the telerehabilitation business?
What is the present value of perpetual stream of cash flows : What is the present value of a perpetual stream of cash flows that pays ?$1,500 at the end of year one and the annual cash flows grow at a rate of 2?% per year?
Define authoritarian leadership : Define authoritarian leadership. Identify three characteristics or traits associated with this style.
What inlet flow rate would we just start to overflow : What inlet flow rate would we just start to overflow the bucket - Write a line of Python code to use fsolvewith the callback function defined
What are some areas of growth a company would encounter : What are some areas of growth and or improvement a company would encounter that would require HR to be engaged in SWP? The response must be typed.
Calculate retained earnings as at December : Calculate retained earnings as at December 31, 2020, if Pina Colada prepares financial statements in accordance with ASPE
What are the effects of macroeconomics : What are the effects of macroeconomics to the investment environment?
Explain the five types of linkbait : Explain the five types of linkbait and why linkbaiting is important. Is there a difference between social news sites and social bookmarking sites? Explain.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd