23 lines
579 B
C++
23 lines
579 B
C++
/**
|
|
* @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
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "airmass.h"
|
|
|
|
float idealGasLaw(float volume, float pressure, float temperature);
|
|
|
|
class SpeedDensityBase : public AirmassVeModelBase {
|
|
protected:
|
|
explicit SpeedDensityBase(const ValueProvider3D& veTable) : AirmassVeModelBase(veTable) {}
|
|
|
|
public:
|
|
static float getAirmassImpl(float ve, float manifoldPressure, float temperature DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
};
|