Thanks for eveyone that helped out last week. I've been thinking
about this over the weekend, and I'm still a bit confused. Maybe it's
just the way I'm doing it.....
I've got an engine. The engine produces a torque at a specific RPM.
The Idle RPM is 850. The engine also has a flywheel that has inertia.
When the engine is at idle (850rpm) and the throttle is at idle
throttle (5%), then the internal torque of the engine equals the
output torque of the engine (5% of the max torque at 850rpm) and hence
no output torque is produced.
If the throttle is pressed, then the output torque of the engine goes
up, and the rpm of the engine is calculated by working out the
acceleration of the flywheel.
Now, if the engine is put into gear, then the inertia of the
drivetrain and the drive wheels are added into the engine flywheel
inertia (using the relevant equations). This seems to work pretty
well, but it is only modelling the car if there is no reaction from
the ground.
The problem I have is modelling the external forces on the wheels that
feed back to the engine. The original version I had derived the
engine RPM from the angular velocity of the wheels which was derived
from the speed of the vehicle. Now, I've got an engine that is it's
own object. The engine can have an rpm when in neutral even if the
vehicle isn't moving. So, the question is, how to work out how much
negative torque the wheels apply on the engine.
Cheers,
Nick.