SUMO - Simulation of Urban MObility
HelpersHarmonoise.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 // Helper methods for Harmonoise-based noise emission computation
17 /****************************************************************************/
18 #ifndef HelpersHarmonoise_h
19 #define HelpersHarmonoise_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <vector>
28 #include <limits>
29 #include <cmath>
30 #include <utils/common/StdDefs.h>
32 
33 
34 // ===========================================================================
35 // class definitions
36 // ===========================================================================
45 public:
53  static double computeNoise(SUMOEmissionClass c, double v, double a);
54 
55 
61  inline static double sum(double val) {
62  return double(10. * log10(val));
63  }
64 
65 
66 private:
69 
71  static double myR_A_C1_Parameter[27];
72 
74  static double myR_B_C1_Parameter[27];
75 
77  static double myR_A_C3_Parameter[27];
78 
80  static double myR_B_C3_Parameter[27];
81 
83  static double myT_A_C1_Parameter[27];
84 
86  static double myT_B_C1_Parameter[27];
87 
89  static double myT_A_C3_Parameter[27];
90 
92  static double myT_B_C3_Parameter[27];
94 
95 
97  static double myAOctaveBandCorrection[27];
98 
99 
100 };
101 
102 
103 #endif
104 
105 /****************************************************************************/
106 
static double myAOctaveBandCorrection[27]
A-weighted correction for octave bands.
static double myR_B_C3_Parameter[27]
rolling component, heavy vehicles, beta
static double myR_A_C3_Parameter[27]
rolling component, heavy vehicles, alpha
static double computeNoise(SUMOEmissionClass c, double v, double a)
Returns the noise produced by the a vehicle of the given type at the given speed. ...
static double myT_B_C3_Parameter[27]
traction component, heavy vehicles, beta
static double myT_B_C1_Parameter[27]
traction component, light vehicles, beta
int SUMOEmissionClass
static double myT_A_C3_Parameter[27]
traction component, heavy vehicles, alpha
static double myR_B_C1_Parameter[27]
rolling component, light vehicles, beta
Helper methods for Harmonoise-based noise emission computation.
static double myR_A_C1_Parameter[27]
rolling component, light vehicles, alpha
static double myT_A_C1_Parameter[27]
traction component, light vehicles, alpha
static double sum(double val)
Computes the resulting noise.