Frictional losses in pipes

FIND A SOLUTION AT Academic Writers Bay

Frictional losses in pipes: In our pipe network problems, we have used the Reynolds number, the Colebrook equation and the Darcy-Weisbach equation to calculate frictional losses in pipes with fully turbulent flow. Create a command line interface (CLI) program to calculate frictional losses in a pipe given the pipe diameter (d), pipe length (l), pipe roughness (e), fluid dynamic viscosity (μ), fluid density (ρ), and volumetric flow rate (Q). The flow may be anywhere from laminar to fully turbulent. The program should meet the following requirements: i) It should first prompt the user to select a units system (English or Metric). ii) It should prompt the user to specify fluid viscosity with water as default. iii) It should prompt the user to specify fluid density with water as default. iv) It should prompt the user to specify pipe diameter, length and volumetric flow rate. v) It should return Reynolds number, flow regime (laminar, transition, or turbulent), and the head loss. All prompts and return values should be clearly labeled with proper units. Notes: 1. User input from the command line can be achieved with input()method. 2. The f for laminar flow can be found by: f=64/Re (Re<Re4000)
Write a program to read and display information from a pump file. Your program will have the following features: i. It will have a graphical user-interface (GUI) for selecting the file and presenting the output. ii. The clicked signal of the Read File and Calculate button will open a dialog box for searching the directories of your hard drive to navigate to location of the data file. iii. Upon selecting the data file, the path to the data file is stored, the file is read, parsed and processed to produce the required output (as demonstrated in the screen capture below). iv. The curves fitted to the pump capacity and efficiency data are third order polynomials showing minimal sum of squared errors with the coefficients displayed in the line edit widgets. v. The plot should have labels on both y-axes, the x axis, and legends for each curve.
The Air Standard Otto Cycle: We have used steam tables to calculate properties of Rankine cycles where condensation and vaporization are inherent. In this problem, we want to use the ideal gas behavior of air as the working fluid in an air standard Otto cycle consisting of 4 thermodynamic processes: 1→2: an isentropic compression of the air as the piston moves from bottom dead center to top dead center. Recall from thermo: 2 1 2 1 2 1 0 ln T v T c v s dT R T v  = = +  ; 2 1 1 2 T v T  = u c dT  for ideal gas 2→3: a constant-volume heat transfer to the air from an external source while the piston is at top dead center. 3 2 2 3 2 3 T v T q u c dT =  =  for ideal gas at constant volume 3→4: an isentropic expansion (power stroke). 4 3 4 3 4 3 0 ln T v T c v s dT R T v  = = +  ; 4 3 3 4 T v T  = u c dT  4→1: a constant-volume heat rejection while the piston is at bottom dead center. 4 1 4 1 4 1 T v T q u c dT =  =  Always, for air as an ideal gas: PV nRT = Write an object-oriented program with GUI in the Model-View-Controller pattern to model the air standard Otto cycle given inputs of: Cylinder Volume, Initial Pressure, Compression Ratio, and Maximum Temperature. Your program should allow the user to specify English or Metric units and display results and inputs with appropriate units. You may, however, choose to always work in Metric units in the model and only modify the view to display English or Metric units. Notes: Your program should output T1, T2, T3, T4 and cycle efficiency in addition to plots of p vs. v and T vs. s. In the air standard Otto cycle, air behaves as an ideal gas with variable specific cp(T)=cv(T)+R.

READ ALSO...   Business Financing and the Capital Structure
Order from Academic Writers Bay
Best Custom Essay Writing Services