PDA

View Full Version : Maths



Memphetic
05-25-2013, 01:23 AM
Okay, let's see if I can figure this out here. Say for our example, the engine is operating at 3500 RPM, is a 3100 cubic centimeter engine, has an intake manifold pressure of 20 pounds per square inch, with an intake charge temperature of 70 degrees. We'll say we're at sea level, for an atmospheric pressure of 14.7 psi.

So our variables (constants) are as follows:

Displacement = 3100cc = .0031 cubic meters
Engine Speed = 3500 RPM
P = 20 PSIg = 34.7 PSIa = 239.2 kPa
T = 70*F = 21.1*C = 294.3*K

Each rotation displaces 3100 cubic centimeters of (atmospheric pressure) air divided by two, as there is only one intake stroke every other revolution. Using our constants, we can find the number of moles of air.

PV=NRT
(239.2 kPa)(3.1x10^-3 cubic meters)(1/2) = n (8.314 J*K^−1*mol^−1)(294.3 K)
Solving for n using a TI-89 because I don't wanna deal with that bullshit gives us:

n=0.171079881880499 moles of air per full revolution.

(0.171079881880499 moles/revolution)(3500 revolution/minute) = 598.779586582 moles/minute of airflow (instantaneously)

Our target AFR is 11.5 to 1. At STP, 1 mole of gasoline occupies 22.4L. This means we need (598.779586582 moles per minute)/11.5 = 52.07 moles per minute of fuel to obtain it. This translates to 1166.368 cc/min of gasoline at this instant.

Does anyone see any flaw with this math? There is a reason for wanting to know this :-P Discuss.

IPD
05-25-2013, 03:52 AM
lol. reminds me of oxyrageous "discuss" threads on 3sdie.

Memphetic
05-25-2013, 05:02 AM
The main factor that I'm not understanding... is CFM from the turbo. Obviously a larger turbo pushes more CFM at the same PSI. Or does it? Where is it reflected in the ideal gas law? The only place I can figure would be in the temperature of the intake charge.

The reason for this thread... I will be developing an air/fuel controller that will include standalone logging onto an SD card (or android/pc app via bluetooth or cable, both supported), as well as a 3D fuel map based on engine speed and load, that runs at a 100mHz clock speed. Essentially this would convert any Mitsubishi car into one with speed density, amazing logging capabilities, and more precise tuning than can be achieved with most of what is available from big name companies. In addition, my target price is around $300 ;-)

Valhallaz
05-25-2013, 08:21 AM
Does that math take being a 4 stroke into account? We actually only combust every other revolution...

Greg E
05-25-2013, 11:46 AM
So you're making a Speed Density setup?

aaronatstate
05-25-2013, 11:47 AM
I may be wrong, but you're doing the whole engine. I'd say since there are 6 360cc/min injectors for a total 2160cc/min of fuel stock it's ok. And considering you're using 20psi gauge, that's only 6lbs of boost.

Memphetic
05-25-2013, 01:20 PM
Does that math take being a 4 stroke into account? We actually only combust every other revolution...

Ah, no. It's rough at 3AM ;) Let me revise.


I may be wrong, but you're doing the whole engine. I'd say since there are 6 360cc/min injectors for a total 2160cc/min of fuel stock it's ok. And considering you're using 20psi gauge, that's only 6lbs of boost.

You're thinking PSIa. If it was 20 PSIa, it would only be 6 pounds of boost (I BELIEVE pascals take atmospheric pressure into account, but didn't really find much supporting evidence when searching last night). The part that threw me is that the intake stroke is a vacuum.

And yes, it's for the whole engine. I believe these injectors are constant flow and pulsewidth controlled, so if (in our previous example) you require 595.5 total CC/min, it's simply divided by six giving us 99.25 cc/min per injector, and with a max flow of 360 cc/min on stock injectors, you obtain a duty cycle of 27.6%.


And that in itself seems weird... that's super low for stock injectors and 20PSI of boost.

RealMcCoy
05-25-2013, 06:03 PM
If I'm reading your calcs correctly, you solved for an 11.5 AFR by volume...? shouldn't that be by mass?

