Line |
Branch |
Decision |
Exec |
Source |
1 |
|
|
|
/** |
2 |
|
|
|
* @file speed_density_base.h |
3 |
|
|
|
* |
4 |
|
|
|
* Base for speed density (ie, ideal gas law) math shared by multiple fueling modes. |
5 |
|
|
|
* |
6 |
|
|
|
* @date July 22, 2020 |
7 |
|
|
|
* @author Matthew Kennedy, (C) 2020 |
8 |
|
|
|
*/ |
9 |
|
|
|
|
10 |
|
|
|
#pragma once |
11 |
|
|
|
|
12 |
|
|
|
#include "airmass.h" |
13 |
|
|
|
|
14 |
|
|
|
/** |
15 |
|
|
|
* @returns mass of air in cylinder |
16 |
|
|
|
*/ |
17 |
|
|
|
mass_t idealGasLaw(float volume, float pressure, float temperature); |
18 |
|
|
|
|
19 |
|
|
|
class SpeedDensityBase : public AirmassVeModelBase { |
20 |
|
|
|
protected: |
21 |
|
|
7 |
explicit SpeedDensityBase(const ValueProvider3D& veTable) : AirmassVeModelBase(veTable) {} |
22 |
|
|
|
|
23 |
|
|
|
public: |
24 |
|
|
|
static mass_t getAirmassImpl(float ve, float manifoldPressure, float temperature); |
25 |
|
|
|
}; |
26 |
|
|
|
|