Automotive Air Mass into Cylinder (Intake Charge)

AI Thread Summary
The discussion focuses on simulating the air mass entering and exiting the cylinder of an internal combustion engine using a spreadsheet model. The initial approach involves calculating mass flow rates based on valve timing and cylinder mass, but concerns arise regarding the accuracy of linear approximations, particularly during valve overlap. Participants emphasize the importance of using first principles of physics for reliable simulations, suggesting that the model should account for factors such as gas inertia and pressure wave propagation. The original poster decides to adopt a compressible mass flow rate equation, incorporating valve area and discharge coefficients for improved accuracy. The conversation highlights the complexity of accurately modeling engine behavior and the necessity of empirical data for validation.
Jason Louison
Messages
69
Reaction score
2
Hello Physics Forum Community! It sure has been a while! :) I have been hard at work on my goal; to create a spreadsheet that simulates the Internal Combustion Engine (Spark Ignition). I can't take all the credit for having come this far, so there will be links to a few sources below that I have used in my research. Here are some progress photos!
Screen Shot 2018-01-06 at 6.10.03 PM.png
Screen Shot 2018-01-06 at 6.09.33 PM.png
Screen Shot 2018-01-06 at 6.09.25 PM.png
Screen Shot 2018-01-06 at 6.08.50 PM.png
Sources:

“Home - Walter Scott, Jr. College of Engineering.” Home - Walter Scott, Jr. College of Engineering, www.engr.colostate.edu/~allan/thermo/page8/page8.html.

https://2k9meduettaxila.files.wordpress.com/2012/09/internal-combustion-engines-fundamentals-heywood.pdf

I have created a simulation method of my own for the mass of air entering and exiting the cylinder, but it is very simple. That being said, it probably has a lot of error associated with it. I have come to physics forums to see if there was a better alternative or suggestions of how I could improve the model.

The model is as follows: For any IC (Internal Combustion) SI (Spark Ignition) engine, there is an intake and exhaust valve opening and closing point, usually denoted in degrees BTDC, ABDC, ATDC, BBDC.

If we calculate the mass of air in the cylinder, for example, at tivo and tivc ,take the engine speed (rpm) and convert those values to time, we can derive an equation for mass flow rate with the linear slope formula:

dm/dt=(m2—m1)/(tivc—tivo)

Where m2 is the total cylinder mass, (fuel and air), m1 is the residual mass, tivc is the time at closing of intake valve, and tivo is the time at the opening of the intake valve. For the exhaust mass flow rate, just switch m1 and m2 and turn tivo and tivc into tevo and tevc
 

Attachments

  • Screen Shot 2018-01-06 at 6.10.03 PM.png
    Screen Shot 2018-01-06 at 6.10.03 PM.png
    39.9 KB · Views: 1,075
  • Screen Shot 2018-01-06 at 6.09.33 PM.png
    Screen Shot 2018-01-06 at 6.09.33 PM.png
    13.9 KB · Views: 776
  • Screen Shot 2018-01-06 at 6.09.25 PM.png
    Screen Shot 2018-01-06 at 6.09.25 PM.png
    8.2 KB · Views: 794
  • Screen Shot 2018-01-06 at 6.08.50 PM.png
    Screen Shot 2018-01-06 at 6.08.50 PM.png
    14.2 KB · Views: 826
Engineering news on Phys.org
Here are my current values for each variable:
Screen Shot 2018-01-06 at 6.42.02 PM.png
Screen Shot 2018-01-06 at 6.41.54 PM.png
 

Attachments

  • Screen Shot 2018-01-06 at 6.42.02 PM.png
    Screen Shot 2018-01-06 at 6.42.02 PM.png
    7.3 KB · Views: 759
  • Screen Shot 2018-01-06 at 6.41.54 PM.png
    Screen Shot 2018-01-06 at 6.41.54 PM.png
    5.1 KB · Views: 727
Jason Louison said:
dm/dt=(m2—m1)/(tivc—tivo)

What are you doing with dm/dt?

Your question isn't detailed enough to answer. I translate it as, "If I have the end points of a curve, can I approximate it with a straight line?" Sometimes yes, sometimes no. A sin wave is zero at the beginning and end of each cycle. It can be approximated by the constant zero. For some applications, zero is a good enough answer. For other applications not.
 
anorlunda said:
What are you doing with dm/dt?

Your question isn't detailed enough to answer. I translate it as, "If I have the end points of a curve, can I approximate it with a straight line?" Sometimes yes, sometimes no. A sin wave is zero at the beginning and end of each cycle. It can be approximated by the constant zero. For some applications, zero is a good enough answer. For other applications not.
I am essentially using it as the slope of a linear equation for mass into the cylinder, as shown in this graph:
Screen Shot 2018-01-06 at 10.44.18 PM.png

The reason why I am worried about this method is valve overlap. As you can clearly see in the example above, I have yet to come up with a solution to this. If I do dm/dt(overlap)=dmintake—dmexhaust, then the mass flow rate can be zero, and the equation would just state no air in entering nor leaving the cylinder. (Cylinder mass would be zero)
 

Attachments

  • Screen Shot 2018-01-06 at 10.44.18 PM.png
    Screen Shot 2018-01-06 at 10.44.18 PM.png
    13.7 KB · Views: 729
Last edited:
Your question is unanswerable as stated. To provide an answer, one would have to compare a linear assumption, with a more accurate first principles simulation. I mean first principles of physics. Or compare it with experiment. Compare it with something. You have nothing to compare it with.

