From 949175f82b16a93fb02d6471a98f8804fca3aeeb Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 1 Mar 2025 18:01:28 -0500 Subject: add intercooler pressure drop input --- ui.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 904d239..16d3c6e 100644 --- a/ui.h +++ b/ui.h @@ -1,6 +1,9 @@ enum { MAX_POINTS = 16 }; typedef struct { + int npoints; + Engine points[MAX_POINTS]; + w_Field displacement; w_Select displacement_unit; @@ -10,8 +13,6 @@ typedef struct { w_Field ambient_pressure; w_Select ambient_pressure_unit; - int npoints; - w_Field rpm[MAX_POINTS]; w_Field map[MAX_POINTS]; @@ -23,7 +24,8 @@ typedef struct { w_Field intercooler_efficiency[MAX_POINTS]; - Engine points[MAX_POINTS]; + w_Field intercooler_deltap[MAX_POINTS]; + w_Select intercooler_deltap_unit; w_Select volume_flow_rate_unit; w_Number volume_flow_rate[MAX_POINTS]; @@ -42,6 +44,8 @@ void set_map_unit(UI *ui); void set_ve(UI *ui, int idx); void set_comp_efficiency(UI *ui, int idx); void set_intercooler_efficiency(UI *ui, int idx); +void set_intercooler_deltap(UI *ui, int idx); +void set_intercooler_deltap_unit(UI *ui); void set_volume_flow_rate(UI *ui, int idx); void set_all_volume_flow_rate(UI *ui); void insert_point(UI *ui, int idx); -- cgit v1.2.3