Create an expanded volume-pressure table with volume


Problem 1 - The Wheatstone bridge circuit shown to the left below is governed by the equations provided on the right.

159_Figure.png

va, vb, vc, and vd represent voltages at four different nodes of the bridge circuit, R1, R2, R3, R4, and R5, are resistors, and Vin is the source voltage. Assuming that Vin = 12 Volts, R1 = R2 = 50 ohms, R3 = R4 = 100 ohms, and, R5 = 1000 ohms, create an m-file which generates the system of four equations in four unknowns (va, vb, vc  and vd) to be solved in matrix form and solves them using MATLAB.

Problem 2 - Consider a gas in a piston-cylinder device in which the temperature is held constant. As the volume of the device is changed, the pressure is measured. The experiment is conducted for two different temperatures and the volume and pressure values are reported in the following table.

Volume, m3

Pressure, kPa, at 300K

Pressure, kPa, at 500K

1

2494

4157

2

1247

2078

3

831

1386

4

623

1039

5

499

831

6

4160

693

(a) Create an expanded volume-pressure table with volume measurement starting from 1 m3 with an increment of 0.4 m3 up to 6 m3 and approximate the pressure for each volume using linear and cubic spline interpolation. Show your result by plotting the interpolated values (for both linear and cubic spline) in a single graph.

(Hint: Make a pressure array that contains both sets of data; your volume array will need to be 6x1, and your pressure array will need to be 6x2.)

(b) Create a new column of pressure values at T=400K, using linear interpolation.

(Hint: Use the function interp2 which will allow you two dimensional interpolation)

Problem 3 - Consider the volume-pressure table data at T=300K in Problem 2 (you do not need to consider the pressure column at T=500K). Fit the data using 2nd  and 4th  order polynomial. Now with a volume measurement starting from 1 m3 with an increment of 0.2 m3 up to 6 m3, calculate the outputs on these volume measurements using your 2nd and 4th order polynomials. Show your result by plotting the actual data (as circles with no line) and curve fitted data (as solid line) in a single graph. Append a comment at the end of your m-file indicating which model is better out of the two.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Create an expanded volume-pressure table with volume
Reference No:- TGS01480012

Expected delivery within 24 Hours