示例#1
0
def calculate_real_fuel2(speed, accel, slope, instant_fuel):
    modelo = cM.ModelConsuption(speed, accel, slope)
    consuption = modelo.run()
    p = 0.1  # Percentage increase in consumption [0,1]
    factor_RPM = ((speed**2) * (p)) / (30**2)
    instant_fuel = consuption + consuption * factor_RPM

    return instant_fuel
示例#2
0
def calculate_real_fuel3(speed, accel, slope, instant_fuel):
    modelo = cM.ModelConsuption(speed, accel, slope)
    consuption = modelo.run()
    p = 0.1  # Percentage increase in consumption [0,1]
    factor_RPM = (math.exp(speed) * p) / (math.exp(30))
    instant_fuel = consuption + consuption * factor_RPM

    return instant_fuel
示例#3
0
def calculate_real_fuel4(speed, accel, slope, instant_fuel):
    modelo = cM.ModelConsuption(speed, accel, slope)
    consuption = modelo.run()
    p = 0.2  # Percentage increase in consumption [0,1]
    maxSlope = 25
    maxSpeed = 30
    factor_Slope = math.exp(slope) / math.exp(maxSlope)
    factor_Speed = math.exp(speed) / math.exp(maxSpeed)
    factor_RPM = factor_Speed * factor_Speed * p
    instant_fuel = consuption + consuption * factor_RPM

    return instant_fuel
示例#4
0
def calculate_real_fuel(speed, accel, slope, instant_fuel):
    modelo = cM.ModelConsuption(speed, accel, slope)
    consuption = modelo.run()
    instant_fuel = consuption

    return instant_fuel