Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

5 kg of air is limited in the piston-cylinder device, originally at pressure of 2MPa and a specific volume of 0.08m3/kg. The air then expands, as an ideal gas, through a polytropic process, with variable values of n, to a final specific volume of 0.30m3/kg.

Objective:

Write down the MATLAB code to solve for temperature and pressure variation throughout the expansion process and to evaluate work and heat produced in processes for variable values of n.

Procedure:

1) Started by defining the temperature at the initial state and then define the temperature and pressure at the final state. Sketch rough graph of what the process looks like on P-v coordinates. Write out by hand the equations and steps you would take to evaluate the actual P, T, and v at all points along the process. Identify unknowns, equations, constants and calculation orders.

2) Using your hand calculations as guide, write the simple MATLAB m-file to calculate properties at points along the process (minimum of 20 points, but must be a variable which can be changed) using one of the values of n (I recommend using n=1.5). Plot P-v and T-v diagrams for the process using MATLAB.

3) Calculate work performed for process by integrating the curve of pressure versus specific volume. Use the "trapezoidal area method" for calculating integral.

4) Assume that specific internal energy for the air in this problem can be defined as the function of temperature as follows:

u(T)=(1.0344∗10-4)∗T2+(6.4476∗10-1)∗T+(1.3727∗102)

Add code to your MATLAB program to calculate the specific internal energy for process using the information of the pressure and specific volume at each state

5) Using conservation of energy and the work calculated, determine amount of heat transferred for each process.

6) Write the loop in the code to analyze the different values of n, or run the code for the different values of n asked for below.

Deliverables

1) MATLAB code (m-file) that calculates the state variables P, v, T, and u for the defined process, and that calculates the work and heat for each process.

2) On the same graph, plot of P-v for this process with 4 different values of n: 1, 1.4, 1.5, 1.8.

3) Plot of P-v and T-v for n=1.5 on a single graph. Use the function plotyy.

5) Table summarizing results of work and heat as a function of n.

6) A brief paragraph detailing what you learned in this exercise and how useful you think these skills will be for your future as an engineer.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M9720595
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in MATLAB

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Suppose that you have used some concept learning algorithm

Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying pop ...

Recitation problems -1 determine the highest real root of

Recitation Problems - 1. Determine the highest real root of f(x) = 2x 3 - 11.7x 2 + 17.7x - 5 using the Newton-Raphson method with at least four iterations. Start with an initial guess of x 0 = 3. 2. Determine the real r ...

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As