Memphetic
05-25-2013, 08:39 PM
It was solved by moles. There is a ratio of 11.5 air molecules to 1 fuel molecule.

Also interesting note, if you go back and solve for the amount of moles of air at ambient temp (70*F), you find that the airflow volume is 5425.05742089084 L/min. On a karman vortex, this would equate to about 800Hz. Does this sound right? I've never seen any datalogs to be able to compare.

striker2
05-25-2013, 10:03 PM
seems about right
Stealth 316 - 3S MAS Liter Per Hz (http://www.stealth316.com/2-mas_liter-per-hz.htm)

RealMcCoy
05-25-2013, 11:16 PM
It was solved by moles. There is a ratio of 11.5 air molecules to 1 fuel molecule.


I was just skimming, I see where I misread... It was the statement of how many liters 1 mole of fuel occupied that sent me on the wrong train of thought.

You DID solve for only 6(ish) lbs. above atmospheric though.... If you wanted 20 psi above atmospheric you need to convert 34.7 lbs to 239.48 kilopascals

Memphetic
05-26-2013, 12:15 AM
I was just skimming, I see where I misread... It was the statement of how many liters 1 mole of fuel occupied that sent me on the wrong train of thought.

You DID solve for only 6(ish) lbs. above atmospheric though.... If you wanted 20 psi above atmospheric you need to convert 34.7 lbs to 239.48 kilopascals

Are you sure...? Can you show me an article that makes this evident? I think that was the most confusing part about this. I was almost certain that I would have to add 14.7psi, though, as like I said, an engine is a vacuum.

RealMcCoy
05-26-2013, 12:36 AM
As a force there is no such thing as vacuum.... It's simply another measurement of pressure. It's an easy way to measure pressure levels below atmospheric. If you are going to calculate the air mass entering the engine, you have to measure it all, not just what you added above atmospheric.

If you are under boost conditions, at no time will you see a vacuum in the motor anyway.

Memphetic
05-26-2013, 03:18 AM
I suppose I may be an idiot because obviously if you put a zero into the equation (representing 0 kpa), it would fail to work... likewise, entering something, say, -10 PSIg, would yield negative results. Thinking isn't necessarily straight that late at night :P

After redoing, resulted in 1166.368 cc/min.

This would be a duty cycle on stock 360cc injectors of 54%, ~510 cfm of airflow, with a MAF frequency of about 2080Hz. This volume sounds *way* more appropriate to me, but the duty cycle seems off :-P

anyonebutme
05-26-2013, 01:16 PM
I suppose I may be an idiot because obviously if you put a zero into the equation (representing 0 kpa), it would fail to work... likewise, entering something, say, -10 PSIg, would yield negative results. Thinking isn't necessarily straight that late at night :P

After redoing, resulted in 1166.368 cc/min.

This would be a duty cycle on stock 360cc injectors of 54%, ~510 cfm of airflow, with a MAF frequency of about 2080Hz. This volume sounds *way* more appropriate to me, but the duty cycle seems off :-P

You're going to need better equation, quite simply. Something that takes into effect BSFC when you are dealing with fuel flows even at a basic scale like this. Or you can assume it's 70%ish at peak torque and maybe 50-60% at peak HP and just adjust your fueling numbers afterwards.

RealMcCoy
05-26-2013, 01:23 PM
Edit: nevermind.... bad math post

sergechronos
05-26-2013, 02:15 PM
Just further proof that math has never solved anything for anybody :P

akotten
05-26-2013, 04:12 PM
I've created an excel doc that calculates this for you if you'd like me to share it...

Well...mine does it a little differently. It calculates the amount of fuel (ms duty cycle) to inject to obtain a specified AFR given certain paramters. (injector size, cylinders, MAF, stoich fuel, etc) Not sure if this will be helpful to you.
If you can figure out our MAF, it should be cake.

Fuel Injection Calculator.xlsx (13 KB)
https://mega.co.nz/#!nZ4WwKSD!XFy7Z2aCM1fBaNIF7QIxMUISKSB47cyx4XoWm6U lNa0


Google Docs version here
https://docs.google.com/spreadsheet/ccc?key=0Ahi98Z7J0inodHk5TTdPalY0WVVvaHhLQ1phU29Ve Xc&usp=sharing

futurevr4man
05-26-2013, 06:59 PM
The main factor that I'm not understanding... is CFM from the turbo. Obviously a larger turbo pushes more CFM at the same PSI. Or does it? Where is it reflected in the ideal gas law? The only place I can figure would be in the temperature of the intake charge.

The reason for this thread... I will be developing an air/fuel controller that will include standalone logging onto an SD card (or android/pc app via bluetooth or cable, both supported), as well as a 3D fuel map based on engine speed and load, that runs at a 100mHz clock speed. Essentially this would convert any Mitsubishi car into one with speed density, amazing logging capabilities, and more precise tuning than can be achieved with most of what is available from big name companies. In addition, my target price is around $300 ;-)


