Results 1 to 13 of 13

Thread: Airmass Calculations (MAF & SD)

  1. #1

    Airmass Calculations (MAF & SD)

    something i had been working on awhile back thought might be of interest...


    LS1 VCM Main Airmass Calculation
    =================================

    A very important calculation the VCM must make to ensure correct fuel mixtures under all driving conditions is the dynamic airmass calculation. This is the main calculation the VCM uses to determine how much air it should use for the Base Fuel Calculation (Inj PW). The airmass calculation is not simple and uses various combo's of MAF and SD inputs depending on engine operating conditions such as current engine RPM. It may also make decisions based on whether the engine is in a steady load state (steady MAP) or unsteady load state (Unsteady MAP). Note, that these thresholds change with RPM and MAP. eg. at higher RPM or high MAP readings you have more leeway before the VCM decides that you have an Unsteady MAP condition. This unsteady MAP defintion is basically there to decide if a throttle transient has occured (or other) ie. the MAF input is known not to be accurate under these operating conditions.

    Under normal conditions (ie. all sensors working properly) in the code i'm looking at it is like this:
    (caveat: many of these thresholds may vary between code revs and vehicle type)

    [tt]
    RPM > 4000
    ----------
    *trust MAF completely and ignore SD calcs (apart from MAF sanity checking purposes)

    RPM < 4000
    ----------
    *if RPM < 2400 and MAP < 84 kPa then
    * * *Steady MAP threshold = 0.0 kPa
    *else
    * * *Steady MAP threshold = 0.8 kPa

    *If (SteadyMAP) then
    * * *Calculate MAFAirmass/SDAirmass ratio (used for Unsteady MAP operation)
    * * *Correction Airmass = MAF Airmass (filtered)
    *else
    * * *Correction Airmass = SD Airmass x MAF/SD Airmass Ratio (calculated during Steady MAP conditions)

    *Transient Corrected Airmass = previous Final Airmass + proportion of Correction Airmass

    *Final Airmass = fn(MAF Airflow, previous MAF Airflow, prev 3 MAP readings, prev 3 TPS readings,
    Transient Corrected Airmass)
    [/tt]

    *There are 9 coefficents to this filter (and a total of up to 16 diffent sets of coefficients depending on operating conditions). It is worth noting that the previous value is weighted heaviest followed by the 2 MAF terms, so MAF dominates IMHO).

    *There are also a number of checks at the end to make sure things do not exceed certain limits


    To summarise:
    1. High RPM behavior is totally based on MAF
    2. Mid RPM behaviour has an allowance on Steady MAP behaviour before it switches to Unsteady MAP
    3. Low RPM behaviour (where the bulk of the fuel cells are) is dictated by unsteady MAP behaviour that is still mostly dominated by the MAF input with small tweaking from SD)

    If the VCM decides that a throttle transient has occured (unsteady MAP), the airflow incorporates a &quot;correction&quot; from the SD calculations. This value is the SD calulated airmass multiplied by the previous ratio of measured MAF airmass to calculated SD airmass (this normalises it, since you are worried about the transient deviation from MAF airmass only). The way i understand it is this, imagine you are cruising (MAP is steady), you have a decent vacuum in the manifold and you change the throttle position quickly. Air rushes into the manifold to service the change in air demands from the engine itself but also to try and fill the vacuum. The result is that the MAF reads higher than it should at that point in time (spikes). This is more pronounced at low RPM where the engine airflow is smaller and the relative proportion of extra airflow due to filling vacuum is higher, also the MAF is known to be more inaccurate at lower RPM and more non uniform airflow. IMHO, the SD correction is to account for filling and emptying of the manifold during throttle transients and also to smooth the MAF's spikyness at lower RPMs.

    The bottom line is that if the engine is at a steady load state or operating at high RPM then the airflow is 100% based on the MAF once you get thru all the filters and calculations. And the SD calcs only get used for transients and smoothing lower speed operation.

    At no stage does the MAF get ignored completely in these calcs (the dominating terms of the main filter calc are always MAF based).

    An interesting point to note is that removing the MAF basically bypasses the whole system and directly sets the Final Airmass value to be the result of the SD lookup (it also disables things like knock learn and a few other nice things). Most have taken to calling this &quot;Backup SD Mode&quot; which is as good a name as any i guess and i meant to allow the engine to run with a failed MAF (although it is quite possible to tune usuing this mode (eg. HSV GTS 300kw comes factory this way). There is another way to disable the MAF system completely (ie. without setting the DTC's) and by tuning of the thresholds and other flags you can get a fully functional SD tune happening, the so called &quot;True Speed Density Mode&quot;... maybe more on that later...

    Since i haven't had time to step this out in painstaking detail and i haven't yet qualified for my guru pin, please feel free to correct any errors that are in here. i'm sure there are some.. as things have been a little busy around here lately

    gameover...
    Last edited by Bill@HPTuners; 04-04-2007 at 04:31 PM.
    I count sheep in hex...

  2. #2

    Re: Airmass Calculations (MAF & SD)

    IT sounds about right, which is why you have to tune the engine w/o a MAF to get the VE calcs correctly, to aid the PCM in its calculations.

    It even makes more sense when you look at the LT1 where the SD calculation looks to be ignored with the MAF.

  3. #3
    Tuner in Training
    Join Date
    Jan 2004
    Location
    usa
    Posts
    18

    Re: Airmass Calculations (MAF & SD)

    Quote Originally Posted by The_Highlander
    IT sounds about right, which is why you have to tune the engine w/o a MAF to get the VE calcs correctly, to aid the PCM in its calculations.

    It even makes more sense when you look at the LT1 where the SD calculation looks to be ignored with the MAF.
    Could you please explain why I need to tune the Engine without a MAF to get the VE calcs correct???

    joel

  4. #4
    Potential Tuner
    Join Date
    Mar 2004
    Location
    Posts
    6

    Re: Airmass Calculations (MAF & SD)

    Quote Originally Posted by gameover
    There is another way to disable the MAF system completely (ie. without setting the DTC's) and by tuning of the thresholds and other flags you can get a fully functional SD tune happening, the so called &quot;True Speed Density Mode&quot;... maybe more on that later...
    I am very interested in this if you could elaborate?

  5. #5

    Re: Airmass Calculations (MAF & SD)

    stay tuned... hopefully in the next few weeks.
    I count sheep in hex...

  6. #6

    Re: Airmass Calculations (MAF & SD)

    Quote Originally Posted by Bink

    Could you please explain why I need to tune the Engine without a MAF to get the VE calcs correct???

    joel
    Because VE varies per climate, humidity, altitude, and others... And even when you &quot;can&quot; know these variables you still cant fine tune the VE Tables with a simple calculation.

    Besides MAF is not 100% accurate, everything is a system and works together. That is why you can change the maf tables to achieve a desired blm etc. The ve calculations are based on MAF also and g/cyl. If you do not have a perfect MAF calculation you will not have a perfect VE. So you see that you always have unreliable sources to calculate the exact or a very good approximate of the VE, therefore, the best way is to forget about the value and just tune it... You will reach that value anyways.

  7. #7
    Tuner in Training
    Join Date
    Jan 2004
    Location
    usa
    Posts
    18

    Re: Airmass Calculations (MAF & SD)

    Quote Originally Posted by The_Highlander

    Because VE varies per climate, humidity, altitude, and others... And even when you &quot;can&quot; know these variables you still cant fine tune the VE Tables with a simple calculation.

    Besides MAF is not 100% accurate, everything is a system and works together. That is why you can change the maf tables to achieve a desired blm etc. The ve calculations are based on MAF also and g/cyl. If you do not have a perfect MAF calculation you will not have a perfect VE. So you see that you always have unreliable sources to calculate the exact or a very good approximate of the VE, therefore, the best way is to forget about the value and just tune it... You will reach that value anyways.
    Thanks, Highlander. I see it now. ;D
    joel

  8. #8
    Tuner
    Join Date
    Jun 2004
    Location
    Indianapolis
    Posts
    166

    Re: Airmass Calculations (MAF & SD)

    Quote Originally Posted by gameover
    There is another way to disable the MAF system completely (ie. without setting the DTC's) and by tuning of the thresholds and other flags you can get a fully functional SD tune happening, the so called &quot;True Speed Density Mode&quot;... maybe more on that later...
    Sorry to dig this one up from the grave, but did this ever come to be?
    2002 Z51 C5 MN6 Coupe&&SuperMaxx Headers, Vararam, Ti Exhaust

  9. #9
    HP Tuners Support
    (foff667)
    Bill@HPTuners's Avatar
    Join Date
    Jun 2004
    Location
    Hailing from Parts Unknown
    Posts
    28,261
    just TTTing a blast from the past thread with some great info provided by chris

    It doesn't have to be perfect, it just needs to be done in two weeks...

    A wise man once said "google it"

  10. #10
    i still didn't get my guru pin yet...
    I count sheep in hex...

  11. #11
    Yes but 3 years later you sure know a lot more!!!
    1999 TA

    Car

  12. #12
    Potential Tuner
    Join Date
    Mar 2006
    Posts
    4
    Thank you for this information

  13. #13
    Tuner in Training
    Join Date
    Apr 2008
    Posts
    25
    Quote Originally Posted by woodly View Post
    Thank you for this information
    Holy blast from the past Batman! This thread was almost two years old!
    2003 Chevrolet Malibu, 180 degree stat, K&N, modified airbox, 56mm TB, custom tune (ongoing)