aboutsummaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-03-01 18:01:28 -0500
committerSam Anthony <sam@samanthony.xyz>2025-03-01 18:01:28 -0500
commit949175f82b16a93fb02d6471a98f8804fca3aeeb (patch)
treecd86cd109058216a3e7725b7d9abbd420313de4b /ui.h
parentacf6a9282ee46400155549e407e0279c336a0ec8 (diff)
downloadvolute-949175f82b16a93fb02d6471a98f8804fca3aeeb.zip
add intercooler pressure drop input
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h10
1 files changed, 7 insertions, 3 deletions
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);