i dont have time to read this whole thread, but its not as cut and dry as saying a bigger turbo will make more CFM at the same psi. disregarding turbine design, friction forces on the air, and the temperature increase/decrease that a bigger turbo would create... the psi that you hit is a measurement of restriction from the engine. if you have an engine that can breathe 500cfm and a turbo that pushes 300cfm compared to one that pushes 400cfm, then it will be hard to build much pressure BUT you will still have an increase in airflow. obviously this is a very exaggerated example, however, the majority of people i talk to about this dont seem to get it.

Memphetic
05-27-2013, 12:55 AM
i dont have time to read this whole thread, but its not as cut and dry as saying a bigger turbo will make more CFM at the same psi. disregarding turbine design, friction forces on the air, and the temperature increase/decrease that a bigger turbo would create... the psi that you hit is a measurement of restriction from the engine. if you have an engine that can breathe 500cfm and a turbo that pushes 300cfm compared to one that pushes 400cfm, then it will be hard to build much pressure BUT you will still have an increase in airflow. obviously this is a very exaggerated example, however, the majority of people i talk to about this dont seem to get it.

And as a result of not reading, you miss the intention and question :-P

Greg E
05-27-2013, 04:06 AM
Look...


Doesn't matter how intelligent of math you throw at the equation. You can predict the future to your hearts desire.

There are always X factors that you never in your wildest dreams occur. There's physics and there is relaity. There is what you predict will happen and what actually happens.

It doesn't matter how educated of a plan or guess you make. What actually happens can (and usually does) happens is different than what you expected. These variances are called the x-factors.

Unless you have a MAF or some kind of sensor to determine and compensate for these x- factors, reality is gonna slap you in the face.

Take a step back. Evaluate your math and physics from an out side point of view. Unless you can compensate for these things that you aren't aware of, reality is gonna hit you hard. Worst case scenario is it doesn't work. And it won't.

The biggest problem with speed density is you tell the ECU what AFR it should be seeing and any x-factor you didn't calculate isn't compensated for becomes a reality. Change your boost, change your VE, change your turbo... All these things throw your educated guess into chaos.

All your math is only as good as your results. Show me something that can compensate for the factors you wouldn't imagine and you got something going for you. This system already exists. Its called the stock MAF and closed loop.

futurevr4man
05-27-2013, 01:24 PM
And as a result of not reading, you miss the intention and question :-P

you asked a question in the post that i initially quoted. i answered it.

past that, you arent going to get a really accurate assumption due to some simple equation which is why i didnt say anything about your math. i could sit down, go through the otto cycle with you, integrate, find the area under the curve (horsepower), do some other equations, factor in humidity, frictional losses, etc AND STILL i wouldnt come up with the correct answer for fuel consumption or anything else you wanna find. i could probably get reasonably close (probably), but there is a lot more to it than the math you have put up. it would take a long time to not only type out more, but then when the inevitable questions come in of how did i get that, or arrive to that conclusion etc, i have better things to do with my time.

not trying to be a wiener, just sayin that you have only skimmed the surface. things get real tricky real quick