Programming a Small Car Simulator in Belgium

AI Thread Summary
The discussion focuses on programming a small car simulator, addressing challenges in calculating RPM, torque, and force on the car. The user has successfully computed these values but struggles with scenarios where speed equals zero and the variability of torque and power at different engine speeds. It is suggested that the relationship between torque and power can typically be determined through engine testing, often using a dynamometer. Additionally, the conversation highlights the importance of considering both air resistance and acceleration in the simulation. For accurate modeling, it is recommended to assume constant torque rather than constant power, as modern engines maintain relatively stable torque across a range of speeds.
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.
 
Hi there, im studying nanoscience at the university in Basel. Today I looked at the topic of intertial and non-inertial reference frames and the existence of fictitious forces. I understand that you call forces real in physics if they appear in interplay. Meaning that a force is real when there is the "actio" partner to the "reactio" partner. If this condition is not satisfied the force is not real. I also understand that if you specifically look at non-inertial reference frames you can...
I have recently been really interested in the derivation of Hamiltons Principle. On my research I found that with the term ##m \cdot \frac{d}{dt} (\frac{dr}{dt} \cdot \delta r) = 0## (1) one may derivate ##\delta \int (T - V) dt = 0## (2). The derivation itself I understood quiet good, but what I don't understand is where the equation (1) came from, because in my research it was just given and not derived from anywhere. Does anybody know where (1) comes from or why from it the...
Back
Top