Ask Question, Ask an Expert


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

1 equipmentbullthe shell and tube heat exchanger see figure

1. Equipment • The shell and tube heat exchanger (see figure 2) consists of a four pass tube fitted within a shell casing with cold water circulating through the tube and hot water flow trough the shell. • Two flow meter ...

What processes might be grouped into the nanotechnology

What processes might be grouped into the nanotechnology field? For example, what level of precision is needed in a CD player or an artificial joint?

Two solid cylindrical rods ab and bc are welded together

Two solid cylindrical rods AB and BC are welded together atB and loaded as shown. Knowing that d 1 = 30 mm and d 2 = 50 mm, find the average normal stress at the midsection of (a) rod AB, (b) rod BC.

Compression of constant sequence we are given the constant

Compression of constant sequence. We are given the constant sequence x n = 11111 ... . (a) Give the LZ78 parsing for this sequence. (b) Argue that the number of encoding bits per symbol for this sequence goes to zero as ...

Water in a piston-cylinder assembly initially at a

Water in a piston-cylinder assembly, initially at a temperature of 99.63°C and a quality of 65%, is heated at constant pressure to a temperature of 200°C. If the work during the process is 1300 kJ, determine (a) the mass ...

The new manufacturing manager has recommended to you that

The new manufacturing manager has recommended to you that chipless tapping be adopted for tapping holes in the deep, dead-end holes on the 2-cylinder engine blocks that the company makes. Chipless tapping can run at twic ...

The torque of a stepping motor can be increased by

The torque of a stepping motor can be increased by increasing its diameter, for a given coil density (the number of turns per unit area) of the stator poles, for a given current rating. Alternatively, the motor torque ca ...

A why are analogies important in modeling of dynamic

(a) Why are analogies important in modeling of dynamic systems? (b) In the force-current analogy, what mechanical element corresponds to an electrical capacitor? (c) In the velocity-pressure analogy, is the fluid inertia ...

Describe in your own words the growth stages of a team give

Describe in your own words the growth stages of a team. Give at least two examples from your own team development experiences (any will do). Have you been a part of a team that developed to a certain point and stalled? A ...

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 ...

  • 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