Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/utils/emissions/PHEMConstants.h
169678 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2013-2025 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
14
/// @file PHEMConstants.h
15
/// @author Nikolaus Furian
16
/// @author Daniel Krajzewicz
17
/// @date Thu, 13.06.2013
18
///
19
// Holds constants and data version info for PHEM Light
20
/****************************************************************************/
21
22
#pragma once
23
#include <config.h>
24
25
const double GRAVITY_CONST = 9.81;
26
const double AIR_DENSITY_CONST = 1.182;
27
const double SECONDS_PER_HOUR = 3600;
28
const double NORMALIZING_SPEED = 19.444;
29
const double NORMALIZING_ACCELARATION = 0.45;
30
const double DENSITY_DIESEL = 1;
31
const double DENSITY_GASOLINE = 1;
32
const double SPEED_DCEL_MIN = 10 / 3.6;
33
const double M_PI2 = 3.14159265358979323846;
34
const double ZERO_SPEED_ACCURACY = 0.1;
35
const double SPEED_ROTATIONAL_INCREMENT = 10 / 3.6;
36
const double POWER_FC_INCREMENT = 0.1;
37
const double POWER_POLLUTANT_INCREMENT = 0.3;
38
const double NNORM_INCREMENT = 0.05;
39
40
const std::string PHEM_DATA_VERSION = "V5";
41
42