Closed DeeEmm closed 1 year ago
Function added in build 23040302 (Commit https://github.com/DeeEmm/DIY-Flow-Bench/commit/7a2b8deaacc0ce50266aa295c98dd9f75399a60c).
The MAF data files now contain the MAF housing diameter that the flow data relates to. This is generally the OEM housing size but may be other non-standard diameters for custom MAF definitions.
Then on the configuration page in the WebUI there is a MAF Diameter setting. This is the size of the installed housing.
The code then scales the flow value based on the difference in housing area using these two values
OEM housing area : Installed housing area
This will work for both larger and smaller than original MAF housings
If either value is set to zero or the two values are the same the calculation is not performed and the original MAF flow data is used. This means that the scaling is only applied if the original diameter is listed in the MAF Data file and a positive non-standard diameter is entered into the GUI.
Ultimately all new MAF Data files should include the housing diameter that the MAF data was recorded with.
Discussed in https://github.com/DeeEmm/DIY-Flow-Bench/discussions/135
.
Add transfer function into code to allow end user to configure pipe diameter that they are using.
This requires that original MAF diameter is included within the MAFData file.
User can enter pipe diameter within configuration settings (this will default to original diamter for fixed diamters)
Flow data can then be transposed as part of the MAFData lookup function...
Data-lookup > Data-transpose > Transposed-Flow-Value