Hi all,
I'm creating a simulation of car (just a hobby).
I've looked at the F1-2000 vehicle files, which have textual
rpm_torque graphs.
I have a lot of questions, but this is complex field so I must conquer
pieces of the puzzle one by one. (I'm also roaming at sci.physics)
First off, I have some q's with throttle & rpm.
Assumptions:
- I have a car with throttle pedal, and it's hanging in the air (so no
air resistance)
- I have wheel with mass, so there is the need for torque to give the
wheels angular momentum (have them spin). If I set the wheel mass at
0, there would be just a rotating axle.
Questions:
- I have rpm-torque graphs, from GRE (GPL Racing Engineer) for
example, but also from F1-2000. However, the relationship
throttle-torque is a bit unclear to me. It seems as if rpm-torque has
a relationship on the graphs, but it feels to me like rpm is a RESULT
of torque (eventually).
So pressing the throttle must present more torque on the crankshaft
(coming just out of the motor). If the wheels want to rotate, then the
rpm goes up as a result.
But how much extra torque is generated when you press the throttle
pedal? Say the torque when the engine is idle (say 1000rpm) is 150
foot-pounds, and 180 at 2000rpm. Now I'm stepping on the gas. How will
this relate to the torque I'm generating at full throttle, and, say,
10% of full throttle?
- How can the rpm have a max? I know it has, but if I have the wheels
spinning in the air, and I push the throttle, there is no air
resistance, no rolling resistance, just engine (internal) friction.
How would I describe internal friction? (since it is probably the
reason why there's a max rpm an engine can obtain)
Is it c.RPM, where c is some constant, or perhaps c.RPM^2 (so the
higher rpm's, the faster the friction goes up, in a quadratic way)?
- When you look at the F1-2K vehicle files, you get lines like:
rpm_torque=(5000,-47.04,254.15)
...
In this list, the 5000 is the rpm, the 2nd number goes up nearly
linearly from 0@0rpm to -275@19500rpm. The 2nd number goes from 0 to
+340 at about 13500rpm, then goes down quickly.
Am I right into thinking that the 2nd nr is friction, or is it power?
And the 3rd nr seems the torque nr.
Goal (1st thing):
- To have a car floating in mid-air which I can give throttle until it
reaches its peak rpm (because of friction probably). This by passing
the torque onto the wheels, keeping track of their mass and generating
angular momentum on the wheels, so it has the right feel.
Eventual goals:
- Have a good handling car (system rather, so you can plug in any car
you would like; it's the physics that do the tricks) driving around.
- Once the car is drivable in a physically-correct way, I want to
start at some track stuff; my desire is kart tracks for now. Although
the car physics is designed to plug into whatever track system would
be used.
- Internet play (far away). Basically simple, in practice very tough
though because of timing and connection speed issues.
Status:
I have a couple of wheels (currently represented by cylinders to view
rotation easily), and a steering wheel which rotates the front wheels.
All in 3D running on an endless grid. This running on an SGI (on which
I'm developing), and on a PC (because well, you can't avoid them, and
I have a framework which allows me to share the source easily).
The car itself is quite extensively built from a .ini file, so it's
easy to change car mass, wheel mass, radii, and even front/rear drive,
and create things like a car with 3 wheels.
Thanks for any knowledge you can share, and sorry the length, but I
hope to get this thing going slowly, and then OpenSource it in a way
by keeping the parameter files as open as possible.
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Notable threadHobbyist sim developer's car physics questions
Ruud van Gaal, writing his own car simulation, asked how throttle, torque curves and engine friction relate, using F1 2000's data files. Todd Wasson, Gregor Veble, Han Monsees and others explained full-throttle dyno curves, negative engine torque, wheel inertia and slip ratios, and Matthew Jessick, an aerospace engineer doing vehicle modelling at a game company, added practical modelling advice. There was a side discussion of CVT transmissions in Williams F1 and DAF cars.
With Matthew Jessick (Motorsims)
physics/realism debateF1 2000
Automated summary.
Hi,
I'll try to answer (some) of your questions, but since I am a phycisist and
not a car-engineer, my answers may be wrong..
"Ruud van Gaal" <[email hidden]> wrote in message
news:[email hidden]...
The throttle controlls the amount of fuel that is delivered to the engine.
In other words: more throttle is more (chemical) energy per second delivered
to the engine.
The power-output of the car is given by the formula P = v * F or P = 2*Pi *
f * M
where: P = power, v = velocity, F = force, f = frequency (rpm) of the engine
and M = torque
so, if the throttle is increased from 10% to 100%, the power-input (in the
form of chemical energy) will br 10 times bigger and, assuming a constant
engine-efficiency, so will the output power.
This means that the product 2*pi*f*M will be ten times bigger, too. This can
mean that when the engine is idle and there is no load, the torque is
approx. constant and the rpm will be 10 times higher, but as soon as the
engine is not idle, the load will get bigger as the rpm get higher (more
friction etc) end so both torque and rpm increase and their product
increases by that factor of 10.
AFAIK, the max rpm is determined by the rate that plugs can fire. That's why
modern F1-engines with motor managing electronics can reach such high revs:
they can produce many more sparks per second.
Besides, if the engine revs to high, friction will increase rapidly due to
high piston speeds and accelerations, thus creating heat which cannot be
removed quickly enough. Therefore, engines are rev limited.
I think this friction goes up quadratically as you said (most frictions are
quadratic functions of velocity), but that it does not deliver that much
friction until it starts breaking.
The first one could be friction. Depending on the coefficients, the
quadratic curve can reasonably be discribed by a linear curve.
A typical torque curve increases linearly at first, stays at the max for a
while (at 16000 to 18000 rpm for an F1-engine I guess) and then decreases
again. So if the third series shows that kind of behaviour, it could well be
the power.
Maybe you should model external friction, too, maybe friction for gearbox,
differential etc. modelled by a linear function of engine or wheel rpm. And
maybe you should consider the maximum spark rate as a means of setting a
rev-limit.
> Eventual goals:
> - Have a good handling car (system rather, so you can plug in any car
> you would like; it's the physics that do the tricks) driving around.
I would consider to deal with rolling- and air-resistance first before
worrying about cornering, weight-transfer etc.
try to take small steps!
> - Once the car is drivable in a physically-correct way, I want to
> start at some track stuff; my desire is kart tracks for now. Although
> the car physics is designed to plug into whatever track system would
> be used.
Sounds good, a bit like WSC.
> - Internet play (far away). Basically simple, in practice very tough
> though because of timing and connection speed issues.
>
search the net for good code. Better stolen well than designed badly!
One question: In what language are you programming? C++ ??
I am very curious about the progress and I hope my answers help you to go
further. Keep us informed!
grtngs,
Han Monsees
> Ruud van Gaal, GPL Rank +53.53
> MarketGraph / MachTech: http://www.marketgraph.nl
> Pencil art: http://www.marketgraph.nl/gallery
Quoted text (31 lines)
> Hi all, > > I'm creating a simulation of car (just a hobby). > I've looked at the F1-2000 vehicle files, which have textual > rpm_torque graphs. > I have a lot of questions, but this is complex field so I must conquer > pieces of the puzzle one by one. (I'm also roaming at sci.physics) > > First off, I have some q's with throttle & rpm. > Assumptions: > - I have a car with throttle pedal, and it's hanging in the air (so no > air resistance) > - I have wheel with mass, so there is the need for torque to give the > wheels angular momentum (have them spin). If I set the wheel mass at > 0, there would be just a rotating axle. > > Questions: > - I have rpm-torque graphs, from GRE (GPL Racing Engineer) for > example, but also from F1-2000. However, the relationship > throttle-torque is a bit unclear to me. It seems as if rpm-torque has > a relationship on the graphs, but it feels to me like rpm is a RESULT > of torque (eventually). > So pressing the throttle must present more torque on the crankshaft > (coming just out of the motor). If the wheels want to rotate, then the > rpm goes up as a result. > But how much extra torque is generated when you press the throttle > pedal? Say the torque when the engine is idle (say 1000rpm) is 150 > foot-pounds, and 180 at 2000rpm. Now I'm stepping on the gas. How will > this relate to the torque I'm generating at full throttle, and, say, > 10% of full throttle? >Quoted text (8 lines)
> - How can the rpm have a max? I know it has, but if I have the wheels > spinning in the air, and I push the throttle, there is no air > resistance, no rolling resistance, just engine (internal) friction. > How would I describe internal friction? (since it is probably the > reason why there's a max rpm an engine can obtain) > Is it c.RPM, where c is some constant, or perhaps c.RPM^2 (so the > higher rpm's, the faster the friction goes up, in a quadratic way)? >Quoted text (9 lines)
> - When you look at the F1-2K vehicle files, you get lines like: > rpm_torque=(5000,-47.04,254.15) > ... > > In this list, the 5000 is the rpm, the 2nd number goes up nearly > linearly from 0@0rpm to -275@19500rpm. The 2nd number goes from 0 to > +340 at about 13500rpm, then goes down quickly. > Am I right into thinking that the 2nd nr is friction, or is it power? > And the 3rd nr seems the torque nr.Quoted text (7 lines)
> > Goal (1st thing): > - To have a car floating in mid-air which I can give throttle until it > reaches its peak rpm (because of friction probably). This by passing > the torque onto the wheels, keeping track of their mass and generating > angular momentum on the wheels, so it has the right feel. >Quoted text (15 lines)
> Status: > I have a couple of wheels (currently represented by cylinders to view > rotation easily), and a steering wheel which rotates the front wheels. > All in 3D running on an endless grid. This running on an SGI (on which > I'm developing), and on a PC (because well, you can't avoid them, and > I have a framework which allows me to share the source easily). > The car itself is quite extensively built from a .ini file, so it's > easy to change car mass, wheel mass, radii, and even front/rear drive, > and create things like a car with 3 wheels. > > Thanks for any knowledge you can share, and sorry the length, but I > hope to get this thing going slowly, and then OpenSource it in a way > by keeping the parameter files as open as possible. > >Hi, Ruud!
Ruud van Gaal <[email hidden]> schrieb
> Hi all,
>
> I'm creating a simulation of car (just a hobby).
Cool, I also want to try this, but first I'm delving in the secrets of
Direct3D to create a simple 3D engine. Maybe my thoughts on this issue
could help a little bit (although there still are a couple of things I'm not
sure about).
My understanding of torque curves is, that they give you the maximum torque
the engine can deliver at a certain rpm, i.e. when applying 100% throttle.
So the first implementation (although not accurate, but later to that) would
be to simply interpolate the torque linearly between zero and the value of
the torque curve.
So your car hangs in the air, reving at 1000 rpm, no throttle = no torque
delivered to the wheels = no acceleration of the wheels.
Now you press the throttle at, say 50%. Take half the value of your torque
curve at 1000 rpm. This torque (eventually modified by the gear you are in,
but let's say you have 1:1 ratio) will accelerate the wheels according to
their moment of inertia. (To be correct, there would also be the moment of
inertia of the drive shaft, but...)
a=T/I, a being angular accreleration, T=torque, I=moment of inertia of the
wheels.
Using simple Euler integration, you'd get w=w+a*dt. w is the new angular
velocity of the wheels and the driveshaft, assuming a 1:1 gear, dt is your
time step. So in the next time step you have a new rpm value.
Let's say, you have pressed the throttle to 100% in the mean time. So in the
next time step you take the full value of the torque curve for you new rpm,
and so on.
If the car is on the ground and there is no slipping of the wheels you need
to compute the force, which the wheels are exerting at the contact patch.
F=T/r, F being the force and r the radius of the wheels. This will give you
the acceleration of the car, the new velocity of the car and so the new
angular velocity of the wheels and of the motor. When the wheels are rolling
and not slipping, w=v/r, v is speed of the car. Of course you need some
auto-declutching, if you're starting from a stand still, or you'll get zero
rpm.
The flaw on this simple model is, that it doesn't take into account internal
friction of the motor, you'll get no engine breaking. If you don't model
friction of the drive train, roll-resistance and aerodynamic drag, the
engine will always accelerate, but never slow down.
You could add a negative torque depending on the rpm (don't know if linear
or quadratic), so that for example applying 0% throttle at 5000 rpm yields a
negative torque.
Another idea would be to define a value depending on rpm, which denotes the
% of applied throttle to get zero torque (i.e with this throttle value the
torque of the engine just overcomes its internal friction).
Well, as I said I don't really know if its better to use linear or quadratic
friction.
But for max revs, I'd think the best would be to simply add a rev limiter. I
think the torque curve drops vastly when you reach max revs, so in normal
circumstances the car won't want to accelerate any more if you are in a high
gear at high speed (with high aerodynamic drag). And if you apply full
throttle without load (declutched or in neutral) it won't take long until
the engine dies.
I don't have F1-2K, so I have no idea. But have you tried to change these
values (the more, the better)? This could give you a clue what they mean.
He, he, that would be my dream also. Creating a simulation, that can handle
every car, from my humble Ford Sierra to F1!
Which language are you programming in? I'm using C++ (Borland) and well, as
I said in the moment I try to get a gripe on Direct 3D.
Please note, that I haven't actually tried anything I wrote about, so maybe
it's just absolute nonsense.
Peter
> Ruud van Gaal, GPL Rank +53.53
> MarketGraph / MachTech: http://www.marketgraph.nl
> Pencil art: http://www.marketgraph.nl/gallery
Quoted text (27 lines)
> I've looked at the F1-2000 vehicle files, which have textual > rpm_torque graphs. > I have a lot of questions, but this is complex field so I must conquer > pieces of the puzzle one by one. (I'm also roaming at sci.physics) > > First off, I have some q's with throttle & rpm. > Assumptions: > - I have a car with throttle pedal, and it's hanging in the air (so no > air resistance) > - I have wheel with mass, so there is the need for torque to give the > wheels angular momentum (have them spin). If I set the wheel mass at > 0, there would be just a rotating axle. > Questions: > - I have rpm-torque graphs, from GRE (GPL Racing Engineer) for > example, but also from F1-2000. However, the relationship > throttle-torque is a bit unclear to me. It seems as if rpm-torque has > a relationship on the graphs, but it feels to me like rpm is a RESULT > of torque (eventually). > So pressing the throttle must present more torque on the crankshaft > (coming just out of the motor). If the wheels want to rotate, then the > rpm goes up as a result. > But how much extra torque is generated when you press the throttle > pedal? Say the torque when the engine is idle (say 1000rpm) is 150 > foot-pounds, and 180 at 2000rpm. Now I'm stepping on the gas. How will > this relate to the torque I'm generating at full throttle, and, say, > 10% of full throttle?Quoted text (7 lines)
> - How can the rpm have a max? I know it has, but if I have the wheels > spinning in the air, and I push the throttle, there is no air > resistance, no rolling resistance, just engine (internal) friction. > How would I describe internal friction? (since it is probably the > reason why there's a max rpm an engine can obtain) > Is it c.RPM, where c is some constant, or perhaps c.RPM^2 (so the > higher rpm's, the faster the friction goes up, in a quadratic way)?Quoted text (9 lines)
> - When you look at the F1-2K vehicle files, you get lines like: > rpm_torque=(5000,-47.04,254.15) > ... > > In this list, the 5000 is the rpm, the 2nd number goes up nearly > linearly from 0@0rpm to -275@19500rpm. The 2nd number goes from 0 to > +340 at about 13500rpm, then goes down quickly. > Am I right into thinking that the 2nd nr is friction, or is it power? > And the 3rd nr seems the torque nr.Quoted text (13 lines)
> Goal (1st thing): > - To have a car floating in mid-air which I can give throttle until it > reaches its peak rpm (because of friction probably). This by passing > the torque onto the wheels, keeping track of their mass and generating > angular momentum on the wheels, so it has the right feel. > > Eventual goals: > - Have a good handling car (system rather, so you can plug in any car > you would like; it's the physics that do the tricks) driving around. > - Once the car is drivable in a physically-correct way, I want to > start at some track stuff; my desire is kart tracks for now. Although > the car physics is designed to plug into whatever track system would > be used.Quoted text (16 lines)
> - Internet play (far away). Basically simple, in practice very tough > though because of timing and connection speed issues. > > Status: > I have a couple of wheels (currently represented by cylinders to view > rotation easily), and a steering wheel which rotates the front wheels. > All in 3D running on an endless grid. This running on an SGI (on which > I'm developing), and on a PC (because well, you can't avoid them, and > I have a framework which allows me to share the source easily). > The car itself is quite extensively built from a .ini file, so it's > easy to change car mass, wheel mass, radii, and even front/rear drive, > and create things like a car with 3 wheels. > Thanks for any knowledge you can share, and sorry the length, but I > hope to get this thing going slowly, and then OpenSource it in a way > by keeping the parameter files as open as possible. Ruud,
>It seems as if rpm-torque has
>a relationship on the graphs, but it feels to me like rpm is a RESULT
>of torque (eventually).
This is not what the graph means. A torque/power curve for an engine is
determined on a dyno. The engine is run at full throttle while a brake holds
it steady at one rpm. The torque required to hold it steady at this rpm is the
torque the engine produces at that rpm. It's then repeated every 250-500 rpm
(or whatever rpm step you want). ---The result is a graph of how much torque
the engine makes at all speeds, when the engine is not accelerating.----
As Gregor pointed out, this is the 3rd term in:
rpm_torque=(5000,-47.04,***254.15***)
Note: Even if the engine IS accelerating, these values probably don't change
enough to worry about it, unless you have millions of dollars on the line in a
drag race. I use a fixed torque curve in Straightline Acceleration Simulator
and accuracy is high.
>So pressing the throttle must present more torque on the crankshaft
>(coming just out of the motor). If the wheels want to rotate, then the
>rpm goes up as a result.
Exactly. For full throttle, apply the torque at whatever rpm the engine is
running at to the transmission. The wheels speed up.
>But how much extra torque is generated when you press the throttle
>pedal? Say the torque when the engine is idle (say 1000rpm) is 150
>foot-pounds, and 180 at 2000rpm. Now I'm stepping on the gas. How will
>this relate to the torque I'm generating at full throttle, and, say,
>10% of full throttle?
It will NOT be 10% of full power. I repeat, it will NOT be 10% of full
power. In my model, I am assuming this is how it works for now, just to get
something working. The actual relationship really depends on the engine. I'll
be updating QuickEngine Builder to allow part throttle torque curves to be
created.
Depending on how accurate you want part throttle torque to be, there are a
couple of approaches you can take. I found a link that used a quadratic
function to get part throttle torque curves from a full throttle torque curve.
When I find it (my favorites folder is too huge to look for it right now), I'll
post it.
I emailed one sim developer about another technique that may work, but don't
know if it has been incorporated into his model yet. Basically, it consists of
making rough calculations of cylinder pressure with a restricted intake runner
(cross sectional area calculated from throttle angle), and subtracting losses
from the main torque curve.
If you like, I can get into more detail on engine airflow modelling. For
now, I recommend using a linear relationship for part throttle torque (10%
throttle = 10% power). I'd do this as a start:
rpm_torque=(5000,-47.04,254.15)
254.15 + 47.04 = 301.19
Throttle is 10%
10% * 301.19 = 30.119
Final torque at 10% throttle, 5000 rpm:
30.119 - 47.04 = -16.921
Above, we have a negative torque even though the throttle is 10%. This is
"engine" or "compression" braking.
At 50% throttle and 5000 rpm:
rpm_torque=(5000,-47.04,254.15)
254.15 + 47.04 = 301.19
50% * 301.19 = 150.595
Final torque at 50% throttle, 5000 rpm:
150.595 - 47.04 = 103.555
We should get 254.15 foot-lbs torque at 5000 rpm if throttle is 100%. Does it
work?
rpm_torque=(5000,-47.04,254.15)
254.15 + 47.04 = 301.19
100% * 301.19 = 301.19
Final torque at 100% throttle, 5000 rpm:
301.19 - 47.04 = 254.15
Yes.
Off hand, I can't visualize if this will give realistic part throttle numbers
or not. To find out, graph the entire torque curve at a few different throttle
settings using this algorithm. If the PEAK torque curve moves to a lower rpm
as the throttles are progressively closed, you may have hit the nail on the
head.
I'd love to try this myself to see if works. Could you send me a listing of
these rpm_torque (5000,-47.04,254.15) values in a text file, please? I'll put
a graph of the results at part and full throttle up on my site and send it to
you as well.
If it doesn't give the right results, I'll search for the link with the
quadratic function that was used successfully in one experiment and post it
later (if I can find it).
The thing to ask here is "how does the torque curve change with different
throttle settings?" If the torque curve merely moves up and down without
flattening or changing shape, then it isn't right.
>- How can the rpm have a max?
In the context you were speaking, it really doesn't. The tires may spin to
several hundred miles per hour if the car is suspended in mid air.
As far as max rpm with racing engines go, the main reason they can't be spun
beyond a certain rpm is because of structural failure. You spin beyond a
certain speed and a valve jumps off the cam (valve float) and smacks a piston.
BANG! Race over. I don't know anything about the F-1 pneumatic valve systems
or what their rpm capabilities are.
The other main high speed structural limitation in most engines are the
connecting rods. They aren't infinitely stong and have been known to break now
and then due to "excessive angular velocity" :-). (Rpm way too high)
Someone mentioned something about spark and peak rpm. Stock American
engines with older distributors would have spark problems past about 5500 rpm
and the power would drop off rapidly after that, so you simply wouldn't run the
engine much beyond 5500 rpm.
Newer ignition systems can run at a higher rpm than this as you probably
know, but when it comes to racing, the ignition system is rarely the limiting
factor. Past a certain speed, the rods break or the valves float excessively,
or something causes the engine to go "boom". This speed is the "max rpm" or
"redline".
In my model, I DEFINE a max rpm for the engine. It has nothing to do with
friction. If it did, the max rpm would come at some incredible speed where the
torque had dropped all the way to 0 again under full throttle.
>How would I describe internal friction? (since it is probably the
>reason why there's a max rpm an engine can obtain)
*Again, the max rpm has nothing to do with internal friction*
There are basically two types of torque/power graphs. One may show
"Indicated" torque/power, while the other may show "Brake" torque/power.
"Brake" torque/power graphs already include internal engine friction, while an
"Indicated" does not. I have never seen an "Indicated" torque/power curve
anywhere, aside from a textbook possibly.
>Is it c.RPM, where c is some constant, or perhaps c.RPM^2 (so the
>higher rpm's, the faster the friction goes up, in a quadratic way)?
Remember, "compression" or "engine" braking is more due to low cylinder
pressure than engine friction. Engine friction is a linear function, while
airflow restriction is more of a c.RPM^2 sort of thing.
I've got to go eat breakfast now :-) Will chat later, Ruud. If you can,
please send me a text file of torque_rpm() values so I can graph it using the
part throttle algorithm above.
Todd Wasson :-)
Performance Simulations
Drag Racing and Top Speed Prediction Software
http://PerformanceSimulations.Com
>So that's 370hp of *engine* friction? It could be, but I would think
>engine friction is not that big, so it's not exactly the torque.
Not dealing with engine friction here. This is mostly from negative work
produced in the cylinders as they're trying to suck air through throttles that
don't allow it.
Todd Wasson
> My belief is that the sim interpolates between these two values for any
> throttle input. Be aware, though, that the realtion between throttle
> input and torque output is typically nonlinear (I am not sure if most
> sims account for that).
I once asked a friend of mine who works at the engine development
department at a major Swedish car maker what the relationship between
the throttle and torque is. He said that they could do pretty much as
they wanted because there was no mechanical connection between the pedal
and the engine. In their cars you ordered a specific torque with the
pedal and the engine electronics tried to give you the requested torque.
I guess its similar with F1 cars that they can do as they want.
I guess this means that you could do as you want in a simulation as long
as you are within the maximum torque for a given rpm.
/Jesper
Ruud van Gaal wrote:
>
> - When you look at the F1-2K vehicle files, you get lines like:
> rpm_torque=(5000,-47.04,254.15)
> ...
>
Hi!
I am glad there are enthusiasts like yourself amongst us!
Now, to the questions about the torque/RPM relationship. This is usually
plotted for MAXIMUM throttle. In F1 2000, you have the following values:
rpm_torque=(RPM,0 throttle input torque,100% throttle input torque)
The second value represents the torque generated by the engine when the
foot is off the gas pedal, and this is typically negative due to the
fricition in the engine. The third value is the maximum throttle torque,
which is also usually the maximum torque produced by the engine.
My belief is that the sim interpolates between these two values for any
throttle input. Be aware, though, that the realtion between throttle
input and torque output is typically nonlinear (I am not sure if most
sims account for that).
-Gregor
On Wed, 09 Aug 2000 21:34:24 GMT, "Peter Prochazka"
<[email hidden]> wrote:
...
Hi Peter & Han,
...
>Cool, I also want to try this, but first I'm delving in the secrets of
>Direct3D to create a simple 3D engine. Maybe my thoughts on this issue
>could help a little bit (although there still are a couple of things I'm not
>sure about).
Any help is appreciated. BTW I find OpenGL is much easier to jump in
than D3D, but that's personal. In the end, for a car simulation, the
graphics API is secondary.
...
>My understanding of torque curves is, that they give you the maximum torque
>the engine can deliver at a certain rpm, i.e. when applying 100% throttle.
>So the first implementation (although not accurate, but later to that) would
>be to simply interpolate the torque linearly between zero and the value of
>the torque curve.
As Han said, the power output = 2*PI*f*M (f=frequency aka rpm,
although you should use rps ofcourse, and M=torque).
I'm now using indeed torque ranging from 0 to maxTorque (maxTorque is
derived from the rpm, although I use a constant for the time being).
Linearly interpolated.
>So your car hangs in the air, reving at 1000 rpm, no throttle = no torque
>delivered to the wheels = no acceleration of the wheels.
Actually, I'm not going to do it like that. Because it is revving at
1000 rpm, there is a torque still. If I start my car, and just push it
in 1st without clutching, it will roll forward. So there is torque,
even when not *PUSHING* throttle.
The idle state of the machine is more of a 'throttle at 5%' state.
Which keeps the engine going. Otherwise it would stop.
So from neutral to 1st gear, there would be immediate torque set to
the wheels (like in real life). The internal friction is related to
the rpm, so with little rpm (idle), the need for at least x% throttle
before even the *torque* becomes >0 is not there. I mean the internal
friction is never that big when idle so you really first have to give
10% throttle to surpass that and that the crankshaft torque becomes
>0.The internal friction *is* deducted from the crankshaft torque though
(I'm doing that already), related to rpm.
So the net torque may be <0 if the throttle is only at 10% but the
engine's rpm is 10.000, for example. That's working now.
Gosh, I'm reading up on so many things; moment of intertia for a wheel
is that:
- a scalar? or a vector? (I think a scalar)
- could it be L=2*PI*M*R^2 where L=moment of intertia, M=wheel mass,
R=radius of wheel?
- or otherwise how do you calculate the moment of intertia of the
wheels; is it constant or variable?
>Using simple Euler integration, you'd get w=w+a*dt. w is the new angular
>velocity of the wheels and the driveshaft, assuming a 1:1 gear, dt is your
>time step. So in the next time step you have a new rpm value.
Ok.
...
>If the car is on the ground and there is no slipping of the wheels you need
>to compute the force, which the wheels are exerting at the contact patch.
Yes, I have a big understanding problem there.
The wheel puts a force on the ground, where tyre meets road, and that
force points backwards (to the rear of the car). In response, there is
a friction force of the road pointing/pushing to the front of the car.
Simplification: no slipping of wheel to road.
Now these two forces are equal (but opposite in direction) when the
wheel is not spinning. So if you add those up, you get a net force of
0, thus no acceleration whatsoever?!
What is wrong with my thinking? Why does the friction force STILL push
the car forward, while there is an equal and opposite force of the
wheel to the rear. (this is the problem that's keeping me from
proceeding at this point)
I need to understand this, because otherwise I don't know where to put
in rolling resistance (which isn't there when the wheel is not on the
surface).
One other thing I can't visualize correctly is this: suppose the car
is on 100% slippery ice. When the car is floating above it, the
rotation acceleration of the wheels is dependent only on the mass of
the wheel itself. When the car is on the ICE itself (although it's
100% frictionless), is the rotation acceleration of the wheel
dependent also on the weight of the car on that wheel? (the normal
force)
What do you think?
I won't need that, because throttle will always be on, so zero rpm
would mean the engine is turned off. Always in gear 1 for now. I
should add a bit of shifting very soon, not counting clutch times yet.
Just to go from neutral to 1 and see the rpm go down and know I'm on
the right track.
>The flaw on this simple model is, that it doesn't take into account internal
>friction of the motor, you'll get no engine breaking. If you don't model
>friction of the drive train, roll-resistance and aerodynamic drag, the
>engine will always accelerate, but never slow down.
Yep, I have some internal friction now, it's just not much, so the
rev-limiter is a must.
>You could add a negative torque depending on the rpm (don't know if linear
>or quadratic), so that for example applying 0% throttle at 5000 rpm yields a
>negative torque.
I do that now: coefficient*rpm = negative torque
Don't know great numbers for 'coefficient' though, and it might have
to be rpm^2, but it works fine for now. Aerodynamic drag is more
important, then rolling resistance, then internal friction actually.
>Another idea would be to define a value depending on rpm, which denotes the
>% of applied throttle to get zero torque (i.e with this throttle value the
>torque of the engine just overcomes its internal friction).
That would probably be VERY little; for example 0.01%. I will just
keep throttle at x% when not pushing the pedal. This is how it works
in my car; the choke (is that the English word too?) you need when the
motor is cold just keeps throttle a bit more open all the time. You
can't have 0 gasoline flowing into the motor without it turning off
(quickly).
...
>But for max revs, I'd think the best would be to simply add a rev limiter.
Yes, that's what Han suggested too. I'll do that.
Yesterday I calculated the max. horsepower from what I thought it was.
Turned out at +/-14.000 rpm you have 340.xx, which when taking Han's
P=2*PI*f*M => 14000/60=233 rps, M=340 (table) => P=2*PI*233*340=497500
(J/s). 1 hp = 746 W so P=667hp. Which seems to reflect an F1's max.
horsepower. So I know it is torque now. The linearly decreasing value
(row 2) is the friction, I believe, which is a seriously flattened
linear curve, so probably quadratic, but very nicely describe
linearly.
So that would mean:
internal_friction = internal_friction_coefficient*rps
I'm using that now. It generates negative torque and looks ok
onscreen.
...
Problem is with assumption I make perhaps. 1 motor currently. Well, in
the design I could have more motors without much change. And a
gearbox. I can have more than 1 reverse gear though :)
See, I want to include 'wings' one day, and have a motor-type that
uses air to go forward. Then you can even build a *plane*!
It's the same principles, so why not.
However, I'm planning to leave the actual carbuilding a bit on the
people that would use the engine. People who have the numbers. Car
creators, so to say. No use in trying to do it all on my own.
...
>Which language are you programming in? I'm using C++ (Borland) and well, as
>I said in the moment I try to get a gripe on Direct 3D.
I'm using C++ (VC5 and MIPSpro on the SGI). Just plain Win32/OpenGL on
the PC. I'm just a *little* concerned for fullscreen later on, for
which I'll use DirectDraw. It seems it's difficult getting a known
OpenGL accelerated view that way. Ah well, that's for later.
>Please note, that I haven't actually tried anything I wrote about, so maybe
>it's just absolute nonsense.
It sounds good though. :)
-------------- Han wrote:
...
>The power-output of the car is given by the formula P = v * F or P = 2*Pi *
>f * M
>where: P = power, v = velocity, F = force, f = frequency (rpm) of the engine
>and M = torque...
>This means that the product 2*pi*f*M will be ten times bigger, too. This can
>mean that when the engine is idle and there is no load, the torque is
>approx. constant and the rpm will be 10 times higher, but as soon as the
>engine is not idle, the load will get bigger as the rpm get higher (more
>friction etc) end so both torque and rpm increase and their product
>increases by that factor of 10.
But when I shift in 4th and stomp on the throttle, the rpm goes only
slowly up, so I use the torque from 0..maxTorque method described
above.
...
>Besides, if the engine revs to high, friction will increase rapidly due to
>high piston speeds and accelerations, thus creating heat which cannot be
>removed quickly enough. Therefore, engines are rev limited.
I'll put a revlimiter on it.
...
Yes, external friction will come very soon. I'm still a bit unclear
about the change in angular momentum of the wheel when floating in air
and when on the ground. (is angular momentum the same as 'moment of
inertia' perhaps? I'll have to read about this again).
>> Eventual goals:
>> - Have a good handling car (system rather, so you can plug in any car
>> you would like; it's the physics that do the tricks) driving around.
>
>I would consider to deal with rolling- and air-resistance first before
>worrying about cornering, weight-transfer etc.
Right. Although weight-transfer is not that difficult (hm?), the
air-resistance thing is the first thing to try. I have some figures in
the foot-pound-second system for a Corvette, with calculcated max
speeds and such, so I could test my physics with those numbers a bit.
The feel is almost more important though. :)
Cornering is for later on; when forces get 2 dimensions.
>> - Once the car is drivable in a physically-correct way, I want to
>> start at some track stuff; my desire is kart tracks for now. Although
>> the car physics is designed to plug into whatever track system would
>> be used.
>
>Sounds good, a bit like WSC.
It should be even more flexible; a physical world into which you can
plug in thingies. So you could go in the direction of Grand Prix
Legends, or Carmaggedon ;-)
Ofcourse I'm pushing for GPL-like stuff. Or rather, Stunt Car Racer
(from Geoff Crammond). I liked that one, and I want to have something
like that in a modern jacket.
>> - Internet play (far away). Basically simple, in practice very tough
>> though because of timing and connection speed issues.
>
>search the net for good code. Better stolen well than designed badly!
That's true ;-) Perhaps I should check DirectPlay. But I want to be
able to play it on my SGI too perhaps (where I don't have DirectX).
And I would be able to test it with the machines I have here at my
desk (2 O2's and a PC). Ah well, future stuff!
...
>I am very curious about the progress and I hope my answers help you to go
>further. Keep us informed!
You've both been very helpful! I have a forward moving car now, lol.
But the system behind it is so ok, that's the beauty.
Thanks,
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Quoted text (7 lines)
>Now you press the throttle at, say 50%. Take half the value of your torque >curve at 1000 rpm. This torque (eventually modified by the gear you are in, >but let's say you have 1:1 ratio) will accelerate the wheels according to >their moment of inertia. (To be correct, there would also be the moment of >inertia of the drive shaft, but...) >a=T/I, a being angular accreleration, T=torque, I=moment of inertia of the >wheels.Quoted text (8 lines)
>F=T/r, F being the force and r the radius of the wheels. This will give you >the acceleration of the car, the new velocity of the car and so the new >angular velocity of the wheels and of the motor. When the wheels are rolling >and not slipping, w=v/r, v is speed of the car. >Of course you need some >auto-declutching, if you're starting from a stand still, or you'll get zero >rpm.Quoted text (12 lines)
>> - When you look at the F1-2K vehicle files, you get lines like: >> rpm_torque=(5000,-47.04,254.15) >> ... >> >> In this list, the 5000 is the rpm, the 2nd number goes up nearly >> linearly from 0@0rpm to -275@19500rpm. The 2nd number goes from 0 to >> +340 at about 13500rpm, then goes down quickly. >> Am I right into thinking that the 2nd nr is friction, or is it power? >> And the 3rd nr seems the torque nr. > >I don't have F1-2K, so I have no idea. But have you tried to change these >values (the more, the better)? This could give you a clue what they mean.Quoted text (7 lines)
>> - Once the car is drivable in a physically-correct way, I want to >> start at some track stuff; my desire is kart tracks for now. Although >> the car physics is designed to plug into whatever track system would >> be used. > >He, he, that would be my dream also. Creating a simulation, that can handle >every car, from my humble Ford Sierra to F1!Quoted text (10 lines)
>> Goal (1st thing): >> - To have a car floating in mid-air which I can give throttle until it >> reaches its peak rpm (because of friction probably). This by passing >> the torque onto the wheels, keeping track of their mass and generating >> angular momentum on the wheels, so it has the right feel. > >Maybe you should model external friction, too, maybe friction for gearbox, >differential etc. modelled by a linear function of engine or wheel rpm. And >maybe you should consider the maximum spark rate as a means of setting a >rev-limit.On Thu, 10 Aug 2000 14:27:47 +0200, Gregor Veble
<[email hidden]> wrote:
They're here! ;-)
Are you sure? It seems like an awful lot of negative torque. To about
-182 at 14.500rpm which would mean:
14500rpm/60s = 242 rps * -182 torque => power=2*PI*242*-182 ~ 276000 ~
370 hp.
So that's 370hp of *engine* friction? It could be, but I would think
engine friction is not that big, so it's not exactly the torque.
(an F1 car has about 700hp of forward power, so just letting go of the
gas at 14500 rpm here would produce almost half of the forward power
as braking power, you state then).
And with Jos' line:
rpm_torque=(10000,-110.20,319.86)
You would have to use 25% throttle to even get above 0 torque, which
is a lot? Or isn't it? Hm.
I'm now interpolating linearly (using throttle 0..1) from
0..maxTorque, where maxTorque is the maximum torque delivered at the
current rpm. Instead of from -frictionTorque..maxTorque.
>My belief is that the sim interpolates between these two values for any
>throttle input. Be aware, though, that the realtion between throttle
>input and torque output is typically nonlinear (I am not sure if most
>sims account for that).
Yes, I've seen the GPL torque graphics and they're flipped quadratic
functions with a limited rpm range. (-c.x^2) Well, not even exactly
perhaps.
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Quoted text (9 lines)
>Ruud van Gaal wrote: >> >> - When you look at the F1-2K vehicle files, you get lines like: >> rpm_torque=(5000,-47.04,254.15) >> ... > >Hi! > >I am glad there are enthusiasts like yourself amongst us!Quoted text (9 lines)
>Now, to the questions about the torque/RPM relationship. This is usually >plotted for MAXIMUM throttle. In F1 2000, you have the following values: > >rpm_torque=(RPM,0 throttle input torque,100% throttle input torque) > >The second value represents the torque generated by the engine when the >foot is off the gas pedal, and this is typically negative due to the >fricition in the engine. The third value is the maximum throttle torque, >which is also usually the maximum torque produced by the engine.Ruud van Gaal wrote:
I do not find the numbers you state unreasonable. With the high reving
engines the friction in the engine can be really high, and you can test
this by stepping off the throttle at really high revs and a low gear -
you might just spin if in a corner. Negative power isn't hard to produce
(it's easy to loose energy), its the positive 700bhp that is impressive.
-Gregor
Quoted text (18 lines)
> > Are you sure? It seems like an awful lot of negative torque. To about > -182 at 14.500rpm which would mean: > > 14500rpm/60s = 242 rps * -182 torque => power=2*PI*242*-182 ~ 276000 ~ > 370 hp. > > So that's 370hp of *engine* friction? It could be, but I would think > engine friction is not that big, so it's not exactly the torque. > (an F1 car has about 700hp of forward power, so just letting go of the > gas at 14500 rpm here would produce almost half of the forward power > as braking power, you state then). > > And with Jos' line: > rpm_torque=(10000,-110.20,319.86) > > You would have to use 25% throttle to even get above 0 torque, which > is a lot? Or isn't it? Hm.Jesper Adolfsson wrote:
That is correct, and I believe modern F1 cars have this well worked out.
But I remember a quote from Millikens' 'Race Car Vehicle Dynamics' how
little thought often goes into actual control characteristics (where
such relatioships are of importance) of some race cars as opposed to the
mechanical attention.
But I'd be surprised if modern F1 car designers wouldn't want to make as
many responses as linear as possible, as that is how drivers can control
the cars best.
-Gregor
Quoted text (13 lines)
> > I once asked a friend of mine who works at the engine development > department at a major Swedish car maker what the relationship between > the throttle and torque is. He said that they could do pretty much as > they wanted because there was no mechanical connection between the pedal > and the engine. In their cars you ordered a specific torque with the > pedal and the engine electronics tried to give you the requested torque. > I guess its similar with F1 cars that they can do as they want. > > I guess this means that you could do as you want in a simulation as long > as you are within the maximum torque for a given rpm. > > /Jesper
"Ruud van Gaal" <[email hidden]> wrote in message
news:[email hidden]...
not
torque
> >the engine can deliver at a certain rpm, i.e. when applying 100%throttle.
> >So the first implementation (although not accurate, but later to that)would
> >be to simply interpolate the torque linearly between zero and the valueof
Nice to hear!
> >Now you press the throttle at, say 50%. Take half the value of yourtorque
> >curve at 1000 rpm. This torque (eventually modified by the gear you arein,
> >but let's say you have 1:1 ratio) will accelerate the wheels according to
> >their moment of inertia. (To be correct, there would also be the momentof
> >inertia of the drive shaft, but...)
> >a=T/I, a being angular accreleration, T=torque, I=moment of inertia ofthe
The moment of inertia is a scalar and it is used in rotation dynamics analog
to the mass in translation mechanics.
For a cylinder of uniform desity, it is given by:
I = (M * R^2)/2
You could refine the model by assuming the wheel is built up of a rim with
mass M1 and radius R1 and of a tire around the rim with mass M2 and radius
R2.
Then the moment of inertia will be:
I = (M1*R1^2)/2 + (M2*(R2^2 - R1^2)/2
In the mechanics course in college, we used the book Analytical Mechanics by
Fowles and Cassiday (Saunders College Publishing). It gives a good overview
of both translation mechanics (including frictions etc) and rotation
mechanics.
> >Using simple Euler integration, you'd get w=w+a*dt. w is the new angular
> >velocity of the wheels and the driveshaft, assuming a 1:1 gear, dt isyour
> >time step. So in the next time step you have a new rpm value.
>
> Ok.
>
> ...
> >If the car is on the ground and there is no slipping of the wheels youneed
STOP!!
that's a classical misundestanding!
The force that the wheel puts to the ground, is acting onto the road. Since
the mass of the road is practically infinite, the road doen't start
accellerating.
By virtue of Newton's 3rd law, the ground gives an equal but opposite force
wich is acting onto the car. Since these two forces are not acting onto the
same object, they cannot cancel out. and the latter causes the acceleration
of the car.
Rolling resistance is mainly caused (AFAIK) by relative motion between the
contact patch of the wheel and the road (ideally, the contactpatch is
infinitesimally small and in rest rel. to the road wheras the uppermost part
of the wheel has twice the speed of the car), by the flexing of the tyres
and by friction in wheel bearings etc.
If it's completely slippery, it won't since the road will not give a force
onto the wheel.
Only, if the wheel is not rigid, it will be deformed by the mass of the car
resting on it. This tire flexing causes extra friction, but I think it can
be neglected for the enormously high tire pressures in racing cars.
For a not totally slippery surface, there is a maximum friction force
between tire and surface. If the wheel gives a force that is smaller, there
will be no slipping, but if the wheel tries to give a bigger force, it can
only put a part of that force (which is equal to the max) onto the road.
Therefore, the wheels start spinning.
The max friction is a function of how fast the contact patch of the wheel
moves relatively to the road. If is doesn't slip, the grip is higher that
when is spins violently.
>
> >F=T/r, F being the force and r the radius of the wheels. This will giveyou
> >the acceleration of the car, the new velocity of the car and so the new
> >angular velocity of the wheels and of the motor. When the wheels arerolling
> >and not slipping, w=v/r, v is speed of the car.
>
> >Of course you need some
> >auto-declutching, if you're starting from a stand still, or you'll getzero
Don't try to do too much simultaniously!
>
> >The flaw on this simple model is, that it doesn't take into accountinternal
linear
> >or quadratic), so that for example applying 0% throttle at 5000 rpmyields a
the
> >% of applied throttle to get zero torque (i.e with this throttle valuethe
limiter.
I think it's a fairly good approx. The McLaren and Ferrari engines are said
to give about 800 hp, the lesser engines 50 to 100 hp less Maybe there is a
factor close to 1 that EA put in to tweak things to get realistic topspeeds
and laptimes
handle
> >every car, from my humble Ford Sierra to F1!
>
> Problem is with assumption I make perhaps. 1 motor currently. Well, in
> the design I could have more motors without much change. And a
> gearbox. I can have more than 1 reverse gear though :)
maybe you could even implement a DAF transmission and model the famous
backwardsriding races with DAF's that were on Dutch TV ten years or so ago.
> See, I want to include 'wings' one day, and have a motor-type that
> uses air to go forward. Then you can even build a *plane*!
> It's the same principles, so why not.
If the physics are right, you could make everything that moves. Just
increase the air-resistance co�fficient and you can make a powerboat.
However, the more assumptions and simplifications are mad, the less flexible
the model will be.
> However, I'm planning to leave the actual carbuilding a bit on the
> people that would use the engine. People who have the numbers. Car
> creators, so to say. No use in trying to do it all on my own.
>
> ...
> >Which language are you programming in? I'm using C++ (Borland) and well,as
maybe
2*Pi *
> >f * M
> >where: P = power, v = velocity, F = force, f = frequency (rpm) of theengine
> >and M = torque
> ...
> >This means that the product 2*pi*f*M will be ten times bigger, too. Thiscan
just a experiment of thought:
suppose you are doing a constant rev (say 1000 rpm) at say 10% throttle.
This means (rpm vs torque table) the engine delivers say 1000 Nm torque
Then you increase the throttle to 20%. At t = 0, revs are still 1000 rpm due
to inertia. But torque will be 2000 Nm (since rpm * torque is twice as high
at 20% throittle). friction is still 1000 Nm (same revs), thus the 1000 Nm
excess give a angular accelleration, say 1000 rpm per sec.
At t = 0,1 s. the revs are 1100 rpm, thus the torque is (1000*2000)/1100 =
1820 Nm (keeping rpm * torque constant). Friction has gone to 1100 (linear
with rpm) so there is now only 720 Nm in excess, giving a acc. of 720 rpm/s
at t = 0,2 s. the revs are 1172 rpm, the torque is (1000*2000)/1172 = 1710
Nm, the friction is 1172 Nm, acc = 548 rpm/s
at t = 0,3 s the revs are 1227 rpm, torque = 1630 Nm, friction = 1227 Nm,
acc = 403 rpm/s
at t = 0,3 s the revs are 1267 rpm, torque = 1580 Nm, friction = 1267 Nm,
acc = 313 rpm/s
etc.
eventually, the torque will again equal the friction and the engine revs at
higher revs. (1400 rpm (=1000 * sqrt(2)))
I think you will need higher sample rate, but this can be the principle
>
> ...
> >Besides, if the engine revs to high, friction will increase rapidly dueto
gearbox,
> >differential etc. modelled by a linear function of engine or wheel rpm.And
Angular momentum is momentum of ineria * angular speed
analogue to linear momentum is mass * velocity
actually, the equaltions for rotations are completely analogue to Newton's
2nd law
momentum is analoguee to angular momentum
force is analogue to torque
velocity is analogue to angular speed (= frequency *2Pi)
mass is analogue to moment of inertia.
If you also design a 3d-format for cars and tracks, anyone could add any
kind of racing. Hopefully, someone will at last do the late 70s/early 80s
F1-stuff where I am dreaming of since the arrival of GPL. Why did they
choose 1967??? If they had done 1977/78 it would feature some of the most
beautiful F1-cars. Tyrrell 6-wheeler, Lotus ground effect car, Brabham
fan-car and mostly the Ferrari 312T3!
Quoted text (11 lines)
> On Wed, 09 Aug 2000 21:34:24 GMT, "Peter Prochazka" > <[email hidden]> wrote: > > ... > > Hi Peter & Han, > > ... > >Cool, I also want to try this, but first I'm delving in the secrets of > >Direct3D to create a simple 3D engine. Maybe my thoughts on this issue > >could help a little bit (although there still are a couple of things I'mQuoted text (8 lines)
> >sure about). > > Any help is appreciated. BTW I find OpenGL is much easier to jump in > than D3D, but that's personal. In the end, for a car simulation, the > graphics API is secondary. > > ... > >My understanding of torque curves is, that they give you the maximumQuoted text (29 lines)
> >the torque curve. > > As Han said, the power output = 2*PI*f*M (f=frequency aka rpm, > although you should use rps ofcourse, and M=torque). > I'm now using indeed torque ranging from 0 to maxTorque (maxTorque is > derived from the rpm, although I use a constant for the time being). > Linearly interpolated. > > >So your car hangs in the air, reving at 1000 rpm, no throttle = no torque > >delivered to the wheels = no acceleration of the wheels. > > Actually, I'm not going to do it like that. Because it is revving at > 1000 rpm, there is a torque still. If I start my car, and just push it > in 1st without clutching, it will roll forward. So there is torque, > even when not *PUSHING* throttle. > The idle state of the machine is more of a 'throttle at 5%' state. > Which keeps the engine going. Otherwise it would stop. > So from neutral to 1st gear, there would be immediate torque set to > the wheels (like in real life). The internal friction is related to > the rpm, so with little rpm (idle), the need for at least x% throttle > before even the *torque* becomes >0 is not there. I mean the internal > friction is never that big when idle so you really first have to give > 10% throttle to surpass that and that the crankshaft torque becomes > >0. > The internal friction *is* deducted from the crankshaft torque though > (I'm doing that already), related to rpm. > So the net torque may be <0 if the throttle is only at 10% but the > engine's rpm is 10.000, for example. That's working now. >Quoted text (10 lines)
> >wheels. > > Gosh, I'm reading up on so many things; moment of intertia for a wheel > is that: > - a scalar? or a vector? (I think a scalar) > - could it be L=2*PI*M*R^2 where L=moment of intertia, M=wheel mass, > R=radius of wheel? > - or otherwise how do you calculate the moment of intertia of the > wheels; is it constant or variable? >Quoted text (10 lines)
> >to compute the force, which the wheels are exerting at the contact patch. > > Yes, I have a big understanding problem there. > The wheel puts a force on the ground, where tyre meets road, and that > force points backwards (to the rear of the car). In response, there is > a friction force of the road pointing/pushing to the front of the car. > Simplification: no slipping of wheel to road. > Now these two forces are equal (but opposite in direction) when the > wheel is not spinning. So if you add those up, you get a net force of > 0, thus no acceleration whatsoever?!Quoted text (8 lines)
> What is wrong with my thinking? Why does the friction force STILL push > the car forward, while there is an equal and opposite force of the > wheel to the rear. (this is the problem that's keeping me from > proceeding at this point) > I need to understand this, because otherwise I don't know where to put > in rolling resistance (which isn't there when the wheel is not on the > surface). >Quoted text (8 lines)
> One other thing I can't visualize correctly is this: suppose the car > is on 100% slippery ice. When the car is floating above it, the > rotation acceleration of the wheels is dependent only on the mass of > the wheel itself. When the car is on the ICE itself (although it's > 100% frictionless), is the rotation acceleration of the wheel > dependent also on the weight of the car on that wheel? (the normal > force) > What do you think?Quoted text (7 lines)
> >rpm. > > I won't need that, because throttle will always be on, so zero rpm > would mean the engine is turned off. Always in gear 1 for now. I > should add a bit of shifting very soon, not counting clutch times yet. > Just to go from neutral to 1 and see the rpm go down and know I'm on > the right track.Quoted text (8 lines)
> >friction of the motor, you'll get no engine breaking. If you don't model > >friction of the drive train, roll-resistance and aerodynamic drag, the > >engine will always accelerate, but never slow down. > > Yep, I have some internal friction now, it's just not much, so the > rev-limiter is a must. > > >You could add a negative torque depending on the rpm (don't know ifQuoted text (8 lines)
> >negative torque. > > I do that now: coefficient*rpm = negative torque > Don't know great numbers for 'coefficient' though, and it might have > to be rpm^2, but it works fine for now. Aerodynamic drag is more > important, then rolling resistance, then internal friction actually. > > >Another idea would be to define a value depending on rpm, which denotesQuoted text (11 lines)
> >torque of the engine just overcomes its internal friction). > > That would probably be VERY little; for example 0.01%. I will just > keep throttle at x% when not pushing the pedal. This is how it works > in my car; the choke (is that the English word too?) you need when the > motor is cold just keeps throttle a bit more open all the time. You > can't have 0 gasoline flowing into the motor without it turning off > (quickly). > > ... > >But for max revs, I'd think the best would be to simply add a revQuoted text (20 lines)
> > Yes, that's what Han suggested too. I'll do that. > > >> - When you look at the F1-2K vehicle files, you get lines like: > >> rpm_torque=(5000,-47.04,254.15) > >> ... > >> > >> In this list, the 5000 is the rpm, the 2nd number goes up nearly > >> linearly from 0@0rpm to -275@19500rpm. The 2nd number goes from 0 to > >> +340 at about 13500rpm, then goes down quickly. > >> Am I right into thinking that the 2nd nr is friction, or is it power? > >> And the 3rd nr seems the torque nr. > > > >I don't have F1-2K, so I have no idea. But have you tried to change these > >values (the more, the better)? This could give you a clue what they mean. > > Yesterday I calculated the max. horsepower from what I thought it was. > Turned out at +/-14.000 rpm you have 340.xx, which when taking Han's > P=2*PI*f*M => 14000/60=233 rps, M=340 (table) => P=2*PI*233*340=497500 > (J/s). 1 hp = 746 W so P=667hp. Which seems to reflect an F1's max.Quoted text (17 lines)
> horsepower. So I know it is torque now. The linearly decreasing value > (row 2) is the friction, I believe, which is a seriously flattened > linear curve, so probably quadratic, but very nicely describe > linearly. > So that would mean: > internal_friction = internal_friction_coefficient*rps > > I'm using that now. It generates negative torque and looks ok > onscreen. > > ... > >> - Once the car is drivable in a physically-correct way, I want to > >> start at some track stuff; my desire is kart tracks for now. Although > >> the car physics is designed to plug into whatever track system would > >> be used. > > > >He, he, that would be my dream also. Creating a simulation, that canQuoted text (8 lines)
> >I said in the moment I try to get a gripe on Direct 3D. > > I'm using C++ (VC5 and MIPSpro on the SGI). Just plain Win32/OpenGL on > the PC. I'm just a *little* concerned for fullscreen later on, for > which I'll use DirectDraw. It seems it's difficult getting a known > OpenGL accelerated view that way. Ah well, that's for later. > > >Please note, that I haven't actually tried anything I wrote about, soQuoted text (8 lines)
> >it's just absolute nonsense. > > It sounds good though. :) > > -------------- Han wrote: > > ... > >The power-output of the car is given by the formula P = v * F or P =Quoted text (9 lines)
> >mean that when the engine is idle and there is no load, the torque is > >approx. constant and the rpm will be 10 times higher, but as soon as the > >engine is not idle, the load will get bigger as the rpm get higher (more > >friction etc) end so both torque and rpm increase and their product > >increases by that factor of 10. > > But when I shift in 4th and stomp on the throttle, the rpm goes only > slowly up, so I use the torque from 0..maxTorque method described > above.Quoted text (13 lines)
> >high piston speeds and accelerations, thus creating heat which cannot be > >removed quickly enough. Therefore, engines are rev limited. > > I'll put a revlimiter on it. > > ... > >> Goal (1st thing): > >> - To have a car floating in mid-air which I can give throttle until it > >> reaches its peak rpm (because of friction probably). This by passing > >> the torque onto the wheels, keeping track of their mass and generating > >> angular momentum on the wheels, so it has the right feel. > > > >Maybe you should model external friction, too, maybe friction forQuoted text (7 lines)
> >maybe you should consider the maximum spark rate as a means of setting a > >rev-limit. > > Yes, external friction will come very soon. I'm still a bit unclear > about the change in angular momentum of the wheel when floating in air > and when on the ground. (is angular momentum the same as 'moment of > inertia' perhaps? I'll have to read about this again).Quoted text (28 lines)
> > >> Eventual goals: > >> - Have a good handling car (system rather, so you can plug in any car > >> you would like; it's the physics that do the tricks) driving around. > > > >I would consider to deal with rolling- and air-resistance first before > >worrying about cornering, weight-transfer etc. > > Right. Although weight-transfer is not that difficult (hm?), the > air-resistance thing is the first thing to try. I have some figures in > the foot-pound-second system for a Corvette, with calculcated max > speeds and such, so I could test my physics with those numbers a bit. > The feel is almost more important though. :) > Cornering is for later on; when forces get 2 dimensions. > > >> - Once the car is drivable in a physically-correct way, I want to > >> start at some track stuff; my desire is kart tracks for now. Although > >> the car physics is designed to plug into whatever track system would > >> be used. > > > >Sounds good, a bit like WSC. > > It should be even more flexible; a physical world into which you can > plug in thingies. So you could go in the direction of Grand Prix > Legends, or Carmaggedon ;-) > Ofcourse I'm pushing for GPL-like stuff. Or rather, Stunt Car Racer > (from Geoff Crammond). I liked that one, and I want to have something > like that in a modern jacket.Quoted text (23 lines)
> > >> - Internet play (far away). Basically simple, in practice very tough > >> though because of timing and connection speed issues. > > > >search the net for good code. Better stolen well than designed badly! > > That's true ;-) Perhaps I should check DirectPlay. But I want to be > able to play it on my SGI too perhaps (where I don't have DirectX). > And I would be able to test it with the machines I have here at my > desk (2 O2's and a PC). Ah well, future stuff! > > ... > >I am very curious about the progress and I hope my answers help you to go > >further. Keep us informed! > > You've both been very helpful! I have a forward moving car now, lol. > But the system behind it is so ok, that's the beauty. > > Thanks, > > Ruud van Gaal, GPL Rank +53.53 > MarketGraph / MachTech: http://www.marketgraph.nl > Pencil art: http://www.marketgraph.nl/gallery[email hidden] (Ruud van Gaal) writes:
[snip]
> Actually, I'm not going to do it like that. Because it is revving at
> 1000 rpm, there is a torque still. If I start my car, and just push it
> in 1st without clutching, it will roll forward. So there is torque,
> even when not *PUSHING* throttle.
If the engine was generating net torque in neutral, it would
accelerate (i.e. increase revs). When in idle the torque generated
by the engine is exactly matched by the internal friction. The
effect you noticed is due to the rotational momentum of the engine
and the flywheel. (An engine may actually produce more net power at
lower revs with the same throttle position which makes it pull if
you ease up the clutch without throttle added, but if you just crash
it into gear, the main effect is due to momentum.)
> >Besides, if the engine revs to high, friction will increase rapidly due to
> >high piston speeds and accelerations, thus creating heat which cannot be
> >removed quickly enough. Therefore, engines are rev limited.
The main reason for the rev limit usually is that the engine internals
can only handle a finite amount of forces, and these forces increase
with rpm. (The forces are not only due to the power generated by the
engine but also to the mass of the rotating parts.)
Most engines will rev above the red line easily. On your standard car
the result may only be valve float which is bad enough if you don't
let go of the throttle, but on a racing engine the result is likely
to be something really bad like a broken conrod making a hole through
the side of the engine.
_
Mats Lofkvist
[email hidden]
On Thu, 10 Aug 2000 16:38:10 +0200, Gregor Veble
<[email hidden]> wrote:
...
>I do not find the numbers you state unreasonable. With the high reving
>engines the friction in the engine can be really high, and you can test
>this by stepping off the throttle at really high revs and a low gear -
>you might just spin if in a corner. Negative power isn't hard to produce
>(it's easy to loose energy), its the positive 700bhp that is impressive.
The spinning thing is very true. I'll test how it behaves during the
weekend perhaps. Haven't got a lot of spare time until next week.
Thanks for the fresh look.
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Quoted text (10 lines)
>Ruud van Gaal wrote: >> >> Are you sure? It seems like an awful lot of negative torque. To about >> -182 at 14.500rpm which would mean: >> >> 14500rpm/60s = 242 rps * -182 torque => power=2*PI*242*-182 ~ 276000 ~ >> 370 hp. >> >> So that's 370hp of *engine* friction? It could be, but I would think >> engine friction is not that big, so it's not exactly the torque.
Ruud van Gaal <[email hidden]> schrieb
> Any help is appreciated. BTW I find OpenGL is much easier to jump in
> than D3D, but that's personal. In the end, for a car simulation, the
> graphics API is secondary.
That's right, as long as you get a 3D pic on the screen, somehow...
<snip things about throttle, rpm and internal friction...>
Fine, that you've sorted these things, my "model" just didn't take into
account, that the engine produces torque at zero throttle.
In fact, the moment of inertia is a tensor (3x3 matrix), the angular
velocity and angular acceleration are vectors (as is the torque).
It acts the same way as the mass, when you have F=m*a.
With a rotation you have T=I*a, or a=I^-1*T.
If you have a wheel and apply the torque only in direction of the axis, you
can reduce this to a scalar equation, because a lot of coefficients become
zero. If you'd let your wheel jump around freely, you'd need the vector
equation to calculate things like tumbling, precession etc.
For a wheel (cylinder with even density) the moment of inertia (or better
the coefficient of the tensor you need) should be (M*R^2)/2. (I say
"should", because I've calculated it in my head right now, so I wouldn't put
my hand in the fire for it :-)) Anyway, as long as you don't change the mass
or the radius of the wheel, it is constant.
<snip>
> >If the car is on the ground and there is no slipping of the wheels youneed
The forces don't cancel each other out, because one is exerted on the
ground, the other on the wheel. The torque transmits this force to the axle
and from there via the bearing onto the chassis. So the force, that pushes
the car forward is the same as the wheel exerts onto the ground (only in
opposite direction).
To be exact, you'd also take into account the moment of inertia of the
wheel, which will be accelerated as well. This should diminish the effective
torque a little bit, but I haven't figured out, how to do this myself yet.
If it's really 100% frictionless, it would be the same case as the car
floating in the air, so no. But even wet ice is not 100% frictionless, so in
reality it will depend on the weight of the car on this wheel.
<snipped a lot>
> Problem is with assumption I make perhaps. 1 motor currently. Well, in
> the design I could have more motors without much change. And a
> gearbox. I can have more than 1 reverse gear though :)
> See, I want to include 'wings' one day, and have a motor-type that
> uses air to go forward. Then you can even build a *plane*!
> It's the same principles, so why not.
The only problem is, that it isn't possible to calculate the airflow in real
time, so modeling winds, ground effect, dirty air etc. will always be a
hack. I've even thought of building a virtual wind tunnel some time, which
produces a bunch of data for the simulation in advance, but well...
> However, I'm planning to leave the actual carbuilding a bit on the
> people that would use the engine. People who have the numbers. Car
> creators, so to say. No use in trying to do it all on my own.
Yes, that's a problem, coming up with accurate data of various cars.
<snipped the rest>
Good luck!
Peter
Quoted text (7 lines)
> Gosh, I'm reading up on so many things; moment of intertia for a wheel > is that: > - a scalar? or a vector? (I think a scalar) > - could it be L=2*PI*M*R^2 where L=moment of intertia, M=wheel mass, > R=radius of wheel? > - or otherwise how do you calculate the moment of intertia of the > wheels; is it constant or variable?Quoted text (17 lines)
> >to compute the force, which the wheels are exerting at the contact patch. > > Yes, I have a big understanding problem there. > The wheel puts a force on the ground, where tyre meets road, and that > force points backwards (to the rear of the car). In response, there is > a friction force of the road pointing/pushing to the front of the car. > Simplification: no slipping of wheel to road. > Now these two forces are equal (but opposite in direction) when the > wheel is not spinning. So if you add those up, you get a net force of > 0, thus no acceleration whatsoever?! > What is wrong with my thinking? Why does the friction force STILL push > the car forward, while there is an equal and opposite force of the > wheel to the rear. (this is the problem that's keeping me from > proceeding at this point) > I need to understand this, because otherwise I don't know where to put > in rolling resistance (which isn't there when the wheel is not on the > surface).Quoted text (8 lines)
> One other thing I can't visualize correctly is this: suppose the car > is on 100% slippery ice. When the car is floating above it, the > rotation acceleration of the wheels is dependent only on the mass of > the wheel itself. When the car is on the ICE itself (although it's > 100% frictionless), is the rotation acceleration of the wheel > dependent also on the weight of the car on that wheel? (the normal > force) > What do you think?Hi Ruud,
The post did't make it the first time, i guess it was too long.
After some cutting the second try!
analog
radius
by
> Fowles and Cassiday (Saunders College Publishing). It gives a goodoverview
Since
> the mass of the road is practically infinite, the road doen't start
> accellerating.
> By virtue of Newton's 3rd law, the ground gives an equal but oppositeforce
> wich is acting onto the car. Since these two forces are not acting ontothe
> same object, they cannot cancel out. and the latter causes theacceleration
part
car
> resting on it. This tire flexing causes extra friction, but I think it can
> be neglected for the enormously high tire pressures in racing cars.
>
> For a not totally slippery surface, there is a maximum friction force
> between tire and surface. If the wheel gives a force that is smaller,there
said
> to give about 800 hp, the lesser engines 50 to 100 hp less Maybe there isa
> factor close to 1 that EA put in to tweak things to get realistictopspeeds
ago.
flexible
due
> to inertia. But torque will be 2000 Nm (since rpm * torque is twice ashigh
> at 20% throittle). friction is still 1000 Nm (same revs), thus the 1000 Nm
> excess give a angular accelleration, say 1000 rpm per sec.
>
> At t = 0,1 s. the revs are 1100 rpm, thus the torque is (1000*2000)/1100 =
> 1820 Nm (keeping rpm * torque constant). Friction has gone to 1100 (linear
> with rpm) so there is now only 720 Nm in excess, giving a acc. of 720rpm/s
at
Quoted text (10 lines)
> > Gosh, I'm reading up on so many things; moment of intertia for a wheel > > is that: > > - a scalar? or a vector? (I think a scalar) > > - could it be L=2*PI*M*R^2 where L=moment of intertia, M=wheel mass, > > R=radius of wheel? > > - or otherwise how do you calculate the moment of intertia of the > > wheels; is it constant or variable? > > > > The moment of inertia is a scalar and it is used in rotation dynamicsQuoted text (7 lines)
> to the mass in translation mechanics. > For a cylinder of uniform desity, it is given by: > > I = (M * R^2)/2 > > You could refine the model by assuming the wheel is built up of a rim with > mass M1 and radius R1 and of a tire around the rim with mass M2 andQuoted text (7 lines)
> R2. > > Then the moment of inertia will be: > > I = (M1*R1^2)/2 + (M2*(R2^2 - R1^2)/2 > > In the mechanics course in college, we used the book Analytical MechanicsQuoted text (18 lines)
> of both translation mechanics (including frictions etc) and rotation > mechanics. > > > > > Yes, I have a big understanding problem there. > > The wheel puts a force on the ground, where tyre meets road, and that > > force points backwards (to the rear of the car). In response, there is > > a friction force of the road pointing/pushing to the front of the car. > > Simplification: no slipping of wheel to road. > > Now these two forces are equal (but opposite in direction) when the > > wheel is not spinning. So if you add those up, you get a net force of > > 0, thus no acceleration whatsoever?! > > STOP!! > > that's a classical misundestanding! > > The force that the wheel puts to the ground, is acting onto the road.Quoted text (15 lines)
> of the car. > > > > What is wrong with my thinking? Why does the friction force STILL push > > the car forward, while there is an equal and opposite force of the > > wheel to the rear. (this is the problem that's keeping me from > > proceeding at this point) > > I need to understand this, because otherwise I don't know where to put > > in rolling resistance (which isn't there when the wheel is not on the > > surface). > > > > Rolling resistance is mainly caused (AFAIK) by relative motion between the > contact patch of the wheel and the road (ideally, the contactpatch is > infinitesimally small and in rest rel. to the road wheras the uppermostQuoted text (15 lines)
> of the wheel has twice the speed of the car), by the flexing of the tyres > and by friction in wheel bearings etc. > > > One other thing I can't visualize correctly is this: suppose the car > > is on 100% slippery ice. When the car is floating above it, the > > rotation acceleration of the wheels is dependent only on the mass of > > the wheel itself. When the car is on the ICE itself (although it's > > 100% frictionless), is the rotation acceleration of the wheel > > dependent also on the weight of the car on that wheel? (the normal > > force) > > What do you think? > > If it's completely slippery, it won't since the road will not give a force > onto the wheel. > Only, if the wheel is not rigid, it will be deformed by the mass of theQuoted text (17 lines)
> will be no slipping, but if the wheel tries to give a bigger force, it can > only put a part of that force (which is equal to the max) onto the road. > Therefore, the wheels start spinning. > > The max friction is a function of how fast the contact patch of the wheel > moves relatively to the road. If is doesn't slip, the grip is higher that > when is spins violently. > > > > > > > Yesterday I calculated the max. horsepower from what I thought it was. > > Turned out at +/-14.000 rpm you have 340.xx, which when taking Han's > > P=2*PI*f*M => 14000/60=233 rps, M=340 (table) => P=2*PI*233*340=497500 > > (J/s). 1 hp = 746 W so P=667hp. Which seems to reflect an F1's max. > > > I think it's a fairly good approx. The McLaren and Ferrari engines areQuoted text (8 lines)
> and laptimes > > > Problem is with assumption I make perhaps. 1 motor currently. Well, in > > the design I could have more motors without much change. And a > > gearbox. I can have more than 1 reverse gear though :) > > maybe you could even implement a DAF transmission and model the famous > backwardsriding races with DAF's that were on Dutch TV ten years or soQuoted text (8 lines)
> > > See, I want to include 'wings' one day, and have a motor-type that > > uses air to go forward. Then you can even build a *plane*! > > It's the same principles, so why not. > > If the physics are right, you could make everything that moves. Just > increase the air-resistance co�fficient and you can make a powerboat. > However, the more assumptions and simplifications are mad, the lessQuoted text (12 lines)
> the model will be. > > > > > But when I shift in 4th and stomp on the throttle, the rpm goes only > > slowly up, so I use the torque from 0..maxTorque method described > > above. > > just a experiment of thought: > > suppose you are doing a constant rev (say 1000 rpm) at say 10% throttle. > This means (rpm vs torque table) the engine delivers say 1000 Nm torque > Then you increase the throttle to 20%. At t = 0, revs are still 1000 rpmQuoted text (13 lines)
> > at t = 0,2 s. the revs are 1172 rpm, the torque is (1000*2000)/1172 = 1710 > Nm, the friction is 1172 Nm, acc = 548 rpm/s > > at t = 0,3 s the revs are 1227 rpm, torque = 1630 Nm, friction = 1227 Nm, > acc = 403 rpm/s > > at t = 0,3 s the revs are 1267 rpm, torque = 1580 Nm, friction = 1267 Nm, > acc = 313 rpm/s > > etc. > > eventually, the torque will again equal the friction and the engine revsQuoted text (37 lines)
> higher revs. (1400 rpm (=1000 * sqrt(2))) > > I think you will need higher sample rate, but this can be the principle > > > Yes, external friction will come very soon. I'm still a bit unclear > > about the change in angular momentum of the wheel when floating in air > > and when on the ground. (is angular momentum the same as 'moment of > > inertia' perhaps? I'll have to read about this again). > > Angular momentum is momentum of ineria * angular speed > > analogue to linear momentum is mass * velocity > > actually, the equaltions for rotations are completely analogue to Newton's > 2nd law > > momentum is analoguee to angular momentum > force is analogue to torque > velocity is analogue to angular speed (= frequency *2Pi) > mass is analogue to moment of inertia. > > > > > It should be even more flexible; a physical world into which you can > > plug in thingies. So you could go in the direction of Grand Prix > > Legends, or Carmaggedon ;-) > > Ofcourse I'm pushing for GPL-like stuff. Or rather, Stunt Car Racer > > (from Geoff Crammond). I liked that one, and I want to have something > > like that in a modern jacket. > > If you also design a 3d-format for cars and tracks, anyone could add any > kind of racing. Hopefully, someone will at last do the late 70s/early 80s > F1-stuff where I am dreaming of since the arrival of GPL. Why did they > choose 1967??? If they had done 1977/78 it would feature some of the most > beautiful F1-cars. Tyrrell 6-wheeler, Lotus ground effect car, Brabham > fan-car and mostly the Ferrari 312T3! > > >>>To be exact, you'd also take into account the moment of inertia of the
>>wheel, which will be accelerated as well. This should diminish the effective
>>torque a little bit, but I haven't figured out, how to do this myself yet.
>
>I've thought about this too, yes, but haven't tried any formulas or
>pictures yet. But was wondering about that too.
I had the same problem in developing Straightline Acceleration Simulator. What
worked well was using a sort of internal/reiterative loop. As the car
accelerated, it would calculate how much torque was required to accelerate the
drivetrain to match. This was subtracted from the engine torque right off the
bat, then the car was accelerated using the leftover force.
Of course, this isn't right, because now that the car won't be accelerating
as quickly as originally calculated, the wheel wouldn't accelerate as quickly.
Now we'll use less torque at the wheel and there's more force available to
accelerate the car, which changes the wheel acceleration.... Back and forth and
back and forth, but closer and closer to the right answer. Once it got off the
starting line, it ended up converging where it should and things were fine.
To fix the problem, it sits inside a cycle recalculating everything until it
reaches something like a 1% error or better, then it advances the time step and
moves the car. Under most circumstances, this would only take maybe 3
iterations or so right at the starting line, and then it wouldn't enter the
loop any more.
If you are simulating tires the way you've been speaking of, rather than
going with slip ratios as I mentioned in a previous post, I recommend doing
this:
1. How much torque is at the wheel right now? (from engine torque, gear
ratio, and tire radius)
2. How quickly will the vehicle accelerate with this amount of torque?
(Torque/Polar moment of inertia of wheel)
3. At this acceleration, how quickly will the tires accelerate (rotational)?
4. How much torque is required to accelerate the wheel at this rate?
5. How much force is this? (In the fore/aft direction, to accelerate the car)
6. Subtract this force from the original force.
7. Accelerate the car with this new force.
That's basically it. For it to really be correct, you'd need to reiterate
this a couple of times until the force in step 7 was stopped changing. I
recommend not worrying about reiterating the loop for now and just go through
this one time. Once the car's rolling, it works out as long as there's no
sudden, massive changes in torque at a new rpm.
Todd Wasson
Performance Simulations
Drag Racing and Top Speed Prediction
Software
http://PerformanceSimulations.Com
Ruud,
Thank you for the F-1 2000 file. These are two graphs of torque and power
and 10 different throttle settings, using the algorithm from the other post.
I'll email them directly to you if you'd like as well.
http://PerformanceSimulations.Com/partthrottle.htm
Thanks for the file.
Todd Wasson
Performance Simulations
Drag Racing and Top Speed Prediction
Software
http://PerformanceSimulations.Com
"Gregor Veble" <[email hidden]> wrote in message
news:[email hidden]...
> Stephen Ferguson wrote:
> >
> > Williams had a CVT (continuously variable transmission) version of theFW12
> > in development and on the track in early 1993 before the FIA re-wrotethe
> > rule books. Man, they take away all the fun. Imagine if Williams hadbeen
> > able to fully develop their 6-wheel car (4 back wheels for bettertraction)
IIRC, there was one problem, however. The transmission allowed the engine
to run at peak power for a much greater percentage of the time than a
conventional one. Getting decent engine reliability for full race distance
was a non-trivial task....
Ian
Ian Riches
Bedford, UK
Quoted text (8 lines)
> > and a CVT. Fun fun fun. > > > > Stephen > > And, in fact, a young driver named D.C. was about two seconds per lap > faster with this transmission that with the standard one. > > -Gregor"Gregor Veble" <[email hidden]> wrote in message
news:[email hidden]...
> Ian Riches wrote:
> >
> > IIRC, there was one problem, however. The transmission allowed theengine
> > to run at peak power for a much greater percentage of the time than a
> > conventional one. Getting decent engine reliability for full racedistance
I was at a press conference where they were talking about it. I do remember
the guy from Renault saying that the transmission was giving them a few
"headaches". I think that was the word he used :-)
As you state, I'm sure they could have got round it had the rules not have
been changed.
Ian
Ian Riches
Bedford, UK
Quoted text (15 lines)
> > was a non-trivial task.... > > > > Ian > > > > Ian Riches > > Bedford, UK > > That is most probably true. But then you do not need to run the engine > at maximum power all the time. You can decrease the revs at which the > engine may constantly run, but still have a higher power average over > time. The engine design would also be well simplified, as driveability > (the power or torque spread) would not be important anymore, as it would > always be possible to keep the revs where you want them to be. > > -GregorQuoted text (7 lines)
>>To be exact, you'd also take into account the moment of inertia of the >>wheel, which will be accelerated as well. This should diminish the effective >>torque a little bit, but I haven't figured out, how to do this myself yet. > >I've thought about this too, yes, but haven't tried any formulas or >pictures yet. But was wondering about that too. >>>The max friction is a function of how fast the contact patch of the wheel
>>moves relatively to the road. If is doesn't slip, the grip is higher that
>>when is spins violently.
>
>Yep, I have that (well, I know that, haven't applied it in source).
>Static friction and kinetic friction. Know how to apply it.
When dealing with car tires, I'd abandon the whole concept of static vs.
kinetic friction. When a driving torque is applied to a wheel, the rim of the
tire will spin at a different rate than the tire would if it was rolling
freely. Part of the contact patch is always slipping in this condition, and is
therefore operating more or less under kinetic friction rules, while the other
part of the contact patch is static. There really isn't a sudden cut off point
between the two. Tire data (if you choose to utilize real test data in your
model) is recorded in terms of slip ratio and slip angle.
<Snip part about engine in F-1 2000 not showing as much power as real F-1 cars>
This MAY be caused by measuring torque/power at the driving wheels instead of
at the flywheel. This can cause losses in some automatic transmissions of 70
foot-lbs of torque or more. An F-1 transmission probably is more efficient.
I'd guess they lose around 25-50 foot-lbs. At 14,000 rpm, that'd be 65-133 hp.
>My sample rate is currently the actual time taken from the last frame
>(of 3D output).
Sorry for unsolicited advice here: Think about increasing the sampling rate.
I set up a loop for the physics engine in my program. The screen gets drawn,
then the engine runs 166 to 333 times depending on which computer I'm using (I
set this intentionally different on both systems). You can still measure the
time taken between graphics frames and calculate the time step before the
physics part, so you'll get real time either way.
The problem with low sampling rates will come in tire stability. If you do
end up switching and modeling longitudinal forces from tire slip ratios, you
can get unstable tires (especially at low speed with the brakes engaged), and
less precision/accuracy in the motion of the rest of the sim.
Just a thought.
Todd Wasson
Performance Simulations
Drag Racing and Top Speed Prediction
Software
http://PerformanceSimulations.Com
>What's the difference between hp and bhp by the way? The internal
>engine friction?
No difference really. Bhp is useable power at the flywheel or driving wheels
(measured, usually, so friction is already included). Hp can technically be
measured anywhere. You could subtract frictional power from brake horsepower
to get indicated power, and quote the result as Hp or IHp. I wouldn't worry
about it, though. You're unlikely to ever run across an indicated horsepower
curve. If you do, it will say it's indicated. This is usually used when
measuring/predicting engine operating conditions where you don't want friction
to be included.
Todd Wasson
Performance Simulations
Drag Racing and Top Speed Prediction
Software
http://PerformanceSimulations.Com
"Han Monsees" <[email hidden]> wrote in message
news:8n0srk$4la$[email hidden]...
> > ...
> > >> Problem is with assumption I make perhaps. 1 motor currently. Well,in
the
> engine-axis, one on the drive-train axis, with a belt between them
> transmitting the force. At low speed, the belt was located on the smallside
> of the motor-cone and on the broad side side of the other cone, so the
> engine revs were much higher than the wheel-revs. If you accelerated, the
> belt was shifted to the broad side of the cone on the engine-side and tothe
> small side of the cone on the wheel-side. Therefore, the engine-revs
> remained in the ideal range while the wheels turned faster and faster.
>
> Using this system, any gear-ratio was possible just by shifting the belt
> (which was done automatically, by the way)
>
Williams had a CVT (continuously variable transmission) version of the FW12
in development and on the track in early 1993 before the FIA re-wrote the
rule books. Man, they take away all the fun. Imagine if Williams had been
able to fully develop their 6-wheel car (4 back wheels for better traction)
and a CVT. Fun fun fun.
Stephen
Quoted text (11 lines)
> > >> the design I could have more motors without much change. And a > > >> gearbox. I can have more than 1 reverse gear though :) > > > > > >maybe you could even implement a DAF transmission and model the famous > > >backwardsriding races with DAF's that were on Dutch TV ten years or so > ago. > > > > How does a DAF transmission work then that is different from a regular > > one? > > DAF built a continuous transmission. It consisted of two cones, one oneOn 10 Aug 2000 17:55:04 GMT, [email hidden] (JTW62074) wrote:
>>So that's 370hp of *engine* friction? It could be, but I would think
>>engine friction is not that big, so it's not exactly the torque.
>
> Not dealing with engine friction here. This is mostly from negative work
>produced in the cylinders as they're trying to suck air through throttles that
>don't allow it.
That sounds more intuitive, thanks.
One day I'll step into the energy thing of this and see how much heat
is generated.
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
On Thu, 10 Aug 2000 16:10:06 GMT, "Peter Prochazka"
<[email hidden]> wrote:
>
>Ruud van Gaal <[email hidden]> schrieb
>...
>For a wheel (cylinder with even density) the moment of inertia (or better
>the coefficient of the tensor you need) should be (M*R^2)/2. (I say
>"should", because I've calculated it in my head right now, so I wouldn't put
>my hand in the fire for it :-)) Anyway, as long as you don't change the mass
>or the radius of the wheel, it is constant.
The constantness is good, no realtime calculation needed.
I read in a physics book that they see the wheel as something with ~
all mass on the outside.
Then the angular momentum would be: L=2*PI*M*R^2/T
Where L=ang. mom., M=mass of entire wheel, R=radius, T=period of
rotation.
Now would this mean the moment of intertia would be something like
2*PI*M*R^2? (hmm, long shot, I should not even propose this).
Just trying to figure out what would be best; to assume a wheel as
having mass equally in all places, or see the wheel as something with
mass mostly on the outmost rim. (or perhaps have 2 rims where things
are concentrated).
...
>The forces don't cancel each other out, because one is exerted on the
>ground, the other on the wheel.
Yes! I understand it now perfectly. Phew, and it was so simple,
ofcourse. :)
...
>To be exact, you'd also take into account the moment of inertia of the
>wheel, which will be accelerated as well. This should diminish the effective
>torque a little bit, but I haven't figured out, how to do this myself yet.
I've thought about this too, yes, but haven't tried any formulas or
pictures yet. But was wondering about that too.
...
Ah, shame that airflow is so complicated. But well, it would be nice
to just put a reverse wing (probably would happen anyway with my first
attempt) on a car and see it fly up all the time! ;-)
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Quoted text (8 lines)
>> See, I want to include 'wings' one day, and have a motor-type that >> uses air to go forward. Then you can even build a *plane*! >> It's the same principles, so why not. > >The only problem is, that it isn't possible to calculate the airflow in real >time, so modeling winds, ground effect, dirty air etc. will always be a >hack. I've even thought of building a virtual wind tunnel some time, which >produces a bunch of data for the simulation in advance, but well...On Thu, 10 Aug 2000 21:37:07 +0200, "Han Monsees"
<[email hidden]> wrote:
>Hi Ruud,
>
>The post did't make it the first time, i guess it was too long.
>After some cutting the second try!
It did here in fact. :)
But thanks for the repost. You could never know that knowledge was
being sent into the void.
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
On Thu, 10 Aug 2000 17:16:37 +0200, "Han Monsees"
<[email hidden]> wrote:
>
>"Ruud van Gaal" <[email hidden]> wrote in message
>news:[email hidden]...
>> On Wed, 09 Aug 2000 21:34:24 GMT, "Peter Prochazka"
>> <[email hidden]> wrote:...
>The max friction is a function of how fast the contact patch of the wheel
>moves relatively to the road. If is doesn't slip, the grip is higher that
>when is spins violently.
Yep, I have that (well, I know that, haven't applied it in source).
Static friction and kinetic friction. Know how to apply it.
...
Good. Well, I took a reasonable rpm*torque, but perhaps the next rpm
table entry times the torque would be a bit higher. So I guess these
nrs are directly from the engine creators. If I was EA, I'd do the ~1
factor in software, not in the original tables already.
...
>> Problem is with assumption I make perhaps. 1 motor currently. Well, in
>> the design I could have more motors without much change. And a
>> gearbox. I can have more than 1 reverse gear though :)
>
>maybe you could even implement a DAF transmission and model the famous
>backwardsriding races with DAF's that were on Dutch TV ten years or so ago.
How does a DAF transmission work then that is different from a regular
one?
...
...
>eventually, the torque will again equal the friction and the engine revs at
>higher revs. (1400 rpm (=1000 * sqrt(2)))
>
>I think you will need higher sample rate, but this can be the principle
My sample rate is currently the actual time taken from the last frame
(of 3D output). Don't even know the fps yet, but that doesn't matter,
cause I take a system clock time (so no slo-mo already in v0.1alpha;
get that, Crammond ;-) ) and use that in all formulas where needed
(calculating new velocity from acceleration for example).
I could multiply the rate as GPL does, by trying to run at a certain
frequency (GPL uses 288Hz? the reason why it limits fps to 36).
However, my intuition would say that if I have a low framerate, and
the rpm acceleration will go too quickly, it will automatically drop
down again, perhaps waving a bit, but end up at 1400rpm nevertheless.
The better the framerate, the better the accuracy of the car. I will
have to see in practice how my timeslicing holds when fps gets a bit
low from time to time.
...
>If you also design a 3d-format for cars and tracks, anyone could add any
>kind of racing. Hopefully, someone will at last do the late 70s/early 80s
>F1-stuff where I am dreaming of since the arrival of GPL. Why did they
>choose 1967??? If they had done 1977/78 it would feature some of the most
>beautiful F1-cars. Tyrrell 6-wheeler, Lotus ground effect car, Brabham
>fan-car and mostly the Ferrari 312T3!
Hehe, I know very little or nothing about these cars. That's why
others SHOULD make them. I mean should be ABLE to make them. That's
the philosophy behind it.
I've tried already and succeeded in replacing my wheels with a real 3D
model. I did a simple .ASE loader sometime before (for other
projects), so I do things in 3D studio Max, export to .ase.
However, .ase is a bit slow to load (relatively), so I'm planning my
own .dob (D3 object; D3 is my 3D library on SGI) file format with a
.ase to .dob converter.
Tracks are a different matter. Perhaps I should leave original 3D
models intact, and create physics files on the side, so you can easily
modify track visuals without the need for me to create a 3D Studio Min
0.5 to edit this stuff. Anyway, future stuff.
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Quoted text (9 lines)
>> Yesterday I calculated the max. horsepower from what I thought it was. >> Turned out at +/-14.000 rpm you have 340.xx, which when taking Han's >> P=2*PI*f*M => 14000/60=233 rps, M=340 (table) => P=2*PI*233*340=497500 >> (J/s). 1 hp = 746 W so P=667hp. Which seems to reflect an F1's max. > >I think it's a fairly good approx. The McLaren and Ferrari engines are said >to give about 800 hp, the lesser engines 50 to 100 hp less Maybe there is a >factor close to 1 that EA put in to tweak things to get realistic topspeeds >and laptimesQuoted text (19 lines)
>> But when I shift in 4th and stomp on the throttle, the rpm goes only >> slowly up, so I use the torque from 0..maxTorque method described >> above. > >just a experiment of thought: > >suppose you are doing a constant rev (say 1000 rpm) at say 10% throttle. >This means (rpm vs torque table) the engine delivers say 1000 Nm torque >Then you increase the throttle to 20%. At t = 0, revs are still 1000 rpm due >to inertia. But torque will be 2000 Nm (since rpm * torque is twice as high >at 20% throittle). friction is still 1000 Nm (same revs), thus the 1000 Nm >excess give a angular accelleration, say 1000 rpm per sec. > >At t = 0,1 s. the revs are 1100 rpm, thus the torque is (1000*2000)/1100 = >1820 Nm (keeping rpm * torque constant). Friction has gone to 1100 (linear >with rpm) so there is now only 720 Nm in excess, giving a acc. of 720 rpm/s > >at t = 0,2 s. the revs are 1172 rpm, the torque is (1000*2000)/1172 = 1710 >Nm, the friction is 1172 Nm, acc = 548 rpm/sOn 10 Aug 2000 17:37:49 +0200, Mats Lofkvist <[email hidden]>
wrote:
You're right, ofcourse. Torque must be 0.
Ok. I've been wondering a bit about the flywheel and if its effect is
noticable when accelerating the car. Probably is. Probably is not too
much though, so I can ignore it for now.
...
>Most engines will rev above the red line easily. On your standard car
>the result may only be valve float which is bad enough if you don't
>let go of the throttle, but on a racing engine the result is likely
>to be something really bad like a broken conrod making a hole through
>the side of the engine.
Ok, idea 1 and 2 for damage.cpp later on ;-)
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Quoted text (10 lines)
>[email hidden] (Ruud van Gaal) writes: > >[snip] >> Actually, I'm not going to do it like that. Because it is revving at >> 1000 rpm, there is a torque still. If I start my car, and just push it >> in 1st without clutching, it will roll forward. So there is torque, >> even when not *PUSHING* throttle. > >If the engine was generating net torque in neutral, it would >accelerate (i.e. increase revs).Quoted text (7 lines)
> When in idle the torque generated >by the engine is exactly matched by the internal friction. The >effect you noticed is due to the rotational momentum of the engine >and the flywheel. (An engine may actually produce more net power at >lower revs with the same throttle position which makes it pull if >you ease up the clutch without throttle added, but if you just crash >it into gear, the main effect is due to momentum.)On 10 Aug 2000 16:04:33 GMT, [email hidden] (JTW62074) wrote:
...
>rpm_torque=(5000,-47.04,***254.15***)
>
> Note: Even if the engine IS accelerating, these values probably don't change
>enough to worry about it, unless you have millions of dollars on the line in a
>drag race. I use a fixed torque curve in Straightline Acceleration Simulator
>and accuracy is high.
Good, I'll stick to that.
...
But for example in F1 and others, as the pedal is wireless, the
part_throttle to power graph may be used to program the chip
responsible for actual engine throttle to make this linearly.
I will go for linear for now, and perhaps build in more complex things
later on.
...
Yup, it's like that in my head now, to do throttle-torque that way.
Like Gregor Veble explained the F1-2000 rpm-torque table.
It's easy like this, just a linear function with an offset.
And some interpolation in the table itself. That's a bit more work;
will do a curve editor soon (generalise curves, since there are so
much of them).
...
On its way.
...
> There are basically two types of torque/power graphs. One may show
>"Indicated" torque/power, while the other may show "Brake" torque/power.
>"Brake" torque/power graphs already include internal engine friction, while an
>"Indicated" does not. I have never seen an "Indicated" torque/power curve
>anywhere, aside from a textbook possibly.
Ok. The F1-2K table seems a "brake" graph too, as it turns out to
~700hp (max) for the F1 Arrows car. Which would indicate internal
engine friction was already applied.
>>Is it c.RPM, where c is some constant, or perhaps c.RPM^2 (so the
>>higher rpm's, the faster the friction goes up, in a quadratic way)?
>
> Remember, "compression" or "engine" braking is more due to low cylinder
>pressure than engine friction. Engine friction is a linear function, while
>airflow restriction is more of a c.RPM^2 sort of thing.
Make more sense, compression braking, than what I had in mind about
general cylinder/axle etc surface force braking. That would never seem
to be able to generate -370hp.
What's the difference between hp and bhp by the way? The internal
engine friction?
> I've got to go eat breakfast now :-) Will chat later, Ruud. If you can,
>please send me a text file of torque_rpm() values so I can graph it using the
>part throttle algorithm above.
I will, thanks for the help!
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Quoted text (8 lines)
>>But how much extra torque is generated when you press the throttle >>pedal? Say the torque when the engine is idle (say 1000rpm) is 150 >>foot-pounds, and 180 at 2000rpm. Now I'm stepping on the gas. How will >>this relate to the torque I'm generating at full throttle, and, say, >>10% of full throttle? > > It will NOT be 10% of full power. I repeat, it will NOT be 10% of full >power.Quoted text (13 lines)
> If you like, I can get into more detail on engine airflow modelling. For >now, I recommend using a linear relationship for part throttle torque (10% >throttle = 10% power). I'd do this as a start: > >rpm_torque=(5000,-47.04,254.15) >254.15 + 47.04 = 301.19 >Throttle is 10% >10% * 301.19 = 30.119 >Final torque at 10% throttle, 5000 rpm: >30.119 - 47.04 = -16.921 > >Above, we have a negative torque even though the throttle is 10%. This is >"engine" or "compression" braking.Quoted text (10 lines)
> Off hand, I can't visualize if this will give realistic part throttle numbers >or not. To find out, graph the entire torque curve at a few different throttle >settings using this algorithm. If the PEAK torque curve moves to a lower rpm >as the throttles are progressively closed, you may have hit the nail on the >head. > > I'd love to try this myself to see if works. Could you send me a listing of >these rpm_torque (5000,-47.04,254.15) values in a text file, please? I'll put >a graph of the results at part and full throttle up on my site and send it to >you as well.Quoted text (7 lines)
> ... > >> Problem is with assumption I make perhaps. 1 motor currently. Well, in > >> the design I could have more motors without much change. And a > >> gearbox. I can have more than 1 reverse gear though :) > > > >maybe you could even implement a DAF transmission and model the famous > >backwardsriding races with DAF's that were on Dutch TV ten years or soQuoted text (11 lines)
> > ... > >> But when I shift in 4th and stomp on the throttle, the rpm goes only > >> slowly up, so I use the torque from 0..maxTorque method described > >> above. > > > >just a experiment of thought: > > > >suppose you are doing a constant rev (say 1000 rpm) at say 10% throttle. > >This means (rpm vs torque table) the engine delivers say 1000 Nm torque > >Then you increase the throttle to 20%. At t = 0, revs are still 1000 rpmQuoted text (17 lines)
> >higher revs. (1400 rpm (=1000 * sqrt(2))) > > > >I think you will need higher sample rate, but this can be the principle > > My sample rate is currently the actual time taken from the last frame > (of 3D output). Don't even know the fps yet, but that doesn't matter, > cause I take a system clock time (so no slo-mo already in v0.1alpha; > get that, Crammond ;-) ) and use that in all formulas where needed > (calculating new velocity from acceleration for example). > I could multiply the rate as GPL does, by trying to run at a certain > frequency (GPL uses 288Hz? the reason why it limits fps to 36). > However, my intuition would say that if I have a low framerate, and > the rpm acceleration will go too quickly, it will automatically drop > down again, perhaps waving a bit, but end up at 1400rpm nevertheless. > The better the framerate, the better the accuracy of the car. I will > have to see in practice how my timeslicing holds when fps gets a bit > low from time to time.Quoted text (18 lines)
> > ... > >If you also design a 3d-format for cars and tracks, anyone could add any > >kind of racing. Hopefully, someone will at last do the late 70s/early 80s > >F1-stuff where I am dreaming of since the arrival of GPL. Why did they > >choose 1967??? If they had done 1977/78 it would feature some of the most > >beautiful F1-cars. Tyrrell 6-wheeler, Lotus ground effect car, Brabham > >fan-car and mostly the Ferrari 312T3! > > Hehe, I know very little or nothing about these cars. That's why > others SHOULD make them. I mean should be ABLE to make them. That's > the philosophy behind it. > I've tried already and succeeded in replacing my wheels with a real 3D > model. I did a simple .ASE loader sometime before (for other > projects), so I do things in 3D studio Max, export to .ase. > However, .ase is a bit slow to load (relatively), so I'm planning my > own .dob (D3 object; D3 is my 3D library on SGI) file format with a > .ase to .dob converter.Quoted text (9 lines)
> Tracks are a different matter. Perhaps I should leave original 3D > models intact, and create physics files on the side, so you can easily > modify track visuals without the need for me to create a 3D Studio Min > 0.5 to edit this stuff. Anyway, future stuff. > > > Ruud van Gaal, GPL Rank +53.53 > MarketGraph / MachTech: http://www.marketgraph.nl > Pencil art: http://www.marketgraph.nl/galleryStephen Ferguson wrote:
And, in fact, a young driver named D.C. was about two seconds per lap
faster with this transmission that with the standard one.
-Gregor
Quoted text (8 lines)
> > Williams had a CVT (continuously variable transmission) version of the FW12 > in development and on the track in early 1993 before the FIA re-wrote the > rule books. Man, they take away all the fun. Imagine if Williams had been > able to fully develop their 6-wheel car (4 back wheels for better traction) > and a CVT. Fun fun fun. > > StephenIan Riches wrote:
That is most probably true. But then you do not need to run the engine
at maximum power all the time. You can decrease the revs at which the
engine may constantly run, but still have a higher power average over
time. The engine design would also be well simplified, as driveability
(the power or torque spread) would not be important anymore, as it would
always be possible to keep the revs where you want them to be.
-Gregor
Quoted text (10 lines)
> > IIRC, there was one problem, however. The transmission allowed the engine > to run at peak power for a much greater percentage of the time than a > conventional one. Getting decent engine reliability for full race distance > was a non-trivial task.... > > Ian > > Ian Riches > Bedford, UK
"Stephen Ferguson" <[email hidden]> wrote in message
news:3993fe82$[email hidden]...
famous
> > > >backwardsriding races with DAF's that were on Dutch TV ten years orso
the
FW12
> in development and on the track in early 1993 before the FIA re-wrote the
> rule books. Man, they take away all the fun. Imagine if Williams hadbeen
> able to fully develop their 6-wheel car (4 back wheels for bettertraction)
> and a CVT. Fun fun fun.
Actually, DAF raced some F3-cars with their automatic transmission in the
mid-60s.
>
> Stephen
>
>
>
Quoted text (10 lines)
> > "Han Monsees" <[email hidden]> wrote in message > news:8n0srk$4la$[email hidden]... > > > ... > > > >> Problem is with assumption I make perhaps. 1 motor currently. Well, > in > > > >> the design I could have more motors without much change. And a > > > >> gearbox. I can have more than 1 reverse gear though :) > > > > > > > >maybe you could even implement a DAF transmission and model theQuoted text (12 lines)
> > ago. > > > > > > How does a DAF transmission work then that is different from a regular > > > one? > > > > DAF built a continuous transmission. It consisted of two cones, one one > the > > engine-axis, one on the drive-train axis, with a belt between them > > transmitting the force. At low speed, the belt was located on the small > side > > of the motor-cone and on the broad side side of the other cone, so the > > engine revs were much higher than the wheel-revs. If you accelerated,Quoted text (10 lines)
> > belt was shifted to the broad side of the cone on the engine-side and to > the > > small side of the cone on the wheel-side. Therefore, the engine-revs > > remained in the ideal range while the wheels turned faster and faster. > > > > Using this system, any gear-ratio was possible just by shifting the belt > > (which was done automatically, by the way) > > > > Williams had a CVT (continuously variable transmission) version of theThis is a big thread, sorry if someone made my points
and I haven't seen them yet. BTW, I'm an aerospace engineer
doing vehicle modeling for a video game company.
Han Monsees wrote:
> Hi,
>
> I'll try to answer (some) of your questions, but since I am a phycisist and
> not a car-engineer, my answers may be wrong..
>
The basics are correct, but "hardware" and numerical issues abound... ;)
> so, if the throttle is increased from 10% to 100%, the power-input (in the
> form of chemical energy) will br 10 times bigger and, assuming a constant
> engine-efficiency, so will the output power.
>
It is certainly very reasonable for a video game to assume that the
engine torque between minimum (which can be taken as negative to
model torque losses) and maximum (the torque curve) is
linear with throttle.
The actual relationship is rather nonlinear, and depends on the
hardware involved. In order to maximize the resulting horsepower,
racing throttle hardware is designed to minimize losses and that typically
results in valves and linkages that result in a lot less change in torque
at high throttle than at low throttle. After all, you aren't supposed to
be at partial throttle all that much anyway ;)
For controlability, there is something to be said for a more linear
relationship in a video game without all the real world controller
and vehicle feedback. So getting fancy might not be best.
There are more important issuse to fight with anyway.
Also, the maximum power characteristics will dominate performance
(lap times and acceleration) rather than partial or no throttle
characteristics.
> > - How can the rpm have a max? I know it has, but if I have the wheels
> > spinning in the air, and I push the throttle, there is no air
> > resistance, no rolling resistance, just engine (internal) friction.
Have you ever seen a dragster spin the tires so much that the
engine fails? In real life without load and a rev limiter,
breaking the engine will likely stop the RPM growth
before friction does. That's a major goal for simulations
for video games, to my mind - making sure there are
models that result in real world consequences for mistakes.
Otherwise, things like your no max RPM under no
engine load problem above will crop up. Another annoying
problem if you did the above test in real life would be
keeping the engine from overheating due to prolonged
high power operation under bad cooling conditions
(slow speed).
> > How would I describe internal friction? (since it is probably the
> > reason why there's a max rpm an engine can obtain)
Just make your zero throttle pedal engine output torque (negative)
either constant or linear with RPM. Your engine max torque curve
may even tend back toward zero at higher RPM. That effect will result
in a maximum RPM under real driving conditions even without
friction modeling or a rev limiter. Where the rev limiter is in
relation to the engines horsepower peak will affect how
useful this is. Not all engines will be optimized like F1 engines.
> AFAIK, the max rpm is determined by the rate that plugs can fire. That's why
> modern F1-engines with motor managing electronics can reach such high revs:
> they can produce many more sparks per second.
Sometimes it's determined by rules (e.g., SCCA Trans-Am where the rules
require specific rev limits). These rules are intended to keep costs
down by allowing simpler construction of engines. To withstand higher revs
without the engines failing you need to use more exotic materials and tighter
tolerances, etc. They are also intended to keep engine performance more
even amongst teams and manufacturers for better racing (i.e., keep a full
field.)
Physically, engine friction is one effect that reduces output torque
at higher RPM. Other than rules, the overriding effect that determines
how fast you race an engine are reliability concerns.
The safety issue part of it has to do with piston
speeds. All the hardware keeping the pistons moving up and
down very rapidly will fail if it trys to move too fast.
F1 engines rev more than twice as fast as stock car engines,
but cost rather more than twice as much. ;)
At low or no throttle pedal, engine friction is one effect that produces
negative torque (tending to slow the engine).
The work required to compress the air in the
cylinders is another (and large) effect. So the braking effect with throttle
off can be very large. I was involved with an airplane crash due to
insufficient simulation modeling of these effects once. ;(
Without load, don't expect engine friction alone to keep you in a safe
RPM range...
Other than that, this will all work, but only if you give sufficient
consideration to numerical concerns. The frequencies at which the
various rotating parts can move around due to the low inertias and
high force levels are such that simplistic numerical integration
schemes can require very low integration step sizes to stay stable.
That is, you may have to integrate at time steps of less than
0.002 seconds (more than 500 times a second.) I suggest you build a
simple prototype (as you have discussed) and
study a good book on numerical analysis very early. Otherwise your
frustration may end up very large if you let these issues fester.
> > Eventual goals:
> > - Have a good handling car (system rather, so you can plug in any car
> > you would like; it's the physics that do the tricks) driving around.
>
> try to take small steps!
Definitely good advice. Also take advantage of what is
published in these areas. Good references available online from the SAE
(Society of Automotive Engineers) are: http://www.sae.org/bookstore
�Fundamentals of Vehicle Dynamics,� Thomas Gillespie, SAE,
Danvers, MA, 1992. ISBN 1-56091-199-9
(You could model for a man year before exhausting the
basic insights you can glean from just the above book.)
Another that goes deeper into the complexities
of handling and tire modeling: (It's always nice to
remind oneself that vehicles are really rather more complicated
than our simulation abstractions.)
"Race Car Vehicle Dynamics," W.F. Milliken and D.L. Milliken,
SAE, 1995. ISBN-1-56091-526-9 800 to a 1000 pages or so.
Then you can go onto actually racing your model ;)
�Drive to Win, The Essential Guide to Race Driving,� Carroll Smith,
Carroll Smith Consulting, Inc., Palos Verdes Etates, CA, 1996.
ISBN-0-9651600-0-9
Luck,
- Matt
Quoted text (7 lines)
> > > > Goal (1st thing): > > - To have a car floating in mid-air which I can give throttle until it > > reaches its peak rpm (because of friction probably). This by passing > > the torque onto the wheels, keeping track of their mass and generating > > angular momentum on the wheels, so it has the right feel. >
Ruud van Gaal wrote:
> Ok. I've been wondering a bit about the flywheel and if its effect is
> noticable when accelerating the car. Probably is. Probably is not too
> much though, so I can ignore it for now.
The torque required to accelerate (increase the RPM) of
all the rotating parts in the whole drive train can be very noticible.
However, race cars tend to be high powered and have lighter inertia
components so the portion of engine power spent
to just spin up the drive train will be lower than on street cars.
(10% to 30% or more in the lowest gear). This effect also
affects the braking performance.
Gillespie covers these acceleration effects in as
much detail as you will need:
�Fundamentals of Vehicle Dynamics,� Thomas Gillespie, SAE,
Danvers, MA, 1992. ISBN 1-56091-199-9
Also, if you know what you want the sim engine to "feel" like
while you rev it declutched, you can guess what the
inertia of those rotating parts are by matching the
"time constant" (how quickly it revs) you desire.
However, at high powers and low inertias, you can run into
difficult numerical integration problems. The model may work
fine under normal acceleration conditions but go
unstable when declutched...
- Matt
Peter Prochazka wrote:
> The only problem is, that it isn't possible to calculate the airflow in real
> time, so modeling winds, ground effect, dirty air etc. will always be a
> hack. I've even thought of building a virtual wind tunnel some time, which
> produces a bunch of data for the simulation in advance, but well...
>
There are hacks, and there are hacks though.
I've seen hacks of such hideous evil in the game industry that
I won't even speak their names aloud lest the demons be called forth
to consume another victim. ;)
If you end up with a model where drag increases as the square
of airspeed and power required roughly as the cube of airspeed
you can go far. If you end up applying a magic attenuation factor
to your velocity to account for aero drag, you deserve to go to hell ;)
For example, velocity = velocity * wingDragFactor
with wingDragFactor a bit less than 1 every frame.
You could even make wingDragFactor lower to account for
higher downforce! Yippeee, gag cough.
Please no one do this at home.
Once you start down this path, forever will the dark side of game
"physics" control your destiny. There are so many things bad about
this that kind of "modeling" that it raises my blood pressure just
looking at it.)
- Matt
F = m a It's not only a good idea. It's the Law.
Ruud van Gaal wrote:
> Ah, shame that airflow is so complicated. But well, it would be nice
> to just put a reverse wing (probably would happen anyway with my first
> attempt) on a car and see it fly up all the time! ;-)
Don't laugh. I'm one of the few people with real world engineering
experience on programs that flew rockets and airplanes "backward"
and still the first time I spun a simulated car it lifted off the ground and
flipped when pointed backward.
"Oh yeah, I still need to complete the aero model through all
+/- 180 degrees of pitch and yaw" ;)
- Matt
On Sat, 12 Aug 2000 23:42:23 GMT, "Matthew V. Jessick"
<[email hidden]> wrote:
>
>
>Peter Prochazka wrote:
>...
>There are hacks, and there are hacks though.
>I've seen hacks of such hideous evil in the game industry that
>I won't even speak their names aloud lest the demons be called forth
>to consume another victim. ;)
:)
>If you end up with a model where drag increases as the square
>of airspeed and power required roughly as the cube of airspeed
>you can go far. If you end up applying a magic attenuation factor
>to your velocity to account for aero drag, you deserve to go to hell ;)
Don't worry, I intend to have a force pushing down (or up) the wheels,
complete with cg torque which would make the car flip over if you turn
the wings upside down. :)
>For example, velocity = velocity * wingDragFactor
>with wingDragFactor a bit less than 1 every frame.
>You could even make wingDragFactor lower to account for
>higher downforce! Yippeee, gag cough.
Though this gives a better framerate, wow! ;-)
...
>- Matt
>F = m a It's not only a good idea. It's the Law.
Sylvester Stallone in 'Newton Hell'? "I am the laauww".
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
On Sat, 12 Aug 2000 23:47:36 GMT, "Matthew V. Jessick"
<[email hidden]> wrote:
Cool! :)
>"Oh yeah, I still need to complete the aero model through all
>+/- 180 degrees of pitch and yaw" ;)
What is worse, mixing negations up or mixing up the metric system with
foot-pound-second? ;-)
Ruud van Gaal, GPL Rank +53.53
MarketGraph / MachTech: http://www.marketgraph.nl
Pencil art: http://www.marketgraph.nl/gallery
Quoted text (12 lines)
> > >Ruud van Gaal wrote: > >> Ah, shame that airflow is so complicated. But well, it would be nice >> to just put a reverse wing (probably would happen anyway with my first >> attempt) on a car and see it fly up all the time! ;-) > >Don't laugh. I'm one of the few people with real world engineering >experience on programs that flew rockets and airplanes "backward" >and still the first time I spun a simulated car it lifted off the ground and >flipped when pointed backward."Matthew V. Jessick" wrote:
How true. Try setting the F1 2000 engine inertia in vehicle data files
to something more appropriate for a race car, and you get deja vus of
'Close Encounters of the Third Kind' when listening to the engine note
when in neutral.
F1 2000 physics modelling: 'Great engine, shame about the integration
time step'.
-Gregor


































