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

A flywheel is retained on a shaft by five bolts which are

A flywheel is retained on a shaft by five bolts, which are each tightened to a specified torque of 50 ± 5 Nm. A sample of 20 assemblies was checked for bolt torque. The results from the 100 bolts had a mean of 47.2Nm and ...

Twenty-five input signals each band-limited to 3 khz are

Twenty-five input signals, each band-limited to 3 kHz, are each sampled at an 8 kHz rate and then time-multiplexed. Calculate the minimum bandwidth required to transmit this multiplexed signal in the presence of noise if ...

Power carried in lowest mode a rectangular waveguide is

Power carried in lowest mode. A rectangular waveguide is built such that b = 0.75a, with a = 10 mm. (a) Find the lowest cutoff frequency and mode. (b) Calculate the time averaged power the wave can propagate at a frequen ...

Power relations in integrated strip lines in a strip line

Power relations in integrated strip lines. In a strip line, the strips are separated a distance 0.02 mm and the strips are 1 mm wide. The material between the strips is air and because the width is much larger than the s ...

Multiaxial statesthe computing project multiaxial states

Multiaxial States The computing project Multiaxial States concerns the analysis of strain and stress at a point in a solid body. The goal is to write a MATLAB program that will allow the computation of the strain associa ...

It is known that some of the factors that should be

It is known that some of the factors that should be considered in selecting an LVDT for a particular application are linearity, sensitivity, response time, size and weight of the core, size of the housing, primary excita ...

Briefly discuss the operation of a Briefly discuss the operation of a

Briefly discuss the operation of a microprocessor-controlled stepper motor. How would it differ from the standard setup in which a "preset indexer" is employed? Compare and contrast table lookup, programmed stepping, and ...

Line properties a lossless transmission line has

Line properties. A lossless transmission line has characteristic impedance Z0 = 50 Ω and its input impedance is 50 - j25 Ω. The line operates at a wavelength of 0.45 m and is 3.85 m long. Calculate: (a) The load impedanc ...

You are a supervisor for a complex design project and are

You are a supervisor for a complex design project, and are aware of the NCEES code rule according to which engineers may coordinate an entire project provided that each design component is signed or sealed by the enginee ...

Maintenance expenditures for a structure with a twenty-year

Maintenance expenditures for a structure with a twenty-year life will come as periodic outlays of $1,000 at the end of the fifth year, $2,000 at the end of the tenth year, and $3,500 at the end of the fifteenth year. Wit ...

  • 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