Looking for FCalC code
#1
Posted 01 April 2020 - 04:11 AM
I´m looking for the program code of FCalC, don´t know whether it is used to be included when downloadable from trainsim or not. Otherwise it´s not that possible to understand the internal workings (calculations) of it but I want to make an up-to-date version of it. Any davice on how to where to get could help.
Nick
#2
Posted 01 April 2020 - 09:18 AM
#3
Posted 01 April 2020 - 09:38 AM
Although it's shown as FCALC v2.0, the version available from UKTS appears to contain earlier files than the one available from trainsim.com. However, probably of more importance to you, the UKTS version does contain the source code - Fcalc_20.c. If you are a member, it may be downloaded as UKTS_10104_FCalc_20.
You should read the "Terms & Limitations" in the readme from the UKTS version, but you may be interested in this one :
Quote
the idea and the use of my source code. I also require that you send me the final
version of your program and source code so that I can verify that it does the
calculations correctly.
Cheers,
Ged
#4
Posted 01 April 2020 - 09:40 AM
#5
Posted 01 April 2020 - 10:03 AM
Unfortunately, neither of the versions of FCALC in the UKTS download (DOS & Windows) will work with 64-bit Windows, being 16-bit programs.
The trainsim.com version does work in 64-bit Windows. I wouldn't think the actual source code will be different, only the compilation of it into the executable file, but I know nothing about C!
Cheers,
Ged
#6
Posted 01 April 2020 - 11:52 AM
#7
Posted 01 April 2020 - 01:03 PM
NickonWheels, on 01 April 2020 - 11:52 AM, said:
Quote
I am using FCalc2 on 64 bit WIN7 professional OS...works quite well and more importantly I trust Mr. Realmuto's methodology and transparency in the programs documents.
Why not just develop your own code and program independent of any previous efforts and see how that develops. Why the need to dissect something already being used and well regarded? Just invent something that is uniquely yours. Put it out there and let the work be judged on its' own merits.
#8
Posted 01 April 2020 - 06:00 PM
Several of these parameters could be used in other functions or features (e.g., MassEmpty(), MassLoaded()).
Some time ago I posted to the file library an experimental spreadsheet that produces parameters for .wags. In it are formulas for the original Davis formula. Find the A, B, C output cells and follow the references back to wher ethe computation occurs.
#9
Posted 02 April 2020 - 01:00 AM
R H Steele, on 01 April 2020 - 01:03 PM, said:
I´m indeed developing my own calculation of friction, the thing is just ORTS using the old MSTS friction settings is a little bit more faithful in regards to starting friction than Davis implementations. As you can read here I actually made a working code extension were you can simply enter starting friction and merge speed, but the downloadable ORTS code has (at least this is what I encountered) a built-in bug seemingly decreasiong usable RAM space i. e. a nearly objectless route works fine but quite intensive routes crash immediately after loading. Such an extension could be useful for many although this might be subjective. Using FCalc extensively nowadays looks like a mediocre compromise to me, but not knowing how this program works internally makes realistic values even harder to come by.
#10
Posted 02 April 2020 - 04:29 AM