Race Sim Central
Rec.Autos.Simulators Archive

My sim: differentials

32 posts by 6 people · 11 Aug 2002 20:05 UTC - 20 Aug 2002 17:34 UTC

Notable threadModelling a differential in a home-made car sim

Alex Smith asked how to model an open differential and drivetrain in his own sim. Ruud van Gaal, Stefano Casillo of netKar and Jonny Hodgson explained torque splitting, clutch coupling, inertia and a gear-network approach, debating how an open diff behaves when one wheel loses grip. Smith got a partly working model with remaining issues.

With Ruud van Gaal (Racer), Stefano Casillo (netKar)

physics/realism debateRacernetKar

Automated summary.

Alex Smith 11 Aug 2002 20:05 UTC#103999
I'm attempting to get some sort of differential model into my game Initially I am just trying to implement a completely open one for simplicity. I have an input A and outputs B1 and B2 I am simply applying torque to A from the gearbox B1 and B2 are currently A * differential Ratio However the difficulties start when I want some feedback from the road to travel from the wheels through the differential into the engine. I'm assuming the road reaction torque to be the resistive torque so torqueAtDiffB1/2 = resistiveForceWheel * radiusWheel torqueAtDiffA - = torqueAtDiffB1/2/drivelineInertia But this does not work in any way. So I must have the wrong end of the stick, or maybe not even a stick, but a twig (erm :) Does anyone know any decent articles for this? At the mo i'm doing it completely using my own newtonian physics knowledge, which isn't very much.
Sorry for the long links :-) http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3ab2075e.354986 533%40news.xs4all.nl&rnum=1&prev=/groups%3Fq%3D%2522car%2Bphysics%2522%2B% 252Bdifferentials%2Bgroup:rec.autos.simulators%26hl%3Den%26lr%3D%26ie%3DUT F-8%26selm%3D3ab2075e.354986533%2540news.xs4all.nl%26rnum%3D1 http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3ab2075e.354986 533%40news.xs4all.nl&rnum=1&prev=/groups%3Fq%3D%2522car%2Bphysics%2522%2B% 252Bdifferentials%2Bgroup:rec.autos.simulators%26hl%3Den%26lr%3D%26ie%3DUT F-8%26selm%3D3ab2075e.354986533%2540news.xs4all.nl%26rnum%3D1 Todd Wasson --- Performance Simulations Drag Racing and Top Speed Prediction Software http://PerformanceSimulations.Com My little car sim screenshots: http://performancesimulations.com/scnshot4.htm
I took a look and I think they are the same ones on the Racer usenet discussion page. Problem is Ruud starts that thread at a more advanced stage than I am at :( . So I've changed my goals for now. Initially I am trying to get reaction from the wheels straight to the engine, ignoring the differential, because currently I am simply taking the rpm from the avg angV of the driven wheels. So now I want to have the wheel reaction go through the gearbox to the engine. But either a) Ruud has done more than just FX * r and put it back into the engine for the wheels, and I am missing it, or, b) I have implemented it completely wrongly Also, while I'm on the topic, another problem I am assigning the car an angV variable which is increased by angA/inertia. All good so far. But when I change gear, there is no -ve torque to reduce the rpms so say I change from 1st to 2nd, the rpm doesn't jump from 6000 to 3000, it just keeps getting bigger. Where does this -ve torque come from? Engine friction (although engine friction is overcome when accelerating, in my model) ?
Alex Smith <[email hidden]> wrote in message news:aj7tpa$mep$[email hidden]... [re-ordered and snipped for my convenience ;-) ] > I am assigning the car an angV variable which is increased by angA/inertia. > All good so far. But when I change gear, there is no -ve torque to reduce > the rpms so say I change from 1st to 2nd, the rpm doesn't jump from 6000 to > 3000, it just keeps getting bigger. Where does this -ve torque come from? > Engine friction (although engine friction is overcome when accelerating, in > my model) ? You need some wind-up, with possibly a torque-limiting clutch to prevent the transients from causing violent 'shuffle'. Put a propshaft model between the engine and gearbox (or 'box and axle), which takes the engine speed and the output speed and integrates the difference to give a wind-up angle. Use a stiffness value to multiply this wind-up, and feed the resulting torque both forwards to the drivetrain and back to the engine. If the car starts to pogo backwards and forwards on gearshifts, limit the wind-up value to give a maximum torque of, say, 1.5 x max engine torque. > Initially I am trying to get reaction from the wheels straight to the > engine, ignoring the differential, because currently I am simply taking the > rpm from the avg angV of the driven wheels. So now I want to have the wheel > reaction go through the gearbox to the engine. Hard to tell now how far you've got... How far have you got since reading the fora? How much do you understand about differentials? HTH, Jonny
On Sun, 11 Aug 2002 20:05:22 +0000 (UTC), "Alex Smith" <[email hidden]> wrote:
Quoted text (9 lines)>I'm attempting to get some sort of differential model into my game > >Initially I am just trying to implement a completely open one for >simplicity. > >I have an input A and outputs B1 and B2 > >I am simply applying torque to A from the gearbox >B1 and B2 are currently A * differential Ratio
Actually, according to RCVD, B1 and B2 are both T_A*diffRatio/2. Take a look at www.howstuffworks.com and its differential animation. You'll see the ring gear and side gears rotate, and although it's not really intuitive to me, you might be able to understand from that that the torque is not passed on just like that. >I'm assuming the road reaction torque to be the resistive torque >so > >torqueAtDiffB1/2 = resistiveForceWheel * radiusWheel >torqueAtDiffA - = torqueAtDiffB1/2/drivelineInertia Inertia is used to calculate acceleration, not torque ratios. And also, I don't see the diffRatio coming back here. >Does anyone know any decent articles for this? At the mo i'm doing it >completely >using my own newtonian physics knowledge, which isn't very much. Diff articles are few. You'll find some links on my site (www.racer.nl). However, these generally don't relate to direct formulae that easily. For example, my open diff uses a cunning Lagrange-derived closed set of formulae to solve a system, courtesy Gregor Veble. Problem is the brakes really; they only generate enough torque to keep things from moving, as long as they can generate that torque. But a brake fully depressed at zero speed will still generate 0 torque (!). I haven't really deduced any non-closed system formulae yet which tries to do it in a more simple way. The idea is to integrate things like braking torque to let it slide up to its locking point if needed. All non-trivial. But for an open diff, things are more simple: T_B1=T_B2=T_A*diffRatio/2, no matter what. Once you get to accelerations of B1/B2/A though, that's the hard part. Gregor uses a non-symmetrical approach, which you may have read in those archives that Todd posted. Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On Mon, 12 Aug 2002 09:05:47 +0000 (UTC), "Alex Smith" <[email hidden]> wrote:
Quoted text (8 lines)>I took a look and I think they are the same ones on the Racer usenet >discussion page. Problem is Ruud starts that thread at a more advanced stage >than I am at :( . So I've changed my goals for now. > >Initially I am trying to get reaction from the wheels straight to the >engine, ignoring the differential, because currently I am simply taking the >rpm from the avg angV of the driven wheels. So now I want to have the wheel >reaction go through the gearbox to the engine.
Hm, that might work. ... >I am assigning the car an angV variable which is increased by angA/inertia. >All good so far. But when I change gear, there is no -ve torque to reduce >the rpms so say I change from 1st to 2nd, the rpm doesn't jump from 6000 to >3000, it just keeps getting bigger. If you derive RPM straight from angV, how could RPM not jump? If you're dividing by the new gear ratio, surely RPM drops? > Where does this -ve torque come from? >Engine friction (although engine friction is overcome when accelerating, in >my model) ? Actually, you should let the engine have its own spin speed. If it doesn't match the wheel speed (as you do now), or rather the differential A speed, than a torque is generated to get the 2 velocities to match (gearbox ratio's left out for a moment). That torque is ofcourse also related to the clutch; I just use clutchTorque=clutch*maxClutchTorque, where clutch=0..1 (the user's pedal), maxClutchTorque is the maximum torque the clutch can handle (often to be found for a car/engine), and clutchTorque then is the torque trying to slow down the engine & speeding up the wheels, or vice versa. Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
Ruud van Gaal <[email hidden]> wrote in message news:[email hidden]... > On Mon, 12 Aug 2002 09:05:47 +0000 (UTC), "Alex Smith" > <[email hidden]> wrote: > > >I took a look and I think they are the same ones on the Racer usenet > >discussion page. Problem is Ruud starts that thread at a more advancedstage > >than I am at :( . So I've changed my goals for now. > > > >Initially I am trying to get reaction from the wheels straight to the > >engine, ignoring the differential, because currently I am simply takingthe > >rpm from the avg angV of the driven wheels. So now I want to have thewheel > >reaction go through the gearbox to the engine. > > Hm, that might work. > > ... > >I am assigning the car an angV variable which is increased byangA/inertia. > >All good so far. But when I change gear, there is no -ve torque to reduce > >the rpms so say I change from 1st to 2nd, the rpm doesn't jump from 6000to > >3000, it just keeps getting bigger. > > If you derive RPM straight from angV, how could RPM not jump? If > you're dividing by the new gear ratio, surely RPM drops? I don't think I explained my problem very well :) Unitl now, I was calculating the engine RPM doing what you said above, using the gearbox ratios and the wheel speed. However, this is not very realistic, and inflexible if I wanted a clutch in the system. So what I am now trying to do is base the engine rpm on torques and inertias generated by the engine and the wheels. > > > Where does this -ve torque come from? > >Engine friction (although engine friction is overcome when accelerating,in > >my model) ? > > Actually, you should let the engine have its own spin speed. Yup, thats what I'm trying, giving it its own angularV. Its currently calculated by, for example in neutral angAcc = engTorque/engInertia [in a neutral situation] Works fine. The problem arises when it is in gear, as the equations I thought up to feed in the road reaction torque are wrong. So because the effective inertia is greater in gear, doing the above calculation gives an rpm like 800 (due to smaller acc) when it should be 6000 judgiung by the wheel speed. So what I need is some other torque to increase the engine speed. But how!? > If it > doesn't match the wheel speed (as you do now), or rather the > differential A speed, than a torque is generated to get the 2 > velocities to match (gearbox ratio's left out for a moment). From where, and applied to which? At the moment I do not have a clutch implemented, so I am trying to do this *more simplified* :) version first so that later I can have a clutch.
Quoted text (11 lines)> That torque is ofcourse also related to the clutch; I just use > clutchTorque=clutch*maxClutchTorque, where clutch=0..1 (the user's > pedal), maxClutchTorque is the maximum torque the clutch can handle > (often to be found for a car/engine), and clutchTorque then is the > torque trying to slow down the engine & speeding up the wheels, or > vice versa. > > > Ruud van Gaal > Free car sim: http://www.racer.nl/ > Pencil art : http://www.marketgraph.nl/gallery/
On Tue, 13 Aug 2002 12:10:49 +0000 (UTC), "Alex Smith" <[email hidden]> wrote:
Quoted text (12 lines)>Ruud van Gaal <[email hidden]> wrote in message >news:[email hidden]... >> Actually, you should let the engine have its own spin speed. > >Yup, thats what I'm trying, giving it its own angularV. > >Its currently calculated by, for example in neutral >angAcc = engTorque/engInertia [in a neutral situation] > >Works fine. The problem arises when it is in gear, as the equations I >thought up >to feed in the road reaction torque are wrong.
...
Quoted text (8 lines)>> If it >> doesn't match the wheel speed (as you do now), or rather the >> differential A speed, than a torque is generated to get the 2 >> velocities to match (gearbox ratio's left out for a moment). > >From where, and applied to which? At the moment I do not have a clutch >implemented, so I am trying to do this *more simplified* :) version first so >that later I can have a clutch.
Well, it IS the clutch that is generating the torque to keep the 2 velocities synchronised. If they were connected hard, then engine_vel==differentialA_vel, but they only loose part inbetween is the clutch I'm afraid... It isn't hard really if you already have the diffA velocity and engine velocity, just use the difference to create a torque (T_clutch=factor*velocityDifference). That's your clutch already. :) (factor is clutchApplication*maxClutch; if you don't want to add a clutch axis to your control system then I'd say just set clutchApplication as a constant to something. I use autoclutching myself but that's a bit more complicated with RPM's for autoclutch=0 and autoclutch=1). Hope that helps, Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
Hi Alex, What I'm doing with netKar is using a gear network system. That could look a bit overcomplicated (I'm sure it is), but it lets you look at the problem in a very different way. I got the idea of the network looking for infos about clutches and diff while I was approaching the problem, and, "googling" around I found several references to ADAMS and Modelica libraries for geared components drivetrains. So I came up with a complete modular system of geared components all based on torques (no speed forcing anywhere)... Now.. it'll be impossible to explain all that mess here now... but I think it is an elegant way to go (not very optimized tough)... Now... to the differential part... Are you sure to understand what an open differential is doing and how it's working? I found the information on the internet quite misleading about diffs.. at least if u try to read those with a "programmer point of view". You often read: "the open diff sends all the torque to the less resistent wheel"... Now..it does.. but if u try to do that in code, that is. sending the torque to one wheel u'll end up in troubles... I found myself struggling for days trying to get the diff code working without success.. then, one of my mate at work _built_ a real open differential with meccano for me... and after 5 mins playing with it in my hands I said: "right! now I know how to do it!".. Try your local garage and have a go if u can with a real diff... it's simple once u understand it. I've tried to write a post here explaining my solution..but it was really really messy... anyway.. I try again.. U have this situation: E | _______ | | w1 w2 E, w1 and w2 are torques from engine and the 2 wheels (from the road reaction). Now, E is always splitted in 2. equally.. if u see a diff it's easy to convince yourself.. the engine can just act on the cage of the diff. Now.. w1 and w2. You need to wait to have them both to actually decide what to do. The "combined force" of w1 and w2 act on the cage. Combined force for me is the fraction of the torques acting in the same direction. Example.. if w1=100 and w2=30.. the combined force is 30*2.. the 30 N/m of w1 is acting in the same direction of the 30 of w2. so they combine and go to the cage.. Then u have the unbalanced torque.. the torque difference between w1 and w2.. this won't act on the cage but will be transfered to the weaker wheel.. in our example we'll have 100-30=70N/m going from w1 to w2... This looks crazy I know.. let's do the "wheel on ice" example.. the engine is sending say 200N/m of torque. .I split 50% and send it to the wheels.. they accellerate and get the reaction from the road.. the wheel on tarmac (say w1) will get 100 N/m of reaction force while the wheel on ice (w2) will get 0N/m reaction... Step 2.. the combined force is 0 so nothing is going back to the engine. the unbalanced force is 100 that is sent right to w2 from w1... So w1 received 100 from the engine and 100 from the road. so basically stays there... w2 got 100 from the engine plus 100 from w1 and it's spinning like a crazy... It's very easy to get this system and add stuff like internal clutches to make a limited slip (I just did it yesterday).. Whatever system u do.. there's one thing u have to check ALWAYS.. the diff cage speed MUST always be the sum of the wheel speed divided by 2.. always, no matter what kind of diff u have. In a torque based system like mine.. speed is an output not an input... and u need to check it always..I've been running with this in my code forever: if (differential->speed!=(outShaftL->speed+outShaftR->speed)/2.0f) { printf("**** DIFF SPEED CHECK FAILED! ****\n"); exit(0); } I hope it helps... looks scary.. but it works.. ciao Stefano Casillo www.drivingitalia.com/netkar "Alex Smith" <[email hidden]> wrote in message news:<aj6g22$j0g$[email hidden]>...
Quoted text (27 lines)> I'm attempting to get some sort of differential model into my game > > Initially I am just trying to implement a completely open one for > simplicity. > > I have an input A and outputs B1 and B2 > > I am simply applying torque to A from the gearbox > B1 and B2 are currently A * differential Ratio > > However the difficulties start when I want some feedback from the road to > travel > from the wheels through the differential into the engine. > > I'm assuming the road reaction torque to be the resistive torque > so > > torqueAtDiffB1/2 = resistiveForceWheel * radiusWheel > torqueAtDiffA - = torqueAtDiffB1/2/drivelineInertia > > But this does not work in any way. So I must have the wrong end of the > stick, or > maybe not even a stick, but a twig (erm :) > > Does anyone know any decent articles for this? At the mo i'm doing it > completely > using my own newtonian physics knowledge, which isn't very much.
> Inertia is used to calculate acceleration, not torque ratios. Not sure I follow exactly. So I am not using torque to find the engine acceleration? Also, this may sound like a newbie question but I'm having a mental block at the moment and was wondering if I had a gear A ratio 5 and a gear B ratio 1. If I give gear A 10 units of torque does this mean B will haeve (10* (5/1) ) = 2 units? Or will it stay the same, just have different acceleration?
Stefano Casillo <[email hidden]> wrote in message news:[email hidden]...
Quoted text (10 lines)> E > | > _______ > | | > w1 w2 > > E, w1 and w2 are torques from engine and the 2 wheels (from the road > reaction). > Now, E is always splitted in 2. equally.. if u see a diff it's easy to > convince yourself.. the engine can just act on the cage of the diff.
[snip]
Quoted text (11 lines)> This looks crazy I know.. let's do the "wheel on ice" example.. the > engine is sending say 200N/m of torque. .I split 50% and send it to > the wheels.. they accellerate and get the reaction from the road.. the > wheel on tarmac (say w1) will get 100 N/m of reaction force while the > wheel on ice (w2) will get 0N/m reaction... > Step 2.. the combined force is 0 so nothing is going back to the > engine. the unbalanced force is 100 that is sent right to w2 from > w1... > So w1 received 100 from the engine and 100 from the road. so basically > stays there... w2 got 100 from the engine plus 100 from w1 and it's > spinning like a crazy...
Careful here. If we're talking about an open diff, remember what you wrote above: the output torques *must be equal*. In the "wheel on ice" example, since wheel 2 cannot sustain any reaction torque (other than by inertia as it accelerates), the steady state torque on wheel 1 is *also* zero and the car does not move! For an open diff: torque 1 = torque 2 = input torque / 2 (speed 1 + speed 2) / 2 = input speed. Limited slips get more complicated, depending on the type. In brief, you can have output torque difference = k * output speed difference (this is a Viscous Coupling, approximately) output torque difference <= k * input torque but it all needs to depend on the reaction torques from the wheels... HTH, Jonny
"Jonny Hodgson" <[email hidden]> wrote in message news:<dqy69.3207$[email hidden]>... > Stefano Casillo <[email hidden]> wrote in message news:[email hidden]... > Careful here. If we're talking about an open diff, remember what > you wrote above: the output torques *must be equal*. In the "wheel > on ice" example, since wheel 2 cannot sustain any reaction torque > (other than by inertia as it accelerates), the steady state torque > on wheel 1 is *also* zero and the car does not move! Exactly... w2 is not getting any reaction force because the wheel isn't generating any force on the ground... but it is still receiving tons of torque and it _is_ spinning. w1 is stopped because almost in equilibrium and the car is not moving at all... > For an open diff: > torque 1 = torque 2 = input torque / 2 This is only true for torque coming from the engine of course. > (speed 1 + speed 2) / 2 = input speed. Yep... that's why I have the nasty "if" that stops everything if this goes wrong. > Limited slips get more complicated, depending on the type. > In brief, you can have > output torque difference = k * output speed difference > (this is a Viscous Coupling, approximately) > > output torque difference <= k * input torque Yes, for the clutches in the diff I'm using a RARS style friction model... and with k function of ramp angles, clutch preload and input torque. > but it all needs to depend on the reaction torques from > the wheels... > > HTH, > Jonny Stefano Casillo www.drivingitalia.com/netkar
Stefano Casillo <[email hidden]> wrote in message news:[email hidden]... > > For an open diff: > > torque 1 = torque 2 = input torque / 2 > > This is only true for torque coming from the engine of course. Surely it's true at all times, unless you're being *really* excessive and modelling the inertia of the *diff*... ;-) Jonny
"Jonny Hodgson" <[email hidden]> wrote in message news:<s7U69.8461$[email hidden]>...
Quoted text (9 lines)> Stefano Casillo <[email hidden]> wrote in message news:[email hidden]... > > > > For an open diff: > > > torque 1 = torque 2 = input torque / 2 > > > > This is only true for torque coming from the engine of course. > > Surely it's true at all times, unless you're being *really* > excessive and modelling the inertia of the *diff*... ;-)
Which of course I do.. but that just adds confusion to this discussion... With no inertia my newtwork system will fail immediatly... Stefano Casillo www.drivingitalia.com/netkar
On Thu, 15 Aug 2002 21:14:55 +0100, "Jonny Hodgson" <[email hidden]> wrote:
Quoted text (10 lines)> >Stefano Casillo <[email hidden]> wrote in message news:[email hidden]... > >> > For an open diff: >> > torque 1 = torque 2 = input torque / 2 >> >> This is only true for torque coming from the engine of course. > >Surely it's true at all times, unless you're being *really* >excessive and modelling the inertia of the *diff*... ;-)
At the end, you get torques on every component, so you ultimately will have to get a full inertia sum of all involved (connected) components. So adding in the diff inertia is easy in that case, if not natural. :) Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On 14 Aug 2002 02:13:10 -0700, [email hidden] (Stefano Casillo) wrote: ... >I found myself struggling for days trying to get the diff code working >without success.. then, one of my mate at work _built_ a real open >differential with meccano for me... and after 5 mins playing with it >in my hands I said: "right! now I know how to do it!".. They should market a thing like that. Have been searching for small models like that for some time. :) ...
Quoted text (11 lines)>Now.. w1 and w2. You need to wait to have them both to actually decide >what to do. The "combined force" of w1 and w2 act on the cage. >Combined force for me is the fraction of the torques acting in the >same direction. >Example.. if w1=100 and w2=30.. the combined force is 30*2.. the 30 >N/m of w1 is acting in the same direction of the 30 of w2. so they >combine and go to the cage.. >Then u have the unbalanced torque.. the torque difference between w1 >and w2.. this won't act on the cage but will be transfered to the >weaker wheel.. in our example we'll have 100-30=70N/m going from w1 to >w2...
Let me see if I get this: suppose T_engine=300, T_w1_rr=100Nm, T_w2_rr=30 (where rr=road reaction). Then T_w1=T_w2=T_engine/2 = 300/2 = 150Nm (engine torque to wheels). The engine reaction torque (coming back from the wheels) is max(T_w1_rr,T_w2_rr) = 30N. So the engine accelerates with T_engine_net=T_engine-T_engine_reaction=300-30=270Nm? For the wheels, how is the (100-70) Nm transferred then? Is it: T_w1_net=T_w1-T_w1_rr = 150Nm - 100Nm = 50Nm? T_w2_net=T_w2-T_w2_rr+T_transfer = 150Nm - 30Nm + 70Nm = 190 Nm? It seems like a nice basis. I have a system solving formula, but that does take into account braking. The problem with brakes is that they will only supply so much torque to keep their side from moving. So just adding braking torque into the road reaction torque isn't really right. On the other hand, Gregor Veble once suggested a system where you'd make the braking torque a bit like relaxation lengths in SAE950311; so the braking torque quickly comes up to its maximum value to keep the axle from rotating (as long the brake torque can go up to its maximum, determined by the brake discs and pedal setting). >This looks crazy I know.. let's do the "wheel on ice" example.. the >engine is sending say 200N/m of torque. Sorry for redoing a thing like this above, but in this example you get a 0 on one end so that simplifies some calculations. >if (differential->speed!=(outShaftL->speed+outShaftR->speed)/2.0f) Get a bit of error around that btw. if(fabs(...)>EPSILON))error; And why wasn't your sim on my links list yet? Looks very good. :) Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On Wed, 14 Aug 2002 20:30:36 +0100, "Jonny Hodgson" <[email hidden]> wrote:
Quoted text (11 lines)> >Stefano Casillo <[email hidden]> wrote in message news:[email hidden]... >> So w1 received 100 from the engine and 100 from the road. so basically >> stays there... w2 got 100 from the engine plus 100 from w1 and it's >> spinning like a crazy... > >Careful here. If we're talking about an open diff, remember what >you wrote above: the output torques *must be equal*. In the "wheel >on ice" example, since wheel 2 cannot sustain any reaction torque >(other than by inertia as it accelerates), the steady state torque >on wheel 1 is *also* zero and the car does not move!
Steady state yes, but still 0 because of the sum of torques adding up to 0. There's still going 100Nm of torque to that end, it's just that the ground can counter all of that. Put your hand under that wheel and you should be able to feel it. (Kids, don't do this at home!) ;-) >In brief, you can have > output torque difference = k * output speed difference > (this is a Viscous Coupling, approximately) > > output torque difference <= k * input torque Why is this last inequality needed? Why can't the output torque difference not do what it likes? Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On Wed, 14 Aug 2002 13:10:21 +0000 (UTC), "Alex Smith" <[email hidden]> wrote: > >> Inertia is used to calculate acceleration, not torque ratios. > >Not sure I follow exactly. So I am not using torque to find the engine >acceleration? You are. It's all torque, inertia, acceleration. 2 main formulae dealing with torque: T=F*r to convert force into torque (and back), and second, T=I*w, where I=inertia (for spinning objects, just a scalar with rotational inertia around the spin axis), and w=angular acceleration (so v=v+w*dt in your timestep). >Also, this may sound like a newbie question but I'm having a mental block at >the moment >and was wondering if I had a gear A ratio 5 and a gear B ratio 1. If I give >gear A 10 units of torque >does this mean B will haeve (10* (5/1) ) = 2 units? Or will it stay the >same, just have different acceleration? Depends on how gear A and B are connected. :) If you have: E---A---W (engine, gear A, wheel) If T_e=100Nm, A's ratio is 2:1, then T_w=100*2=200Nm. BUT ofcourse it rotates twice as slow. See the system as ONE. Sum the effective inertia of E and W and A, and take the total net torque (on either E's or W's side) and divide by the total EFFECTIVE inertia to get the acceleration. Depending on which side you took the torque from, you can calculate the velocities by also taking into the gearing (!). Otherwise the velocity of EA will not be 2*velocity(AW). For the effective inertia, please take a look at my site, Documents-><somewhere>. There's a description of summing inertia for geared components. It's not just Ie+Ia+Iw, but involves squares. There's a reasoning with energy behind it to prove the theory. Its base though was from Gillespie's book 'Fundamentals of Vehicle Dynamics' (very much recommended), where the squares are noted. Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On 14 Aug 2002 02:13:10 -0700, [email hidden] (Stefano Casillo) wrote: ... >Now.. w1 and w2. You need to wait to have them both to actually decide >what to do. The "combined force" of w1 and w2 act on the cage. Stefano, what do you do to add braking torques? How do you clip the maximum brake torque when one of the axles stops moving? I have the feeling even with your system it becomes quite complex with braking when you have 4WD, i.e. 3 differentials, each with varying properties (lots of 4WD differential configuration don't all have the same type of differential, for example a viscous in the center, and LSD's at the front/rear). Just something I'm still thinking about... :) If I get your system right, it would be relatively easy to do for example a Salisbury diff (like in GPL) with drive/coast angles that influence locking. It's just that the braking torques are somewhat of a bugger. Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
Right, I've implemented some stuff and it 'kind of' works The two things with it at the moment are a) It is very slow at top speeds, for example at max revs it is only going about 15mph in top gear when previously it would go 90+ b) There is no reaction torque into the driveline from the wheels I figure a) is because of using wrong inertia values which is making the angularAcc too big for the engine I have done as you have said Ruud and put in a clutch with T_Clutch = (engSpeed - [diffSpeed * gearRatio]) * factor where factor = (clutchAmount * maxClutchForce) at the moment I am simply using this Torque against the engine so.. engAngularAcc -= T_Clutch/engineInertia is this correct? Do I also need to do this to the torque into the differential too? Also, I have three inertia calculations; a) I_EngineSide, The inertia of the system up to the clutch from the engine side (so just I_engine) b) I_Gearbox, The inertia from the clutch to the diff (I_gear * (gearRatio^2) * I_finalDrive c) I_Effective, The inertia for the whole thing form the engine side to the diff, using the clutch amound I_EngineSide + (clutchAmount * (gearRatio^2) * I_GearboxSide) Is this all I need? I am getting a bit confused about which inertias to use in which calculations For engine acceleration I am just using engAngularAcc = T_Engine/I_EngineSide [Just the engines inertia] For differential accelerationIn I am using diffInAcc = T_At_Differential/I_Effective [The whole gearbox] It's slowly getting there, at least now it moves forward and because I am using the difference in velocities of the engine speed and the gearbox speed (based on gear ratios) the rpm now shifts down when I change up and vice versa, which never happened before!
Ruud van Gaal <[email hidden]> wrote in message news:[email hidden]...
Quoted text (10 lines)> >Careful here. If we're talking about an open diff, remember what > >you wrote above: the output torques *must be equal*. In the "wheel > >on ice" example, since wheel 2 cannot sustain any reaction torque > >(other than by inertia as it accelerates), the steady state torque > >on wheel 1 is *also* zero and the car does not move! > > Steady state yes, but still 0 because of the sum of torques adding up > to 0. There's still going 100Nm of torque to that end, it's just that > the ground can counter all of that. Put your hand under that wheel and > you should be able to feel it. (Kids, don't do this at home!) ;-)
No... with a truly open diff, if the right wheel has zero torque then so does the left. Trust me, my R/C car has enough torque at the wheels for minispike tyres to seriously hurt your hands, but hold one wheel still with the car in the air and punch the throttle (you may need three hands ;-) and all that happens is that the opposite tyre balloons - and that's with a slightly limited-slip diff.
Quoted text (8 lines)> >In brief, you can have > > output torque difference = k * output speed difference > > (this is a Viscous Coupling, approximately) > > > > output torque difference <= k * input torque > > Why is this last inequality needed? Why can't the output torque > difference not do what it likes?
Because a differential inherently equalises torques; to get a torque difference, you need some sort of LS device and this will have a maximum torque transfer capacity in any given state. Jonny
Here is a very odd sort of limited slip diff: <http://homepage.mac.com/selode/lego/limited.html> This model is a lot more "springy" than the real ones... Google for +differential +lego ... On Fri, 16 Aug 2002, Ruud van Gaal wrote:
Quoted text (12 lines)> On 14 Aug 2002 02:13:10 -0700, [email hidden] (Stefano Casillo) > wrote: > > ... > >I found myself struggling for days trying to get the diff code working > >without success.. then, one of my mate at work _built_ a real open > >differential with meccano for me... and after 5 mins playing with it > >in my hands I said: "right! now I know how to do it!".. > > They should market a thing like that. Have been searching for small > models like that for some time. :) >
[email hidden] (Ruud van Gaal) wrote in message news:<[email hidden]>... > Stefano, what do you do to add braking torques? How do you clip the > maximum brake torque when one of the axles stops moving? I just add the brake torque after the diff.. so they come back together with the reaction torque. I had a quick read to the code and I see a state prediction and a brake torque cap based on inertia seen by the wheel... the code is a bit unclear.. i wrote it ages ago...hmmmm...
Quoted text (7 lines)> I have the feeling even with your system it becomes quite complex with > braking when you have 4WD, i.e. 3 differentials, each with varying > properties (lots of 4WD differential configuration don't all have the > same type of differential, for example a viscous in the center, and > LSD's at the front/rear). > > Just something I'm still thinking about... :)
yes.. think about that ;-)... 4WD isnt something coming soon in my game.. if it's coming at all.. and.. anyway it scares me everytime... > If I get your system right, it would be relatively easy to do for > example a Salisbury diff (like in GPL) with drive/coast angles that > influence locking. It's just that the braking torques are somewhat of > a bugger. Yes.. _VERY_ easy.. I coded it in 1 hour 2 days ago.. I'll have a deeper look at the brakes code... you never know.. it could be a very well hidden strange behavior... Stefano Casillo www.drivingitalia.com/netkar
On Fri, 16 Aug 2002 21:52:58 +0100, "Jonny Hodgson" <[email hidden]> wrote:
Quoted text (16 lines)> >Ruud van Gaal <[email hidden]> wrote in message news:[email hidden]... > >> >Careful here. If we're talking about an open diff, remember what >> >you wrote above: the output torques *must be equal*. In the "wheel >> >on ice" example, since wheel 2 cannot sustain any reaction torque >> >(other than by inertia as it accelerates), the steady state torque >> >on wheel 1 is *also* zero and the car does not move! >> >> Steady state yes, but still 0 because of the sum of torques adding up >> to 0. There's still going 100Nm of torque to that end, it's just that >> the ground can counter all of that. Put your hand under that wheel and >> you should be able to feel it. (Kids, don't do this at home!) ;-) > >No... with a truly open diff, if the right wheel has zero torque >then so does the left.
Not doubting your R/C car experiment, but how can that be? If as you say the the left (grippy) wheel gets zero torque, then it would never spin up again, even if you let go with your hand. And how does this comply with the torque1=torque2=inputTorque/2 rule? If the engine delivers 200Nm of torque, each side gets 100Nm, right? So it would take at least 100Nm on one side to counter that, I'd figure, for the 100Nm on the grippy side to be transferred to the spinning side. On the other hand though, that would mean that the car gets a forward thrust of 100Nm at the grip side, hm... But surely, if you let go of the tire in that experiment, both wheels will start spinning again. So how much torque DOES it take then to keep the one tire still? I'm confused and need the Lego model. ;-) Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On 17 Aug 2002 09:36:03 -0700, [email hidden] (Stefano Casillo) wrote:
Quoted text (9 lines)>[email hidden] (Ruud van Gaal) wrote in message news:<[email hidden]>... >> Stefano, what do you do to add braking torques? How do you clip the >> maximum brake torque when one of the axles stops moving? > >I just add the brake torque after the diff.. so they come back >together with the reaction torque. I had a quick read to the code and >I see a state prediction and a brake torque cap based on inertia seen >by the wheel... the code is a bit unclear.. i wrote it ages >ago...hmmmm...
Perhaps a brake torque cap so that the integration step won't make it do velocity (spin) reversal? Hm. Perhaps very difficult to predict with multiple diffs. Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On 15 Aug 2002 01:24:23 -0700, [email hidden] (Stefano Casillo) wrote:
Quoted text (10 lines)>> Limited slips get more complicated, depending on the type. >> In brief, you can have >> output torque difference = k * output speed difference >> (this is a Viscous Coupling, approximately) >> >> output torque difference <= k * input torque > >Yes, for the clutches in the diff I'm using a RARS style friction >model... and with k function of ramp angles, clutch preload and input >torque.
Is that like: k=cos(rampAngle)*clutches*maxTorquePerClutch+preload where rampAngle changes depending on the incoming engine torque to allow for drive/coast angles? Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On Sat, 17 Aug 2002 14:50:37 GMT, Doug Milliken <[email hidden]> wrote: > >Here is a very odd sort of limited slip diff: > <http://homepage.mac.com/selode/lego/limited.html> >This model is a lot more "springy" than the real ones... Thanks for that, I'll have to enter the toystore pretty soon and check out that wonderful Lego Tecnic. :-) Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
On Fri, 16 Aug 2002 20:12:08 +0000 (UTC), "Alex Smith" <[email hidden]> wrote:
Quoted text (11 lines)>a) It is very slow at top speeds, for example at max revs it is only going >about 15mph in top gear when previously it would go 90+ >b) There is no reaction torque into the driveline from the wheels > >I figure a) is because of using wrong inertia values which is making the >angularAcc too big for the engine > >I have done as you have said Ruud and put in a clutch with > >T_Clutch = (engSpeed - [diffSpeed * gearRatio]) * factor >where factor = (clutchAmount * maxClutchForce)
So how could A happen then? Debug that. ;-) If engSpeed=maxRevs, and the car is driving 15mph, so diffSpeed*gearRatio comes out at 15mph, surely the (engSpeed-(diffSpeed*gearRatio)) calculation would not become 0? In other words, if the engine rpm is high, and car speed is low, T_Clutch will NOT be 0. Should be easy to find where it goes wrong there. >at the moment I am simply using this Torque against the engine so.. > >engAngularAcc -= T_Clutch/engineInertia > >is this correct? Do I also need to do this to the torque into the >differential too? Hm, I'd suggest summing ALL torques, and diving the summed torque over ALL (effective) inertia. Don't do it piecewise. In fact, I have a (bidirectional) tree of components, from engine -> clutch -> gearbox -> diff -> wheel1 & 2. From the bottom or top you can calculate effective inertia (by walking the tree up or down). Every component has a gear ratio (make sure you get the direction right), so it recursively dives into the tree, multiplying by gearRatio^2 when it returns with the (total) child inertia. Something like that at least. ;-) Be sure to check these things by hand or different formula.
Quoted text (12 lines)>Also, I have three inertia calculations; >a) I_EngineSide, The inertia of the system up to the clutch from the engine >side (so just I_engine) >b) I_Gearbox, The inertia from the clutch to the diff (I_gear * >(gearRatio^2) * I_finalDrive >c) I_Effective, The inertia for the whole thing form the engine side to the >diff, using the clutch amound > >I_EngineSide + (clutchAmount * (gearRatio^2) * I_GearboxSide) > >Is this all I need? I am getting a bit confused about which inertias to use >in which calculations
Combine everything. In my sim there's really 2 situations; either the clutch is locked or not. Locking the clutch isn't strictly necessary, but more stable. Once locked, the entire drivetrain is one big rotating object, only different parts rotate at different velocities because of gear ratios. Once they go out of sync, you've got a problem. ;-) It happens because of floating point roundoffs at least. That's why I think I just ignore some velocities (like axle from gearbox to diff) and use the wheel velocities to set that axle's velocity, if needed. Too much round-off really. I do get occasional moments where the engine speed != diffspeed (even when the clutch is locked). Then I switch to unlocked clutch mode. (note: every components is accelerated separately, so with all this gearing going on, floating pt error is bound to happen). In unlocked mode, you have 2 objects; pre-clutch (engine) and post-clutch (gearbox, diff etc). You rotate these then independently, with the clutch torque attempting to make the velocities equal. But note that it can be seen as 2 bodies with their own effective inertia. I have a separate 'ApplyAcceleration' type of function (abstract) which then applies the acceleration to each component (depending on gear ratio). Total acceleration = total summed torque / total effective inertia. Once you get velocity reversal (a very important concept which happens everywhere in the digital carsim world), meaning the engine suddenly is faster than the post-clutch part (or vice versa), you switch back to locked-clutch mode. Again, you could do without locked-clutch mode, but then you'd get the same back & forth behavior as you do with wheel with slipratios that keep switching from +10..-10. And even though that might seem to work, I think the average behavior is not the same as the smooth behavior. Like with a twitching wheel, the high SR's make for lower forces, giving problems. Although for tires this only is a pain at low speed, for engine-diff speeds this goes on at every RPM. >It's slowly getting there, at least now it moves forward and because I am >using the difference in velocities of the engine speed and the gearbox speed >(based on gear ratios) the rpm now shifts down when I change up and vice >versa, which never happened before! Still there seems to be a bug in that clutch torque generation. Also make sure you have enough clutch torque; the engine braking torque may be too high or something. Other than that, the clutch torque should be somewhat higher than your engine's maxtorque (as otherwise when flooring the throttle, your clutch would start to slip). Hope that helps, Ruud van Gaal Free car sim: http://www.racer.nl/ Pencil art : http://www.marketgraph.nl/gallery/
[email hidden] (Ruud van Gaal) wrote in message news:<[email hidden]>...
Quoted text (17 lines)> On 17 Aug 2002 09:36:03 -0700, [email hidden] (Stefano Casillo) > wrote: > > >[email hidden] (Ruud van Gaal) wrote in message news:<[email hidden]>... > >> Stefano, what do you do to add braking torques? How do you clip the > >> maximum brake torque when one of the axles stops moving? > > > >I just add the brake torque after the diff.. so they come back > >together with the reaction torque. I had a quick read to the code and > >I see a state prediction and a brake torque cap based on inertia seen > >by the wheel... the code is a bit unclear.. i wrote it ages > >ago...hmmmm... > > Perhaps a brake torque cap so that the integration step won't make it > do velocity (spin) reversal? > Hm. Perhaps very difficult to predict with multiple diffs. >
I'd say impossible.. maybe for 4WD I'll need some kind of "locked wheel" state... and start from there... there must be a solution.. modelica and ADAMS do it.. I can do it as well... yes. .let's be positive ;-) Stefano Casillo www.drivingitalia.com/netkar
Ruud van Gaal <[email hidden]> wrote in message news:[email hidden]...
Quoted text (12 lines)> >> Steady state yes, but still 0 because of the sum of torques adding up > >> to 0. There's still going 100Nm of torque to that end, it's just that > >> the ground can counter all of that. Put your hand under that wheel and > >> you should be able to feel it. (Kids, don't do this at home!) ;-) > > > >No... with a truly open diff, if the right wheel has zero torque > >then so does the left. > > Not doubting your R/C car experiment, but how can that be? > If as you say the the left (grippy) wheel gets zero torque, then it > would never spin up again, even if you let go with your hand. > And how does this comply with the torque1=torque2=inputTorque/2 rule?
In practice, bearings and gears aren't perfect (neither are they designed to be in a diff) so there's no such thing as a truly open diff. In car terms, though, the amount of torque transfer in a gear diff (you don't want to know about ball diffs!) is pretty small if there's no LS device. > If the engine delivers 200Nm of torque, each side gets 100Nm, right? If the engine delivers 200 Nm of torque, the zero-traction wheel accelerates at [100/I_wheel] rad/sec^2 until the torque reaches zero (electric motor) or the rev-limiter kicks in (IC engine). During this time, the grippy wheel *does* see the same amount of torque (an image comes to mind of a 2WD off-road buggy, beached on a track marker with one rear wheel on the ground - repeatedly punching the throttle causes it to move forward slightly as the free wheel accelerates, and will *sometimes* get it moving again). However, [full_engine_torque/2] will accelerate I_wheel pretty damn quickly ;-) so the impulse (force x time) acting on the car is not often sufficient to start it moving. > So it would take at least 100Nm on one side to counter that, I'd > figure, for the 100Nm on the grippy side to be transferred to the > spinning side. > On the other hand though, that would mean that the car gets a forward > thrust of 100Nm at the grip side, hm... Yup, which it doesn't, usually. Good, I haven't argued myself into a corner yet, so that suggests my thinking may be correct - you're always welcome to test it, though! Jonny

Sponsors

Affiliate Links

Sim Gaming Expo MOZA Racing Sim-Lab Fanatec TrakRacer Asetek Internet Privacy From NordVPN Dreamhost Capital One Credit Card Application Fanatical CDKeys Amazon Amazon UK Project Motor Racing iRacing Get your racing gloves, boots and more from Demon Tweeks. Enlist at Roberts Space Industries, developers of Star Citizen and Squadron 42


Back from the ashes since July, 2019. First created in 2001 with the merger of Legends Central (founded 1999) and simracing.dk.

A site by a sort of sim racer, for sim racers, about racing sims. News and information on both modern and historic sim racing software titles.

All products and licenses property of their respective owners.


Facebook Threads Bluesky Twitter Mastodon Instagram YouTube Tiktok Twitch Reddit Google News Apple News Subscribe via WordPress Flipboard eBay

Race Sim Central © 1999-2026 | Some links pay RSC a commission. Advertising does not equal endorsement.Cookie Policy