rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
wall_fuel.h
Go to the documentation of this file.
1/*
2 * @file wall_fuel.h
3 *
4 */
5
6#pragma once
7
9#include "engine_module.h"
10
11/**
12 * Wall wetting, also known as fuel film
13 * See https://github.com/rusefi/rusefi/issues/151 for the theory
14 */
16public:
17 /**
18 * @param desiredMassGrams desired fuel quantity, in grams
19 * @return total adjusted fuel squirt mass in grams once wall wetting is taken into effect
20 */
21 float adjust(float desiredMassGrams);
22 float getWallFuel() const;
23 void resetWF();
25};
26
28 virtual bool getEnable() const = 0;
29 virtual float getAlpha() const = 0;
30 virtual float getBeta() const = 0;
31};
32
34public:
36
37 void onFastCallback() override;
38
39 bool getEnable() const override {
40 return m_enable;
41 }
42
43 float getAlpha() const override {
44 return m_alpha;
45 }
46
47 float getBeta() const override {
48 return m_beta;
49 }
50
51protected:
52 float computeTau() const;
53 float computeBeta() const;
54
55private:
56 bool m_enable = false;
57 float m_alpha = 0;
58 float m_beta = 0;
59};
bool getEnable() const override
Definition wall_fuel.h:39
float getAlpha() const override
Definition wall_fuel.h:43
float getBeta() const override
Definition wall_fuel.h:47
float computeBeta() const
float computeTau() const
Definition wall_fuel.cpp:76
void onFastCallback() override
float getWallFuel() const
Definition wall_fuel.cpp:72
void resetWF()
Definition wall_fuel.cpp:10
int invocationCounter
Definition wall_fuel.h:24
float adjust(float desiredMassGrams)
Definition wall_fuel.cpp:14
virtual float getBeta() const =0
virtual bool getEnable() const =0
virtual float getAlpha() const =0