Air Mass into Cylinder (Intake Charge)

8 replies · 4K views · last reply
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!
Spreadsheet screenshot with tables for engine block geometry, combustion chamber and valvetrain, thermodynamic values, control variables, and a fuel property table listing heating values and stoichiometric ratios.
Line graph of cylinder pressure in kilopascals against cylinder volume in liters: a large closed loop peaks near 7400 kPa at about 0.1 L, with a lower loop near 1700 to 2000 kPa and a flat curve near 0 kPa.
Four line graphs in a row under a Thermodynamics heading: heat release (%) rising in an S-curve from 0 to 1 over 270 to 450 degrees; rate of heat release (J/deg) peaking near 47; cylinder pressure (kPa) peaking near 7400; cylinder temperature (K) peaking near 6100 before dropping at about 540 degrees.
Seven line graphs of piston motion over 0 to 360 degrees: piston position, velocity, acceleration, instantaneous compression ratio, cylinder volume, cylinder volume velocity, and exposed cylinder wall surface area.
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
  • Spreadsheet screenshot with tables for engine block geometry, combustion chamber and valvetrain, thermodynamic values, control variables, and a fuel property table listing heating values and stoichiometric ratios.
    Screen Shot 2018-01-06 at 6.10.03 PM.png
    39.9 KB · Views: 1,170
  • Line graph of cylinder pressure in kilopascals against cylinder volume in liters: a large closed loop peaks near 7400 kPa at about 0.1 L, with a lower loop near 1700 to 2000 kPa and a flat curve near 0 kPa.
    Screen Shot 2018-01-06 at 6.09.33 PM.png
    13.9 KB · Views: 884
  • Four line graphs in a row under a Thermodynamics heading: heat release (%) rising in an S-curve from 0 to 1 over 270 to 450 degrees; rate of heat release (J/deg) peaking near 47; cylinder pressure (kPa) peaking near 7400; cylinder temperature (K) peaking near 6100 before dropping at about 540 degrees.
    Screen Shot 2018-01-06 at 6.09.25 PM.png
    8.2 KB · Views: 883
  • Seven line graphs of piston motion over 0 to 360 degrees: piston position, velocity, acceleration, instantaneous compression ratio, cylinder volume, cylinder volume velocity, and exposed cylinder wall surface area.
    Screen Shot 2018-01-06 at 6.08.50 PM.png
    14.2 KB · Views: 906
Here are my current values for each variable:
Table of engine cylinder values: Intake Cylinder Mass Flow Rate (kg/s) 0.08491536477055..., Exhaust Cylinder Mass Flow Rate (kg/s) 0.08491536477055..., Intake Mass Flow M Constant 0.00000353814019..., Exhaust Mass Flow M Constant -0.00000353814019..., Exhaust Mass Flow B Constant 0.00262629815546...
Table of event times: start of intake stroke 0; start of compression 0.0075; beginning of exhaust stroke 0.0225; end of exhaust stroke (for intake) 0.03.
 
Attachments
  • Table of engine cylinder values: Intake Cylinder Mass Flow Rate (kg/s) 0.08491536477055..., Exhaust Cylinder Mass Flow Rate (kg/s) 0.08491536477055..., Intake Mass Flow M Constant 0.00000353814019..., Exhaust Mass Flow M Constant -0.00000353814019..., Exhaust Mass Flow B Constant 0.00262629815546...
    Screen Shot 2018-01-06 at 6.42.02 PM.png
    7.3 KB · Views: 826
  • Table of event times: start of intake stroke 0; start of compression 0.0075; beginning of exhaust stroke 0.0225; end of exhaust stroke (for intake) 0.03.
    Screen Shot 2018-01-06 at 6.41.54 PM.png
    5.1 KB · Views: 799
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:
Line graph of cylinder mixture mass in grams against crank angle in degrees from 0 to 720, with vertical lines marking EVC, IVC, EVO and IVO; mass rises linearly from about 0.09 g to a plateau near 0.66 g, then falls back to about 0.07 g at 720 degrees.

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
  • Line graph of cylinder mixture mass in grams against crank angle in degrees from 0 to 720, with vertical lines marking EVC, IVC, EVO and IVO; mass rises linearly from about 0.09 g to a plateau near 0.66 g, then falls back to about 0.07 g at 720 degrees.
    Screen Shot 2018-01-06 at 10.44.18 PM.png
    13.7 KB · Views: 803
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   Reactions: 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!
Table titled Valvetrain with two columns, Parameter and Value, listing intake and exhaust cam duration of 270 degrees, lobe centers of 110 degrees, mean valve seat diameters of 39.4 mm, valve seat heights, flow area constants A and B, and lift constants.
Spreadsheet table titled Intake with columns Cam Angle (Degrees), Time sec, Valve Lift mm, Crank Angle, Lv/D and Intake Minimum Flow Area m², listing rows 0 to 31.
 
Attachments
  • Spreadsheet table titled Intake with columns Cam Angle (Degrees), Time sec, Valve Lift mm, Crank Angle, Lv/D and Intake Minimum Flow Area m², listing rows 0 to 31.
    Screen Shot 2018-01-07 at 5.17.57 PM.png
    73.9 KB · Views: 688
  • Table titled Valvetrain with two columns, Parameter and Value, listing intake and exhaust cam duration of 270 degrees, lobe centers of 110 degrees, mean valve seat diameters of 39.4 mm, valve seat heights, flow area constants A and B, and lift constants.
    Screen Shot 2018-01-07 at 5.21.48 PM.png
    15.3 KB · Views: 712
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):
Spreadsheet table of manipulated variables for choked air flow, beside a graph of mass flow rate (kg/s) against pressure ratio from 0 to 1, with a blue subsonic curve rising to a flat red supersonic line past about 0.53.

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:
Spreadsheet of compressible flow constants with parameter values such as ambient temperature 273.15 K, pressure 101325 Pa, critical pressure ratio 0.528, sound speed 279.99 m/s; beside a graph of mass flow rate in kg/s rising from zero.

ZONE TWO:
Spreadsheet table titled Manipulated Variables listing parameters and values such as ambient temperature 273.15 K, orifice area, specific heat ratio 1.40060647113858 and sound speed 279.989374798402, beside a blue mass flow rate versus x-axis curve, with a nested IF formula bar below.

*Note: A2 is the pressure ratio (x)
 
Attachments
  • Spreadsheet table of manipulated variables for choked air flow, beside a graph of mass flow rate (kg/s) against pressure ratio from 0 to 1, with a blue subsonic curve rising to a flat red supersonic line past about 0.53.
    Screen Shot 2018-01-07 at 6.27.19 PM.png
    30.4 KB · Views: 738
  • Spreadsheet of compressible flow constants with parameter values such as ambient temperature 273.15 K, pressure 101325 Pa, critical pressure ratio 0.528, sound speed 279.99 m/s; beside a graph of mass flow rate in kg/s rising from zero.
    Screen Shot 2018-01-07 at 6.31.46 PM.png
    58.2 KB · Views: 686
  • Spreadsheet table titled Manipulated Variables listing parameters and values such as ambient temperature 273.15 K, orifice area, specific heat ratio 1.40060647113858 and sound speed 279.989374798402, beside a blue mass flow rate versus x-axis curve, with a nested IF formula bar below.
    Screen Shot 2018-01-07 at 6.32.07 PM.png
    56.8 KB · Views: 713