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.
 
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?
Thread 'Beam on an inclined plane'
Hello! I have a question regarding a beam on an inclined plane. I was considering a beam resting on two supports attached to an inclined plane. I was almost sure that the lower support must be more loaded. My imagination about this problem is shown in the picture below. Here is how I wrote the condition of equilibrium forces: $$ \begin{cases} F_{g\parallel}=F_{t1}+F_{t2}, \\ F_{g\perp}=F_{r1}+F_{r2} \end{cases}. $$ On the other hand...
Back
Top