Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
V5/cs/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 = "RT";
37 public const string strLSZ = "TT";
38 public const string strRB = "CO";
39 public const string strLB = "CB";
40 public const string strMR2 = "MC_2S";
41 public const string strMR4 = "MC_4S";
42 public const string strMR = "MC";
43 public const string strKKR = "MOP";
44
45 //Fuelstrings
46 public const string strGasoline = "G";
47 public const string strDiesel = "D";
48 public const string strCNG = "CNG";
49 public const string strLPG = "LPG";
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 public const string strMidi = "Midi";
60 public const string strHeavy = "Heavy";
61
62 //Useclass
63 public const string strSU = "SU";
64 public const string strHybrid = "HEV";
65
66#if FLEET
67 //Fleetmix
68 private const string strAggPC = "PC";
69 private const string strAggBUS = "BUS";
70 private const string strAggHDV = "HDV";
71 private const string strAggTW = "TW";
72 private const string strAggPCHEV = "PC_HEV";
73 private const string strAggBUSHEV = "BUS_HEV";
74 public static string[] AGGREGATED_VEHICLECLASSES = new string[] { strAggPC,
80 #endif
81
82 //Drive train efficiency
83 public static double _DRIVE_TRAIN_EFFICIENCY;
84 public static double DRIVE_TRAIN_EFFICIENCY
85 {
86 get { return _DRIVE_TRAIN_EFFICIENCY; }
87 set { _DRIVE_TRAIN_EFFICIENCY = value; }
88 }
89
90 }
91}
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