//---------------------------------------------------------------------------------------
 //-------------------------------- Constructors -----------------------------------------
 //---------------------------------------------------------------------------------------
 public Drivetrain(TorqueCurve torqueCurve, double[] gearRatios, double gearRatioFinalDrive,
                   EngineTuning engineTuning,
                   TransmissionTuning transmissionTuning, TransmissionGearsTuning transmissionGearsTuning,
                   DifferentialTuning differentialTuning, DifferentialGearsTuning differentialGearsTuning)
 {
     this.engine       = new Engine(torqueCurve, engineTuning);
     this.transmission = new Transmission(gearRatios, transmissionTuning, transmissionGearsTuning);
     this.differential = new Differential(gearRatioFinalDrive, differentialTuning, differentialGearsTuning);
 }
Beispiel #2
0
 //---------------------------------------------------------------------------------------
 //-------------------------------- Constructors -----------------------------------------
 //---------------------------------------------------------------------------------------
 public Transmission(double[] gearRatios, TransmissionTuning transmissiontuning, TransmissionGearsTuning gearboxTuning)
 {
     this.numberOfGears             = gearRatios.Length;
     this.torqueIncreaseRatioTuning = transmissiontuning.GetPercentageIncrease();
     this.gearRatios = new double[numberOfGears];
     for (int i = 0; i < numberOfGears; i++)
     {
         this.gearRatios[i] = gearRatios[i] + gearRatios[i] * gearboxTuning.GetPercentageIncrease();
     }
 }