From 640d079ba6256121c45522e9a5fc0eef8725ff8c Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 2 Mar 2025 14:40:09 -0500 Subject: calculate mass flow rate at standard conditions --- test_engine.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test_engine.c') 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)); +} -- cgit v1.2.3