Released DMM512 Diesel-Locomotive

Discussion in 'Land' started by zagdima, Aug 13, 2018.

Tags:
?

It’s time for the F7 A Unit to get its official name, but I need help naming it so vote.

Poll closed Oct 3, 2018.
  1. DMM 512 (Divine Motor’s Motor)

    58 vote(s)
    39.7%
  2. Rail King 13

    41 vote(s)
    28.1%
  3. Eastbound C Edition (C= Cargo)

    28 vote(s)
    19.2%
  4. Aura HammerHead Thrust

    13 vote(s)
    8.9%
  5. Your own Name (write it in forum)

    6 vote(s)
    4.1%
  1. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    I did sent information how to make diesel-electric to MrCrash and Beamdrifter, also Arcanox mentions here in review section that his powertrain code is open source, so you guys should be able to get it all working, just credit Arcanox if you use his lua etc:
    https://www.beamng.com/resources/citybus-hybrid-drivetrain.5502/
     
  2. rosteuf

    rosteuf
    Expand Collapse

    Joined:
    Oct 3, 2018
    Messages:
    1
    Not working :(
    (TrainHorn.zip in folder "mods")
     
  3. raffaelthetrainlover

    raffaelthetrainlover
    Expand Collapse

    Joined:
    Aug 28, 2018
    Messages:
    20
    why isnt the Train file on the first page?
     
  4. SwagMaster11

    SwagMaster11
    Expand Collapse

    Joined:
    May 31, 2017
    Messages:
    448
    Will you remove the Rio Grande livery on the F7?
     
  5. acynder

    acynder
    Expand Collapse

    Joined:
    Mar 22, 2015
    Messages:
    231
    Yeah, I asked that because this mod and my UT-447 and I`m trying to understand all the custom code so I can repurpose it. Mostly because since really close on physical interation on the parts of his bus and a diesel electric, there are a few diferences that are key to make it close to real:
    1.The F7 has 4 DC Traction Motors, not one.
    2.There is no batt on the F7, the engine is generating the power all the time.
    3.The F7 does not have any kind of regenerative brake. It has a resistor brake and reverse polary pseudo dynamic brake.
    4.The F7 throtle is discrete. Being F0 Neutral and F1 - F7 a proportional slices of the powerband being F7 max power (1.500HP)
    5.Trains use a inverter to change direction. The inverter works like a (-1, 0, 1) gearbox, but is a electric device.
    6.Would be nice try to find a way to sync coupled locos, but not necesary.
     
  6. zagdima

    zagdima
    Expand Collapse

    Joined:
    Dec 13, 2013
    Messages:
    398
    Its only for F7 which currently not available. If you have F7 open vehicle config maybe it turned off.
    --- Post updated ---
    Yes. There was a poll about the name and we need new logo etc. We do this maybe we will release it in the repository. And as you know no real names should be used.
     
    • Informative Informative x 1
  7. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Some thoughts on those points.


    There are capacitors (or something) in real train that act as a buffer, which is like small battery, engine produces electricity all the time, but there still needs to be a buffer, so it is easiest to use battery for that.

    Having 5 engines starts to be rather complicated, you need a lot of custom code for that and in practice it is not different than 2 engines, 1 electric, which output is split to 4 and 1 diesel.

    You can use rangeBox as inverter, you just put gear ratios like -1,1 to it, that is a LOT easier than writing custom drivetrain code.

    Not sure if you have seen this, it is about SD90, but still some useful bits there:
    http://www.sze.hu/~szenasy/VILLVONT/Diesel-Electric_Loco_SD90MAC_EN.pdf

    Way I set powertrain was to have electric motor as secondaryEngine, no gearbox of any kind, just torque converter set so that it is as much solid as possible, then rangeBox to switch direction. mainEngine was a diesel, which was not connected to anything, then using older version of Arcanox's LUA code with very small edits, I got diesel to charge mainBattery all the time, also diesel rpm increased as power need did increase.

    Anyway, mainBattery needs to be small enough, I think I did read that SD90 would of had around 2kW, which I used for battery size, but I think that testing smallest size that system works with might be useful. It will not work without battery as battery is where electric motor gets power from, like diesel needs a diesel fuel tank.

    Same way regenerative braking is to brake with electric motor more than to charge battery, battery is in system just so that there is route for electricity to electric motor, so it is about same to charge miniscule battery as emulation of real train braking system.

    Haven't test with new version of hybrid bus code though.

    So in practice small battery acts as buffer, but it is too small to actually power the electric motor, so diesel charges battery with correct kW rating, it is easiest way to get correct functionality.

    To get perfectly accurate behavior would require custom vehicle controllers, etc. that is very complex job, which I don't posses ways to do, but with way I did it, it was possible to make something that behaves like a real thing, drives with electricity.

    If you want to limit throttle to only 7 steps, then you would need to make custom vehicle controller for that too, with custom inputs, you can look large spinner for example, it should be possible to adapt that code for the purposes, but it is really quite big job and I'm not sure how speed regulation would then work as for our tracks 7 steps might be bit coarse adjustment.

    For syncing locos, you need to import inputs, but you can't use gearbox then, you can transmit throttle though, which should be enough as you can switch to other loco and click rangeBox to L or H and do opposite to other loco and you should get drive to correct directions if not using gearbox.

    My bus towhitch is like this, I added throttle input there to help you, but with adaption of this you should be able to make coupled locos to both drive:
    ["twf",0.0,-7.432,0.226,{"tag":"tow_hitch","couplerStrength":2001000,"couplerRadius":1,"importElectrics": ["lowhighbeam", "reverse", "signal_L", "signal_R"],"importInputs": ["brake", "parkingbrake","throttle"]

    For powertrain you need (from memory, sorry if I remember some bits wrong)
    electricMotor, secondaryEngine, dummy
    torqueConverter, torqueconvertere, secondaryEngine,1
    rangeBox, rangebox, torqueconvertere, 0
    then multishaft or diffs and connect those to wheels

    combustionEngine, mainEngine, dummy

    Maybe that helps, I hope :p
     
  8. SwagMaster11

    SwagMaster11
    Expand Collapse

    Joined:
    May 31, 2017
    Messages:
    448
    I guess i shall just keep the old F7 file
     
  9. acynder

    acynder
    Expand Collapse

    Joined:
    Mar 22, 2015
    Messages:
    231
    Ok, I follow mostly your advise and I made it with one ICE and one Electric. It runs, but is sooo slow... If I send it to you will you help me calibrate all the parameters? Im a electrician, I can only go so far.

    upload_2018-10-5_11-58-18.png
     
  10. Tyrone_FTW

    Tyrone_FTW
    Expand Collapse

    Joined:
    Oct 30, 2016
    Messages:
    24
    Where's the file?
     
  11. Octothorp Obelus

    Octothorp Obelus
    Expand Collapse

    Joined:
    Jan 24, 2014
    Messages:
    268
    I suggest an EMD Model 40, it's a cute little shunter (of course this is entirely up to you since it is your mod, just giving my two cents). Really love this mod so far, it is very fun :)

    EMD Model 40:
     
    • Agree Agree x 1
  12. acynder

    acynder
    Expand Collapse

    Joined:
    Mar 22, 2015
    Messages:
    231
    I may give it a try, do you have any specs or datasheet of any kind to know the basics of ti?
     
  13. Octothorp Obelus

    Octothorp Obelus
    Expand Collapse

    Joined:
    Jan 24, 2014
    Messages:
    268
    Unfortunately, I could not find any datasheets, but I'll keep looking. In the meantime, the Wikipedia article has some arbitrary information about it. https://en.wikipedia.org/wiki/EMD_Model_40

    EDIT:

    I found this page that covers its powertrain in some detail.
    As well as this page with dimensions of the overall locomotive
     
  14. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Hmm, how did you got ICE to drive electric motor? I would like to see how to do that actually so if you wish to send files to me that would be cool :D

    Anyway looking your torque curve it is wrong way around for electric motor, 0rpm should have highest torque and torque should drop off with increase of rpm. At stall torque is highest as well as tractive effort.

    For ICE don't connect it to anything, not even torque converter only to dummy device as hybrid bus lua will control ICE, so when that is not connected to anything it just generates electricity, which is transferred to electric motor via battery.

    Some bits that might help with it. Also I did set differentials to locked with very high locking torque, after going too far things starts to break, backing down from that point a bit was which I settled with. However if you use multishaft instead of diffs you will get even drive to all wheels, afaik.

    About electric motor torque, I did based mine on SD90, but setting value to 6 times of single electric motor used in SD90 to get total power level of SD90, I did notice power being way too much, or then grip was too much, so I kept decreasing power until I ended up with something less insane performance level, you can kinda measure amount of tractive effort with node grabbers, just connect many to rear of train and see how much it pulls.

    With diffs there is torque multiplication, unless one uses ratios of 1, can't remember if I found anything about real train if there is direct drive to wheel or some kind of ratio, but to have electric motor turning maximum rpm of 3445 or so rpm at maximum speed was my target there.

    "powertrain": [
    ["type", "name", "inputName", "inputIndex"],
    ["combustionEngine", "mainEngine", "dummy", 0],
    ],

    "secondaryEngine":{
    "torque":[
    ["rpm", "torque"]
    [0, 28000],
    [900, 15500],
    [3445, 12900],
    [3645, 0],
    ],
    "idleRPM":0,

    "powertrain": [
    ["type", "name", "inputName", "inputIndex"],
    ["electricMotor", "secondaryEngine", "dummy", 1],
    ["rangeBox", "rangebox", "torqueConvertere", 1],
    ["torqueConverter", "torqueConvertere", "secondaryEngine", 1],

    "rangebox":{
    "gearRatios":[-1,1],
    },
    "torqueConvertere": {
    "uiName":"E Torque Converter",
    "converterDiameter": 3.84,
    "converterStiffness":146,
    "couplingAVRatio":0.8,
    "stallTorqueRatio":2.0,
    "additionalEngineInertia":0.14,
    "lockupClutchTorque":250000,
    "torqueConverterLockupRPM":1,
    // "torqueConverterLockupMinGear":0,
     
  15. zagdima

    zagdima
    Expand Collapse

    Joined:
    Dec 13, 2013
    Messages:
    398
    which train and which carts?
     
  16. sohnzugspitze

    sohnzugspitze
    Expand Collapse

    Joined:
    Jan 20, 2018
    Messages:
    50
    nice mod
     
    • Like Like x 1
  17. zagdima

    zagdima
    Expand Collapse

    Joined:
    Dec 13, 2013
    Messages:
    398
    Now i have permission from Chris_Lucas to upload Subway mod. Do we need it in this thread or better upload it to another original thread or maybe somebody wants to upload it there?
     
  18. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    I think you should put it to first post of this thread as this thread is very much a thread train folks keep checking and anyone can be directed to this thread. Great that issue got solved!
     
  19. Rod shop

    Rod shop
    Expand Collapse
    Banned

    Joined:
    Oct 9, 2017
    Messages:
    354
    please bring the f7 unit and the subway back
     
  20. zagdima

    zagdima
    Expand Collapse

    Joined:
    Dec 13, 2013
    Messages:
    398
    F7 Under reconstruction, and Subway - i don't know what to do. I'm afraid thread will be blocked again :(
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice