Ask Question, Ask an Expert


Ask Mechanical Engineering Expert

Problem specification

5 kg of air is contained in the piston-cylinder device, initially 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.


prepare the MATLAB code to solve for pressure and temperature variation throughout the expansion process and to find out work and heat produced in processes for variable values of n.


1) Begin 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. prepare out by hand the equations and steps you would take to determine 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, prepare the simple MATLAB m-file to find out 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) find out 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:


Add code to your MATLAB program to find out 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 find outd, determine amount of heat transferred for each process.
6) prepare 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.


1) MATLAB code (m-file) that find outs the state variables P, v, T, and u for the defined process, and that find outs 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.

Mechanical Engineering, Engineering

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

Have any Question? 

Related Questions in Mechanical Engineering

Resonant frequencies in shorted waveguide the wr 284

Resonant frequencies in shorted waveguide. The WR 284 waveguide is made into a cavity 0.5 m long by shorting the waveguide at two locations. Calculate the first 10 resonant frequencies and classify the modes. The wavegui ...

An air-filled waveguide operates below cutoff the operating

An air-filled waveguide operates below cutoff. The operating frequency is 1 GHz and the cutoff frequency is 1.5 GHz. The power P is supplied to the waveguide at a point z = 0. How far does the power propagates before it ...

Linear array of monopoles an array is made of n monopoles

Linear array of monopoles. An array is made of n monopoles, all perpendicular to the ground and separated one-half wavelength from each other. The monopoles are 0.25A long and are all in phase. Calculate: (a) The array f ...

Two alternative designs are under consideration for a

Two alternative designs are under consideration for a tapered fastening pin. The fastening pins are sold for $0.70 each. Either design will serve equally well and will involve the same material and manufacturing cost exc ...

Two kg of refrigerant 134a undergoes a polytropic process

Two kg of refrigerant 134A undergoes a polytropic process in a piston-cylinder assembly from an initial state of saturated vapor at 2 bar to a final state of 12 bar, 80 C. Determine the work for the process. Also, determ ...

Juanita wades new car has an msrp of 2890211 including

Juanita Wade's new car has an MSRP of $28,902.11 including title and processing fees. The Premier Package which includes surround sound and DVD player costs three times the amount of the In-Style Package which includes l ...

Application tetm waves in strip lines a parallel plate

Application: TE/TM waves in strip lines. A parallel plate waveguide is made of two wide strips, separated by a fiberglass sheet d = 0.5 mm thick which has a relative permittivity of 3.5. Neglect any effects due to the ed ...

A creek runs through a certain part of a campus where the

A creek runs through a certain part of a campus where the water is falling about 2.5 mover a distance of just 8 m, and the creek before and after the fall is about 3 m wide. The sustainability club has asked you about th ...

Application transmission line resonator a transmission line

Application: Transmission line resonator. A transmission line resonator is made by connecting a 10-pF capacitor across the input of a 75-Ω line and shorting the other end (Figure 14.50). What must be the length of the li ...

Application parallel plate resonator a parallel plate

Application: Parallel plate resonator. A parallel plate waveguide is shorted at two locations as shown in Figure 17.32. The distance between shorts is d. Calculate the resonant frequencies of the shorted guide, assuming ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate