Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
dll_code/Constants.cs
Go to the documentation of this file.
1#define FLEET
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace 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,
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}
static const std::string strBEV
static const double AIR_DENSITY_CONST
static string[] AGGREGATED_VEHICLECLASSES
static const std::string strMR4
static const std::string strLSZ
static const double SPEED_DCEL_MIN
static const std::string strPKW
static const std::string strLPG
static const std::string strLB
static const std::string strKKR
static const double DRIVE_TRAIN_EFFICIENCY_All
static const std::string strRB
static const double ZERO_SPEED_ACCURACY
static const double GRAVITY_CONST
static const std::string strDiesel
const double SPEED_ROTATIONAL_INCREMENT
static const std::string HeavyVehicle
static const std::string strMR2
static const std::string strSII
const double POWER_POLLUTANT_INCREMENT
static const double NORMALIZING_ACCELARATION
static const double DRIVE_TRAIN_EFFICIENCY_CB
static const std::string strEU
static double _DRIVE_TRAIN_EFFICIENCY
static const std::string strHybrid
static const std::string strGasoline
static const std::string strCNG
static const std::string strSIII
static const double NORMALIZING_SPEED
static const std::string strLNF
static const std::string strLKW
static double DRIVE_TRAIN_EFFICIENCY
static const std::string strSI