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 --- engine.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engine.c') diff --git a/engine.c b/engine.c index d0a1b38..3e0a792 100644 --- a/engine.c +++ b/engine.c @@ -116,3 +116,16 @@ mass_flow_rate(const Engine *e) { t = e->ambient_temperature; return (p * v) / (R_AIR * t); } + +/* Mass flow rate through the engine (corrected to standard conditions). */ +MassFlowRate +mass_flow_rate_corrected(const Engine *e) { + Pressure p; + Temperature t; + VolumeFlowRate v; + + p = STANDARD_PRESSURE; + t = STANDARD_TEMPERATURE; + v = volume_flow_rate(e); + return (p * v) / (R_AIR * t); +} -- cgit v1.2.3