Programming a Small Car Simulator in Belgium

Click For Summary

Discussion Overview

The discussion revolves around programming a small car simulator, focusing on the calculations of force, torque, and power related to vehicle dynamics. Participants explore the relationships between speed, engine RPM, torque, and power, as well as the effects of air resistance and other factors on vehicle performance.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes their calculations for RPM, torque, and force on the car, noting issues when speed equals zero.
  • Another participant highlights the dual effects of air resistance and acceleration on the torque and force applied by the tires, suggesting that air resistance is proportional to speed.
  • There is a discussion about the variability of torque and power with engine speed, with one participant questioning how to obtain the necessary relationship without empirical testing.
  • A later reply introduces the concept of a dynamometer (dyno) as a tool for measuring torque and power curves, suggesting that constant torque assumptions may simplify the simulation.

Areas of Agreement / Disagreement

Participants express varying views on how to model torque and power in the simulator, with some agreeing on the need for empirical data while others suggest theoretical approaches. The discussion remains unresolved regarding the best method to obtain torque and power relationships.

Contextual Notes

Participants note limitations in available data, such as the common provision of only maximum torque or power figures at specific RPMs, which may not reflect the full operational range of the engine.

MrMaxus
Messages
3
Reaction score
0
Hi,

I'm trying to program a sort of small car simulator, but I have a problem.
I managed to calculate the force on the car, acceleration, speed, air ressistance etc...

My theory:
We've got a car at a certain speed (v) and I calculate the RPM:
Code:
rpm = ( v * gear-ratio * current gear ratio ) / ( 2pi * tyre_radius) * 60

Now I calculate the torque:
Also I calculate the engine power (Watt) from horsepower.
Code:
torque =  ( horsepower * 745.69987158227022 ) / ( 2pi * (rpm / 60 ) )

Then I am able to calculate the force on the car:
Code:
F = ( torque * final_gear_ratio * current_gear_ratio) / tyre_radius


Remarks:
1. it doesn't work when speed = 0
2. it's better to work with a torque and power function because they aren't the same at different engine speeds (max power at certain RPM), but how do you create/calculate such a function. Or can this only be made by testing the engine to get the values?

example of one:
http://www.electroprivod.ru/theory/2-8.gif


I'm from Belgium so please use the SI units!
 
Physics news on Phys.org
There are two effects here resisting the torque of the engine or force applied by the tyres. One effect, which one mentions is air resistance, but the other effect is acceleration or change in speed of the car.

The air resistance is proportional to the speed of the car (or = kvn, where n >1), and one could use a coefficient of drag.

Yes torque and power vary with engine speed, much in the same way that pump performance varies with speed. One normally determines the relationship (function) by testing the engine. There is internal resistance in a rotating system, which increases with speed. In addition, in a pump, the fluid can only flow in only so fast, and similarly in some engines, the fuel and air supply can only get in so fast. Fuel injection and turbocharging (as compared to normal aspiration) are way to improve fuel and air flow for improved engineer performance.
 
Ok, I understand, but is there a way to get or make such a relationship if it's determined by testing.
Can I somewhere get these values/curves?
On every sites, If they provide some info about torque, I only find max torque or power @ xxxx rpm.
 
The device used to measure these things is called a dyno (dynamometer). I think it's also referred to as a rolling road in the UK. If you search for these terms, the web is filled with the types of plots you're looking for.

Also, your little program would work much better by assuming constant torque (at the engine) rather than constant power. In many modern engines, maximum torque doesn't change by more than 30% or so over most of the operating range.
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
1K
  • · Replies 95 ·
4
Replies
95
Views
7K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 43 ·
2
Replies
43
Views
6K
  • · Replies 23 ·
Replies
23
Views
11K
  • · Replies 26 ·
Replies
26
Views
7K
  • · Replies 18 ·
Replies
18
Views
8K