Path: blob/main/src/foreign/PHEMlight/V5/cpp/Constants.cpp
169687 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2016-2025 German Aerospace Center (DLR) and others.3// PHEMlight module4// Copyright (C) 2016-2023 Technische Universitaet Graz, https://www.tugraz.at/5// This program and the accompanying materials are made available under the6// terms of the Eclipse Public License 2.0 which is available at7// https://www.eclipse.org/legal/epl-2.0/8// This Source Code may also be made available under the following Secondary9// Licenses when the conditions for such availability set forth in the Eclipse10// Public License 2.0 are satisfied: GNU General Public License, version 211// or later which is available at12// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html13// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later14/****************************************************************************/15/// @file Constants.cpp16/// @author Martin Dippold17/// @author Michael Behrisch18/// @date July 201619///20//21/****************************************************************************/22#include <config.h>2324#include "Constants.h"2526namespace PHEMlightdllV5 {2728const double Constants::GRAVITY_CONST = 9.81;29const double Constants::AIR_DENSITY_CONST = 1.182;30const double Constants::NORMALIZING_SPEED = 19.444;31const double Constants::NORMALIZING_ACCELARATION = 0.45;32const double Constants::SPEED_DCEL_MIN = 10 / 3.6;33const double Constants::ZERO_SPEED_ACCURACY = 0.5;34const double Constants::DRIVE_TRAIN_EFFICIENCY_All = 0.9;35const double Constants::DRIVE_TRAIN_EFFICIENCY_CB = 0.8;36const std::string Constants::HeavyVehicle = "HV";37const std::string Constants::strPKW = "PC";38const std::string Constants::strLNF = "LCV";39const std::string Constants::strLKW = "RT";40const std::string Constants::strLSZ = "TT";41const std::string Constants::strRB = "CO";42const std::string Constants::strLB = "CB";43const std::string Constants::strMR2 = "MC_2S";44const std::string Constants::strMR4 = "MC_4S";45const std::string Constants::strMR = "MC";46const std::string Constants::strKKR = "MOP";47const std::string Constants::strGasoline = "G";48const std::string Constants::strDiesel = "D";49const std::string Constants::strCNG = "CNG";50const std::string Constants::strLPG = "LPG";51const std::string Constants::strBEV = "BEV";52const std::string Constants::strEU = "EU";53const std::string Constants::strSI = "I";54const std::string Constants::strSII = "II";55const std::string Constants::strSIII = "III";56const std::string Constants::strMidi = "Midi";57const std::string Constants::strHeavy = "Heavy";58const std::string Constants::strSU = "SU";59const std::string Constants::strHybrid = "HEV";60double Constants::_DRIVE_TRAIN_EFFICIENCY = 0;6162const double& Constants::getDRIVE_TRAIN_EFFICIENCY() {63return _DRIVE_TRAIN_EFFICIENCY;64}6566void Constants::setDRIVE_TRAIN_EFFICIENCY(const double& value) {67_DRIVE_TRAIN_EFFICIENCY = value;68}69}707172