What am I working on: I have been working on a Matlab Simulink Simulation Model for EVs which calculates the power consumption for any given Drive Cycle (Velocity Vs Time Plots).
How does the model work: The model works calculating the error difference between the given velocity and the model and PID closes the gap using by adjusting the Accelerator Pedal Position which delivers Torque using the equations: (APP% x Max Possible Power)/Motor Angular Speed in Rads. This Torque (multiplied by the Gear Ratio) provides the Traction Force at wheels to overcome inertia, Aero Drag, Rolling Resistance and Gradient (if any). After summing up the positive traction force and Negative resistance force, the left over force is considered to pull the car forward. Dividing the force with the Inertial mass, gives us the acceleration and velocity is then calculated by integrating the acceleration. This velocity is then returned to be compared with the initial drive cycle in the PID control setup. Further integration of the Velocity also gives us the position (Hence range). The angular speed is also calculated from this velocity using Velocity = Angular Speed x Radius. Also I have ensured that the angular speed doesnt cross a particular limit, considering the RPM limit in Motors.
What is the issue: The calculated velocity doesnt seem to be correct considering the fact that every time I increase my gear ratios, top speed seems to increase which actually would bring down my top speed instead. Also these velocities do not seem to consider the RPM limit setup and only considers higher acceleration due to increased torque and hence higher speed.
What am I missing ??! : *your turn*