rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Functions
speed_density_base.h File Reference

Detailed Description

Base for speed density (ie, ideal gas law) math shared by multiple fueling modes.

Date
July 22, 2020
Author
Matthew Kennedy, (C) 2020

Definition in file speed_density_base.h.

Data Structures

class  SpeedDensityBase
 

Functions

mass_t idealGasLaw (float volume, float pressure, float temperature)
 

Function Documentation

◆ idealGasLaw()

mass_t idealGasLaw ( float  volume,
float  pressure,
float  temperature 
)
Returns
mass of air in cylinder

Definition at line 22 of file speed_density_base.cpp.

22 {
23 return volume * pressure / (AIR_R * temperature);
24}

Referenced by SpeedDensityBase::getAirmassImpl(), and getStandardAirCharge().

Here is the caller graph for this function:

Go to the source code of this file.