20 lines
446 B
C++
20 lines
446 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 "engine.h"
|
|
|
|
float idealGasLaw(float volume, float pressure, float temperature);
|
|
|
|
class SpeedDensityBase {
|
|
public:
|
|
static float getAirmassImpl(float ve, float manifoldPressure, float temperature DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
};
|