Mogli12 / GearboxAddon

Farming Simulator 2017: Gearbox addon
GNU General Public License v3.0
53 stars 28 forks source link

concerns about fuel consumption #424

Closed Dudejo closed 6 years ago

Dudejo commented 6 years ago

Is it possible that fuel consumption could be calculated without taking engine torque into account?

It causes weird behavior with low torque engines (like the Rodeo) as they consume ludicrously low amounts of fuel. In the Rodeo's case, I had to double the fuelUsageRatio for it to get the realistic ~20 mpg it typically achieves in real life.

Mogli12 commented 6 years ago

Hi, The fuel consumption is calculated based on the used torque (from Giants engine) and the specific fuel consumption (g/kWh). I assume that Giants engine is optimized for slow and heavy vehicles and the Rodeo is light and fast compared to a tractor. If you would use moreRealistic it would at least try to simulate drag. Regards, Stefan

Dudejo commented 6 years ago

The Rodeo is supposed to be a regular gas engine vs every other vehicle that is diesel. Diesel is inherently more efficient so I guess adjustments warrant being made.

But even then, higher torque from an otherwise identical engine (to a weaker one) would ultimately decrease fuel consumption as you can get by with less throttle input.

Mogli12 commented 6 years ago

Ah, I forgot. The motor load is considered as well. The best efficiency is at 80% load. So at 60% load or at 100% load more fuel is consumed.

Dudejo commented 6 years ago

I did not know that about motor load.

However...that's not quite what my issue is. The best way I can explain it is that as the engine goes through its RPM range, weaker torque values on the torque curve act as if the engine is deliberately preventing fuel+air from entering the cylinders.

In my previous motor template tests, fuel consumption increased linearly with torque output regardless of any other factors.

With that in mind, I think it would be logical to amend fuelUsageRatio calculations to counteract this behavior.

Dudejo commented 6 years ago

I made this picture that hopefully clears up what I'm trying to convey

https://cdn.discordapp.com/attachments/412348931473801217/499042411280990208/example.png

Mogli12 commented 6 years ago

Hi,

The fuel consumption rate is the value at 80% load. Please check for example this article: https://en.wikipedia.org/wiki/Consumption_map and look at the values at 80% height of the red line.

The gearbox addon uses these values and multiplies it with RPM, torque, a factory derived from the ratio between used and available torque and a conversion factor.

Regards, Stefan

Dudejo commented 6 years ago

When you say torque, what exactly does that mean?

Torque @ RPM? What if the engine is being run outside of the turbo's boost threshold (The RPM at which the turbo has enough airflow to run at peak boost)?

Generally, turbo engines make very little power under the boost threshold. With the way fuel consumption works in your mod, running the engine at those RPMs would provide the best fuel economy. The consumption drops so low, even at maximum load, that it's more economical than a Smart Fortwo.

Mogli12 commented 6 years ago

Torque means that torque the the vehicle currently uses. It is calculated within Giants engine. Since the fuelUsageRatio is at 80% load, this value is compared with the available torque at the same RPM. That is the ratio. The values are:

A turbo lag would lead to little torque compared to available torque and thus to a high factor. But gearbox addon does not simulate turbo lag.

Regards, Stefan

Dudejo commented 6 years ago

Turbo lag is not the same as boost threshold. Turbo lag is just the time it takes for the turbine to change its own RPM. Even belt-driven turbos (aka superchargers) have a boost threshold. IMO, it should really be called Turbo Delay

And yeah, if torque, in this context, means whatever is used by the vehicle... if I'm running a simulated 15 liter truck engine at, say, 350 RPM where it can only "use" up to 100 nm of torque, it will consume so little fuel that it will counteract whatever penalties exist in the system, such as the factor 10 for low engine load or the high fuelUsageRatio such low RPMs typically have.

And so, you end up with 20 ton tractors displaying better fuel efficiency than a 3-cylinder 2-seat town car...if not a motorcycle.

Speaking of turbo delay, what if the mod ran a floating point variable that multiplied acceleration? The variable would be equivalent to the turbine's RPM and it could accumulate/lose RPMs using the same method as the engine itself (accel/decel within X ms)

Mogli12 commented 6 years ago

If you want higher fuel consumption at low RPM why don't you just increase that values at low RPM. There is anyhow not much known about specific fuel consumption at RPM below max. torque RPM.

Dudejo commented 6 years ago

The problem is not rpm. It's never been about rpm.

The problem is that fuel consumption is being directly influenced by how much torque the vehicle is using.

The intended engine could be a 30 liter mining truck but if the torque curve limits the engine to 100 nm for any reason, fuel consumption will reflect a much smaller platform. Even if the rest of the torque curve has proper torque output

It's like I'm driving a multi-displacement engine.

Sent from my iPod

Mogli12 commented 6 years ago

The engine has a specific fuel consumption (e.g. in g per kWh). If you multiply torque by RPM and divide it by the right constant you get power in kW.

And yes, at constant (used) torque and RPM the engine uses least fuel at about 80% load at lowest RPM somewhere above 1100 RPM.

Your problem is that Giants program does not take all forces into account. This is a simulation of tractors. It does not care about drag and I guess to simulation of rolling resistance focuses on rolling resistance on a field, not on road.

So I guess that the calculation of used torque is not good at higher speed on a road.

Mogli12 commented 6 years ago

https://www.youtube.com/watch?v=iNspNdVkslA