Skip to content
forked from pfyhr/evReqGen

A simulator to find desired wheeltorque curves for vehicles

License

Notifications You must be signed in to change notification settings

sskoog/dragraceSim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GUI demo

A simulator to find desired wheeltorque curves for vehicles

Running GUI

The GUI is now ready-ish for testing! run it by invoking

$ python flaskpage.py

Then point your browser to 127.0.0.1:5000, fill in the boxes and click run to see your result. It requires many libraries, mainly on the Python side, if you get some errors try:

pip install numpy scipy flask matplotlib

Replace pip with conda if you are of that persuasion. Might require new-ish Python version also, 3.8 or newer. Please post any bugs/issues you find as comments to this repo :)

Performance

The Python code is now quite fast thanks to @vakuj and some assistance from @najmehabiri, resulting in:

NP:       0.1813 s
Vanilla:  0.1791 s
MATLAB:   0.3651 s
Gradient: 0.0175 s

See if you can beat that on an average of 10 runs Simon.

Known issues

JSON reference files are now slightly ill formatted and need to be regenerated. Would be happy to get my hands on some more torque curves for EVs!

About

A simulator to find desired wheeltorque curves for vehicles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.8%
  • Python 39.6%
  • HTML 15.6%
  • CSS 1.0%