Modelling Diesel Cycle in Excel.

Click For Summary

Discussion Overview

The discussion revolves around modeling the Diesel cycle using a Microsoft Excel® spreadsheet. Participants explore the necessary equations, inputs, and outputs required for accurately simulating the cycle, focusing on the ideal air-standard Diesel cycle. The conversation includes technical challenges related to calculations per unit mass and generating intermediate points on process curves.

Discussion Character

  • Homework-related
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant seeks guidance on how to structure the Excel model, particularly how to handle calculations per unit mass when the engine size is not specified.
  • Another participant emphasizes the need to compile all relevant equations and inputs before proceeding with the model.
  • A participant discusses the challenge of finding intermediate points on process curves, questioning the appropriateness of using the relation ##PV^{\gamma} = k## for this purpose.
  • Further elaboration is provided on splitting intervals into multiple values to calculate intermediate pressures, with a focus on maintaining clarity in the spreadsheet layout.

Areas of Agreement / Disagreement

Participants express differing views on the adequacy of the initial equation provided and the methods for calculating intermediate points. There is no consensus on the best approach to model the Diesel cycle in Excel, and various strategies are proposed without resolution.

Contextual Notes

Participants note limitations in the initial problem statement regarding the handling of engine size and the need for a comprehensive list of equations. The discussion also highlights the complexity of accurately modeling thermodynamic processes in Excel.

Who May Find This Useful

This discussion may be useful for students or practitioners interested in thermodynamics, specifically those looking to model internal combustion engines or similar systems using spreadsheet software.

SherlockOhms
Messages
309
Reaction score
0

Homework Statement


Construct a Microsoft Excel® spreadsheet that models an internal combustion engine based on the ideal air-standard Diesel cycle. Given the minimum temperature (##T_1##) and pressure (##P_1##) in the cycle, the engine size (##V_1##), the compression ratio (##r_v##), the cut-off ratio (##r_c##) and two properties of the working fluid (Either ##R##, ##C_P##, ##C_V## or ##\gamma##), the spreadsheet should calculate the temperature (##T##, pressure (##P##) and volume (##V##) at any point in the cycle, the work (##W##) and heat transfers (##Q##) for each process, the net work output (##W_{net}##), the Diesel cycle efficiency (##\eta_{Diesel}##) and the Carnot efficiency (##\eta_{Carnot}##) of the cycle. The spreadsheet should allow the user to vary the minimum temperature in the cycle, the compression and cut-off ratios, the inlet pressure, the engine size, and the properties of the working fluid. Note that if the engine size is not specified, all quantities should be worked out per unit mass.

Homework Equations


$$PV = mRT$$

The Attempt at a Solution


From the above equation it can be shown that ##Pv = RT##. Seeing as for an air standard cycle, the mass is constant throughout, when ##V_1## isn't known, the rest of the values will have to be calculated per unit mass.

My problem is with the underlined, bold statement in the problem. How can I make so that excel knows, when ##V_1## is not inputted, that the rest of the problems should be carried out per unit mass? I'm just looking for a general idea here.

My general layout for this spreadsheet will be:
Section 1) Input the above stated values.

Section 2) Calculate work and heat transfers for given sections of the cycle. (I've derived expressions for all the work and heat transfers in terms of the initial conditions. This is also where the problem of when the engine capacity isn't inputted occurs. Would an IF statement, checking the earlier value of ##V_1## work here? Like IF(##V_1## = 0, {Calculate per unit mass},{Calculate normally}).)

Section 3) Tabulate and graph results.
 
Physics news on Phys.org
It's going to take more than Pv = RT to model your diesel cycle. You need to assemble all of your equations, list all the inputs and outputs, and go from there.
 
SteamKing said:
It's going to take more than Pv = RT to model your diesel cycle. You need to assemble all of your equations, list all the inputs and outputs, and go from there.
I was only stating that equation to illustrate that when the initial volume isn't known, the rest of the values will have to be calculated specifically. I'll be modelling it using a T-S/s and P-V/v diagram. What equations can I use to find multiple points on each of the process curves?

It's not acceptable to plot straight lines between the initial and final temperatures for each process. For example, looking at the P-V/v diagram. The first process is an isentropic compression. I can easily find the initial and final conditions of P and V/v. But, how would I go about finding intermediate points on this process curve? Would using the relation ##PV^{\gamma} = k## be the equation required to model this curve, and if so, how would I go about using this equation to find at least 100 intermediate points on the curve in excel? Thanks for the quick reply and apologies for getting off topic.
 
What I'm thinking is that, I'll know my initial and final V/v. Then, if I split that interval up into, let's say, 100 different values of V/v I can use the equation ##P_{intermediate}V_{intermediate}^{\gamma} = P_{Final}V_{Final}^{\gamma}## to find the corresponding values of ##P_{intermediate}##. This will give me multiple plottable points. Does this sound correct and if so, is it possible to do this in excel without the spreadsheet looking too verbose, SteamKing?
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
6K