aboutsummaryrefslogtreecommitdiffstats
path: root/test_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'test_engine.c')
-rw-r--r--test_engine.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test_engine.c b/test_engine.c
index 4acfa17..2ac6e6e 100644
--- a/test_engine.c
+++ b/test_engine.c
@@ -105,3 +105,22 @@ test_mass_flow_rate(void) {
};
test(mass_flow_rate(&e), kilo_per_sec(0.2214056));
}
+
+void
+test_mass_flow_rate_corrected(void) {
+ Pressure p_ambient, p_boost, map;
+
+ p_ambient = inch_mercury(30);
+ p_boost = psi(10);
+ map = p_ambient + p_boost;
+ Engine e = {
+ .displacement = cubic_inch(250),
+ .rpm = rpm(5000),
+ .map = map,
+ .ambient_temperature = fahrenheit(70),
+ .ambient_pressure = p_ambient,
+ .ve = percent(80),
+ .comp_efficiency = percent(65),
+ };
+ test(mass_flow_rate_corrected(&e), kilo_per_sec(0.2216067));
+}