diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-03-02 14:40:09 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-03-02 14:40:09 -0500 |
| commit | 640d079ba6256121c45522e9a5fc0eef8725ff8c (patch) | |
| tree | fdc77c9e93d103ed928893364b002c2c9c9d34a2 /test_engine.c | |
| parent | 9e6a82e0bfe9cf0a884dc110293f497aa21bdb6d (diff) | |
| download | volute-640d079ba6256121c45522e9a5fc0eef8725ff8c.zip | |
calculate mass flow rate at standard conditions
Diffstat (limited to 'test_engine.c')
| -rw-r--r-- | test_engine.c | 19 |
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)); +} |