rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
speed_density_base.h
Go to the documentation of this file.
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 */
17mass_t idealGasLaw(float volume, float pressure, float temperature);
18
20protected:
21 explicit SpeedDensityBase(const ValueProvider3D& veTable) : AirmassVeModelBase(veTable) {}
22
23public:
24 static mass_t getAirmassImpl(float ve, float manifoldPressure, float temperature);
25};
SpeedDensityBase(const ValueProvider3D &veTable)
static mass_t getAirmassImpl(float ve, float manifoldPressure, float temperature)
float mass_t
mass_t idealGasLaw(float volume, float pressure, float temperature)