2020-07-22 18:24:20 -07:00
|
|
|
/**
|
|
|
|
* @file speed_density_base.h
|
|
|
|
*
|
|
|
|
* Base for speed density (ie, ideal gas law) math shared by multiple fueling modes.
|
|
|
|
*
|
|
|
|
* @date July 22, 2020
|
|
|
|
* @author Matthew Kennedy, (C) 2020
|
|
|
|
*/
|
|
|
|
|
2020-07-22 13:11:07 -07:00
|
|
|
#pragma once
|
|
|
|
|
2020-07-24 19:30:12 -07:00
|
|
|
#include "airmass.h"
|
2020-07-22 13:11:07 -07:00
|
|
|
|
|
|
|
float idealGasLaw(float volume, float pressure, float temperature);
|
|
|
|
|
2021-05-14 04:17:22 -07:00
|
|
|
class SpeedDensityBase : public AirmassVeModelBase {
|
2020-07-24 19:30:12 -07:00
|
|
|
protected:
|
2021-05-14 04:17:22 -07:00
|
|
|
explicit SpeedDensityBase(const ValueProvider3D& veTable) : AirmassVeModelBase(veTable) {}
|
2020-07-24 19:30:12 -07:00
|
|
|
|
2020-07-22 13:11:07 -07:00
|
|
|
public:
|
|
|
|
static float getAirmassImpl(float ve, float manifoldPressure, float temperature DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
};
|