1 #define FLEET 2 using System; 3 using System.Collections.Generic; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace PHEMlightdll 9 { 10 public class Constants 11 { 12 //Calculation constant 13 public const double GRAVITY_CONST = 9.81; 14 public const double AIR_DENSITY_CONST = 1.182; 15 public const double NORMALIZING_SPEED = 19.444; 16 public const double NORMALIZING_ACCELARATION = 0.45; 17 public const double SPEED_DCEL_MIN = 10 / 3.6; 18 public const double ZERO_SPEED_ACCURACY = 0.5; 19 public const double DRIVE_TRAIN_EFFICIENCY_All = 0.9; 20 public const double DRIVE_TRAIN_EFFICIENCY_CB = 0.8; 21 22 #if FLEET 23 //Fleetmix constants 24 public const double SPEED_ROTATIONAL_INCREMENT = 10 / 3.6; 25 public const double POWER_FC_INCREMENT = 0.1; 26 public const double POWER_POLLUTANT_INCREMENT = 0.3; 27 public const double NNORM_INCREMENT = 0.05; 28 #endif 29 30 //Strings 31 public const string HeavyVehicle = "HV"; 32 33 //Vehiclestrings 34 public const string strPKW = "PC"; 35 public const string strLNF = "LCV"; 36 public const string strLKW = "HDV_RT"; 37 public const string strLSZ = "HDV_TT"; 38 public const string strRB = "HDV_CO"; 39 public const string strLB = "HDV_CB"; 40 public const string strMR2 = "MC_2S"; 41 public const string strMR4 = "MC_4S"; 42 public const string strKKR = "MOP"; 43 44 //Fuelstrings 45 public const string strGasoline = "G"; 46 public const string strDiesel = "D"; 47 public const string strCNG = "CNG"; 48 public const string strLPG = "LPG"; 49 public const string strHybrid = "HEV"; 50 public const string strBEV = "BEV"; 51 52 //Euroclasses 53 public const string strEU = "EU"; 54 55 //Sizeclasse 56 public const string strSI = "I"; 57 public const string strSII = "II"; 58 public const string strSIII = "III"; 59 60 #if FLEET 61 //Fleetmix 62 private const string strAggPC = "PC"; 63 private const string strAggBUS = "BUS"; 64 private const string strAggHDV = "HDV"; 65 private const string strAggTW = "TW"; 66 public static string[] AGGREGATED_VEHICLECLASSES = new string[] { strAggPC, 67 strAggHDV, 68 strAggBUS, 69 strAggTW}; 70 #endif 71 72 //Drive train efficiency 73 public static double _DRIVE_TRAIN_EFFICIENCY; 74 public static double DRIVE_TRAIN_EFFICIENCY 75 { 76 get { return _DRIVE_TRAIN_EFFICIENCY; } 77 set { _DRIVE_TRAIN_EFFICIENCY = value; } 78 } 79 80 } 81 } 82