The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
Fixing engine friction torque - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: Fixing engine friction torque (/showthread.php?tid=2181)



Fixing engine friction torque - NaN - 07-12-2015

LE torque data
blue: engine torque curve
black: current friction model
red: Heywood (1988) TFMEP model
[Image: o4a9cP1.png]

As you see current friction model is massively overestimating friction torque (I remember running into this issue when working on my sim code). Current code opens the clutch when braking to work around this.

The tfmep model as measured for several four-stoke engines over a wide range of engine speeds at wide-open throttle, looks like this:
tfmep = 97000 + 15 * rpm + 0.005 * rpm^2

For engines with throttles, one would need to add another ~50000 Pa (0.5bar) to the first coefficient to model a closed throttle. I am not sure if it really matters though. The difference would only be noticeable at low rpm.

To implement the tfmep model we need engine displacement. I'll be going through our cars and adding it (cars without engine friction would have displacement zero)

[engine]
displacement = 1.8E-3 # 1.8l or 1800cc

Help is welcome, of course.


RE: Fixing engine friction torque - NaN - 07-12-2015

Cars data is updated. I'll do some more testing before pushing the code.


RE: Fixing engine friction torque - NaN - 07-23-2015

F1-02 my frenemy Smile

black: torque curve
blue: tfmep model
red: tfmep model with "slightly" adjusted parameters
[Image: m5D6wct.png]

I'll add a way to override friction coefficients to deal with such special cases, will reuse currently unused torque-friction parameter for this I think.


RE: Fixing engine friction torque - Timo 6 - 07-24-2015

I'm guessing new data is needed before the cars will load with the lastest git? Time to revisit putting the data on github? - Sourceforge's SVN hosting is still down Sad


RE: Fixing engine friction torque - NaN - 07-25-2015

(07-24-2015, 12:47 PM)Timo 6 Wrote: I'm guessing new data is needed before the cars will load with the lastest git? Time to revisit putting the data on github? - Sourceforge's SVN hosting is still down Sad

Yeah, svn has been down for more than a week now.

One concern has been about the amount of data if I remember correctly.

StuntRally ( https://github.com/stuntrally/stuntrally ) has got its data on github. But it will probably be much smaller due to better mesh/texture sharing, have to checkout how large it is.


RE: Fixing engine friction torque - NaN - 07-25-2015

About 1GB seems to be the soft limit for github. https://help.github.com/articles/what-is-my-disk-quota/

It might work if we split up data, have a core data repo, and extra tracks, cars repos maybe.


RE: Fixing engine friction torque - CrystalH - 07-27-2015

Cool. Since a while I found this engine friction to be incredibly strong.
I suspect now all cars are somewhat faster with the new model right?

Anyways on the offtopic part of this topic:
Stunt Rally has data with sources in 1st repo and it's like 500MB or more and
tracks in 2nd which is about 1,5GB - total with change history since start.
Quite long and it's binary so each file is just saved again.
If you get tracks repo without history it is about 500MB.
Those maybe be a bit old values, could be bit more now.
Ofc this gets compressed on repo, not a lot though (heightmap with 32bit floats at 4MB is then 3MB with 7zip)

But you have lots of png which won't get compressed at all right.
Anyways I'm for trying it, svn is ancient now. If not github then maybe other places like gitlab, bitbucket etc,
Here is a list on Wiki: https://en.wikipedia.org/wiki/Comparison_of_source_code_hosting_facilities