Work done on real thermodynamic data

Click For Summary

Discussion Overview

The discussion revolves around calculating the work done on a fluid using experimental p-v data. Participants explore methods for numerical integration and the use of software tools like MATLAB and Excel, while also considering the implications of fitting analytic expressions to the data.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about using MATLAB to find the work done from experimental p-v data and questions if the ratio v2/v1 represents the compression ratio.
  • Another participant suggests that work is defined as the cyclic integral of pressure with respect to volume and mentions the need for numerical integration and possible interpolation of the data.
  • There are mentions of analytic expressions fitted to the ideal cycle, with specific equations provided for the power stroke and compression process.
  • Some participants express concern that assuming a functional form may lead to neglecting the experimental data, while others argue that a good fit to the data justifies such assumptions.
  • One participant emphasizes the need for numerical integration specifically from the real data, asking for methods to implement this in Excel or MATLAB.
  • Another participant recommends looking up "quadrature" and suggests methods like the Trapezoidal Rule or Simpson's Rule for numerical integration.
  • There is a question about the nature of the problem, whether it is homework or from an industrial source, which could affect how the rules are interpreted.
  • A participant confirms it is a course lab problem and expresses the need to consult a numerical methods book for further understanding.
  • There is a request for the actual p-v data to facilitate the discussion.

Areas of Agreement / Disagreement

Participants express differing views on the use of analytic expressions versus sticking to the experimental data. While some advocate for fitting functions to the data, others argue for a strict adherence to the experimental results. The discussion remains unresolved regarding the best approach to take.

Contextual Notes

Participants note the potential limitations of using fitted functions, including the risk of abandoning the experimental data. There are also unresolved questions about the accuracy of the provided analytic expressions and their applicability to the experimental data.

aldo sebastian
Messages
12
Reaction score
0

Homework Statement


I have the data for a p-v diagram from experiment of a fluid (the fluid is unknown). The data is attached below as the crosses. It also has the approximated ideal cycle for that data. Does anyone know how to find the work done for this real experimental data? Maybe a MATLAB command or some other software? Also, would v2/v1 be the compression ratio for this cycle?

The Attempt at a Solution


I tried using the trapz function in MATLAB however unsure whether it is correct or not.
 

Attachments

  • graph 1.jpg
    graph 1.jpg
    18.4 KB · Views: 415
Physics news on Phys.org
Do you know how work is defined as the cyclic integral of P with respect to V? You may very well need to do some numerical integration, and you may (or may not) want to use some interpolation/extrapolation to augment the data to what you think is the true curve in regions that are poorly defined.
 
aldo sebastian said:

Homework Statement


I have the data for a p-v diagram from experiment of a fluid (the fluid is unknown). The data is attached below as the crosses. It also has the approximated ideal cycle for that data. Does anyone know how to find the work done for this real experimental data? Maybe a MATLAB command or some other software? Also, would v2/v1 be the compression ratio for this cycle?

The Attempt at a Solution


I tried using the trapz function in MATLAB however unsure whether it is correct or not.
Are there analytic expressions fitted to the ideal cycle?
 
Chestermiller said:
Are there analytic expressions fitted to the ideal cycle?

Yes there are. The power stroke is pv^-1.5=544.7 and the compression process is pv^-1=199.7
 
aldo sebastian said:
Yes there are. The power stroke is pv^-1.5=544.7 and the compression process is pv^-1=199.7
Then you can integrate pdv for each of them from the lowest volume to the highest volume. Those exponents on v are not correct.
 
Once you assume a functional form, you have abandoned the experimental data for the most part. If we want to work with the experimental data, we should do just that.
 
Dr.D said:
Once you assume a functional form, you have abandoned the experimental data for the most part. If we want to work with the experimental data, we should do just that.
I respectfully disagree if the analytic functional form is an excellent fit to the experimental data (as it appears to be in the figure).
 
It seems that I need to do numerical integration to find the work done for the real data (because I'm specifically told to find the work done from the real data not from the ideal cycle). Does anyone know how to do that in excel say? or does it have to be in MATLAB or some other advanced software?
 
Aldo, get a calc book or a numerical methods book, and look up "quadrature." You will likely want to look at the Trapezoidal Rule, or possibly Simpson's Rule (the later only if the data are evenly spaced). You can implement these methods in Fortran, BASIC, spead sheet, etc., just about anything that will enable the computer to do a lot of arithmetic for you.
 
  • #10
aldo sebastian said:
It seems that I need to do numerical integration to find the work done for the real data (because I'm specifically told to find the work done from the real data not from the ideal cycle). Does anyone know how to do that in excel say? or does it have to be in MATLAB or some other advanced software?
Why don't you just use the trapezoidal rule, and compare with the integration of the analytic fits.
 
  • #11
Is this homework or a course lab problem? Or is this from an industrial source? How to interpret the rules depends somewhat on the source of the problem.
 
  • #12
It's a course lab problem; yea I think I need to go and read a numerical methods book as you said. Thanks for your help
 
  • #13
aldo sebastian said:
It's a course lab problem; yea I think I need to go and read a numerical methods book as you said. Thanks for your help
Can you please provide the actual p-v data?
 

Similar threads

Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 8 ·
Replies
8
Views
890
  • · Replies 61 ·
3
Replies
61
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K