In simulation, we call it verification and validation. Our trust in any simulation is low, or zero, until we have some way to compare its results to an independent source of data.

When we assume linearity in simulation, it usually applies to one of the coefficients of the equations. You seem to be going the other way assuming linearity in the results, not the coefficients. In my experience, that works <20% of the time. I speak of engineering where our purpose is to use the simulation to predict how the system behaves in scenarios we have not measured. In the computer gaming world, there can be a different approach to simulation based on appearances (like the end points of your lines). They might call that physics, but it isn't really. In any case, they consider their games successful.

So, if your purpose is to predict engine performance in different scenarios or with different parameters, I urge you to take a different approach, based on "first principles" of physics: Newton's laws, conservation of mass, energy, volume, momentum, thermodynamics, and so on.

On the other hand, if your purpose is to produce a spreadsheet that appears to behave like an engine, ignoring the physics, then I wish you success. But asking questions on a physics forum won't be very helpful.
'
 
  • Like
Likes Jason Louison
anorlunda said:
Your question is unanswerable as stated. To provide an answer, one would have to compare a linear assumption, with a more accurate first principles simulation. I mean first principles of physics. Or compare it with experiment. Compare it with something. You have nothing to compare it with.

In simulation, we call it verification and validation. Our trust in any simulation is low, or zero, until we have some way to compare its results to an independent source of data.

When we assume linearity in simulation, it usually applies to one of the coefficients of the equations. You seem to be going the other way assuming linearity in the results, not the coefficients. In my experience, that works <20% of the time. I speak of engineering where our purpose is to use the simulation to predict how the system behaves in scenarios we have not measured. In the computer gaming world, there can be a different approach to simulation based on appearances (like the end points of your lines). They might call that physics, but it isn't really. In any case, they consider their games successful.

So, if your purpose is to predict engine performance in different scenarios or with different parameters, I urge you to take a different approach, based on "first principles" of physics: Newton's laws, conservation of mass, energy, volume, momentum, thermodynamics, and so on.

On the other hand, if your purpose is to produce a spreadsheet that appears to behave like an engine, ignoring the physics, then I wish you success. But asking questions on a physics forum won't be very helpful.
'
Thank you for those wise words, anorlunda. I have decided to go for a compressible mass flow rate equation, given valve curtain area, discharge coefficient, pressure ratio, and temperature. This is as technical you can get with computer simulation (especially on a spreadsheet). I will make a brainstorming sheet right now.
 
If you want to really model the air flow, you will most likely need to factor in the intake and exhaust geometry.

From p. 208 of the book in your second link, you can find this important mention which can guide you in the right direction:
Due to the time-varying valve open area and cylinder volume, gas inertia effects, and wave propagation in the intake and exhaust systems, the pressures in the intake, the cylinder, and the exhaust during these gas exchange processes vary in a complicated way. Analytical calculation of these processes is difficult (see Secs. 7.6.2 and 14.3 for a review of available methods). In practice, these processes are often treated empirically using overall parameters such as volumetric efficiency to define intake and exhaust system performance.
This post might also help you understanding the phenomena of pressure waves and how their effects can be simplified.
 
jack action said:
If you want to really model the air flow, you will most likely need to factor in the intake and exhaust geometry.

From p. 208 of the book in your second link, you can find this important mention which can guide you in the right direction:

This post might also help you understanding the phenomena of pressure waves and how their effects can be simplified.
Already on it!
Screen Shot 2018-01-07 at 5.21.48 PM.png
Screen Shot 2018-01-07 at 5.17.57 PM.png
 

Attachments

  • Screen Shot 2018-01-07 at 5.17.57 PM.png
    Screen Shot 2018-01-07 at 5.17.57 PM.png
    73.9 KB · Views: 625
  • Screen Shot 2018-01-07 at 5.21.48 PM.png
    Screen Shot 2018-01-07 at 5.21.48 PM.png
    15.3 KB · Views: 640
jack action said:
If you want to really model the air flow, you will most likely need to factor in the intake and exhaust geometry.

From p. 208 of the book in your second link, you can find this important mention which can guide you in the right direction:

This post might also help you understanding the phenomena of pressure waves and how their effects can be simplified.
Here's what I've got so far (Brainstorming Sheet):
Screen Shot 2018-01-07 at 6.27.19 PM.png

The flow of air is choked, and reaches its maximum when it reaches the speed of sound. I decided to make a two zone model to especially highlight this phenomenon. Zone 1 is Subsonic Flow, whereas zone 2 is Supersonic (Critical/Choked) Flow.

ZONE ONE:
Screen Shot 2018-01-07 at 6.31.46 PM.png

ZONE TWO:
Screen Shot 2018-01-07 at 6.32.07 PM.png

*Note: A2 is the pressure ratio (x)
 

Attachments

  • Screen Shot 2018-01-07 at 6.27.19 PM.png
    Screen Shot 2018-01-07 at 6.27.19 PM.png
    30.4 KB · Views: 671
  • Screen Shot 2018-01-07 at 6.31.46 PM.png
    Screen Shot 2018-01-07 at 6.31.46 PM.png
    58.2 KB · Views: 611
  • Screen Shot 2018-01-07 at 6.32.07 PM.png
    Screen Shot 2018-01-07 at 6.32.07 PM.png
    56.8 KB · Views: 638

Similar threads

Replies
22
Views
2K
Replies
6
Views
5K
Replies
17
Views
4K
Replies
10
Views
16K
Replies
1
Views
3K
Replies
11
Views
22K
Replies
11
Views
165K
Back
Top