Ask Mechanical Engineering Expert

Problem specification:

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


prepare down a MATLAB code to solve for the pressure and temperature variation all through the expansion process and to compute the work and heat produced in the processes for variable values of n.


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

B) By using your hand calculations as a guide, prepare a simple MATLAB m-file to compute the properties at points all along the process (minimum of 20 points, however must be a variable that can be changed) by using one of the values of n (I recommend using n = 1.5).  Plot P-v and T-v diagrams for the process by using the MATLAB.

C) Compute the work performed for the process by integrating the curve of pressure versus specific volume. Use the ‘trapezoidal area method’ for computing the integral.

D) Suppose that the specific internal energy for the air in this problem can be defined as the function of temperature as shown below:

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

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

E) Using conservation of energy and the work computed, find out the amount of heat transferred for each process.

F) prepare a loop in the code to analyze the various values of n, or run the code for the distinct values of n asked for below.


A) Hand calculations which outline planned MATLAB code.

B) MATLAB code (m-file) which find outs the state variables P, v, T, and u for the defined process, and which find outs the work and heat for each process.

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

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

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

F) A brief paragraph detailing what you learned and how useful you think such skills will be for your future as an engineer.

Mechanical Engineering, Engineering

  • Category:- Mechanical Engineering
  • Reference No.:- M9610

Have any Question? 

Related Questions in Mechanical Engineering

Problem on shaft -assuming no frictional losses a torque of

Problem on Shaft - Assuming no frictional losses, a torque of T = 750lb·in is applied through the shaft of gear F in order to drive the roller chain at point B at a constant speed. The chain sprocket has a pitch diameter ...

Assignment - machine learning for signal processingproblem

Assignment - Machine Learning for Signal Processing Problem 1: Instantaneous Source Separation 1. As you might have noticed from my long hair, I've got a rock spirit. However, for this homework I dabbled to compose a pie ...

Alocate ten minutes for the presentationuse audio visual

Allocate ten minutes for the presentation Use audio / visual / technological supports / aids where appropriate Use a minimum of 3 properly referenced articles. THEMES PRESENTATION TOPIC MEMORY Discuss the three learning ...

Problem -a long pipe od 1413 mm id 1318 mm kp 20 wmk

Problem - A long pipe (OD = 141.3 mm, ID =131.8 mm, k p = 20 W/m.K) supplies hot pressurized liquid water at 400 K to a heater in a factory. The pipe has an insulation thickness of 100 mm. A new efficient heater replaces ...

Expansion processes of a perfect gasassignment1 attend the

Expansion Processes of a Perfect Gas Assignment: 1. Attend the laboratory class and complete the lab tests according to the supervisor's requirement. Students will not allowed to submit their report if they do not come t ...

Fluid mechanics assignment - viscous flow in pipesq1 as

Fluid Mechanics Assignment - Viscous Flow in Pipes Q1. As shown in the figure below, water "bubbles up" 3 in. above the exit of the vertical pipe attached to three horizontal pipe segments. The total length of the 0.75-i ...

Life cycle assessmentfor your chosen service eg white board

LIFE CYCLE ASSESSMENT For your chosen service (e.g. white board markers), identify two alternatives of getting the service (e.g. brand A, brand B). Choose the most environmentally friendly option by conducting life cycle ...

5star questions amp answers1a define heat treatment bname

5 STAR QUESTIONS & Answers 1. A) Define Heat treatment B) Name different types of heat treatment processes C) Write any 4 purposes of Heat treatment 2. Explain various Heat treatment processes 3. A) Compare Thermo plasti ...

1 explain the term critical equipment and provide two clear

1. Explain the term "critical equipment" and provide two clear examples of machinery which falls into this category on board a twin screw motor vessel. 2. Explain the process of Charpy lmpact Testing including sample mar ...

Assignment -q1 explain the difference between the

Assignment - Q1. Explain the difference between the metacentric height of a ship during 'Partially Afloat condition and 'Free Floating' condition; aid a sketch to support your answer. Q2. With the aid of sketches, explai ...

  • 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