NMPB08 Shared Libraries
|
Class used to sound attenuation calculations along a given path, with a specified frequency. More...
#include <CalculPropagation.h>
Public Member Functions | |
Attenuation (PropagationPath *path, double frequency) | |
Initialization of Attenuation class with the path and the frequency. | |
Attenuation (PropagationPath *path, double frequency, double favourableProbability) | |
Initialization of Attenuation class with the path, the frequency and the favorable probability. | |
double | DivergenceAttenuationCalculation (double dist) |
Attenuation calculation following geometric divergence. | |
double | AtmosphericAbsorptionCalculation (double dist, double freq) |
Atmospheric absorption. | |
void | BoundaryAttenuationCalculation (int nbSideDiffractions) |
Calculates border attenuation, in homogeneous and favorable conditions. | |
void | AttenuationCalculation () |
Calculates total attenuation along the propagation path, in homogeneous and favorable conditions. | |
void | FillFrequencyMap (map< int, double > newMap) |
Fills the _attenuationCoeffByFrequencyMap map with values of another map. | |
double | getHomogeneousAttenuation () |
Gets attenuation along the path in homogeneous conditions, for the given frequency. | |
double | getFavorableAttenuation () |
Gets attenuation along the path in favorable conditions, for the given frequency. | |
double | getDivergenceAttenuation () |
Gets divergence attenuation. | |
double | getAtmosphericAbsorption () |
Gets atmospheric absorption. | |
double | getGroundAttenuation_h () |
Gets ground attenuation in homogeneous conditions. | |
double | getGroundAttenuation_f () |
Gets ground attenuation in favorable conditions. | |
double | getDiffractionAttenuation_h () |
Gets diffraction attenuation in homogeneous conditions. | |
double | getDiffractionAttenuation_f () |
Gets diffraction attenuation in favorable conditions. | |
double | getEmbankmentAttenuation () |
Gets embankment attenuation. | |
double | getBoundaryAttenuation_h () |
Gets border attenuation in homogeneous conditions. | |
double | getBoundaryAttenuation_f () |
Gets border attenuation in favorable conditions. |
Class used to sound attenuation calculations along a given path, with a specified frequency.
Definition at line 102 of file CalculPropagation.h.
CalculPropagationNMPB::Attenuation::Attenuation | ( | PropagationPath * | path, |
double | frequency | ||
) |
Initialization of Attenuation class with the path and the frequency.
path | The path where the attenuation will be calculated |
frequency | The frequency to calculation sound attenuation |
Definition at line 194 of file CalculPropagation.cpp.
CalculPropagationNMPB::Attenuation::Attenuation | ( | PropagationPath * | path, |
double | frequency, | ||
double | favourableProbability | ||
) |
Initialization of Attenuation class with the path, the frequency and the favorable probability.
path | The path where the attenuation will be calculated |
frequency | The frequency to calculation sound attenuation |
favourableProbability | The favorable probability |
Definition at line 216 of file CalculPropagation.cpp.
double CalculPropagationNMPB::Attenuation::AtmosphericAbsorptionCalculation | ( | double | dist, |
double | freq | ||
) |
Atmospheric absorption.
Method to calculate atmospheric absorption attenuation § 9.2, formula (21), p. 37
dist | : direct distance between source and receptor |
freq | : third octave bands center frequency |
Method to calculate atmospheric absorption attenuation § 9.2, formula (21), p. 37
dist | : direct distance between source and receptor |
freq | : octave bands center frequency |
Definition at line 325 of file CalculPropagation.cpp.
void CalculPropagationNMPB::Attenuation::AttenuationCalculation | ( | ) |
Calculates total attenuation along the propagation path, in homogeneous and favorable conditions.
Method to calculate total attenuation along the propagation path, in homogeneous and favorable conditions § 5.2.1, formula (4), p.17 and § 5.2.2, formula (6), p.17
ERRSideDiff |
Definition at line 540 of file CalculPropagation.cpp.
void CalculPropagationNMPB::Attenuation::BoundaryAttenuationCalculation | ( | int | nbSideDiffractions | ) |
Calculates border attenuation, in homogeneous and favorable conditions.
Method to calculate border attenuation, in homogeneous and favorable conditions § 5.2.1 and 5.2.2, p.17-18
nbSideDiffractions | The number of side diffractions in the path |
ERRNoPoint,ERROnePoint,ERRAttCoeffFrequency |
Definition at line 404 of file CalculPropagation.cpp.
double CalculPropagationNMPB::Attenuation::DivergenceAttenuationCalculation | ( | double | dist | ) |
Attenuation calculation following geometric divergence.
Method for attenuation calculation following geometric divergence § 9.1, formula (20), p. 37
dist | : Direct distance between source and receiver. |
Definition at line 240 of file CalculPropagation.cpp.
void CalculPropagationNMPB::Attenuation::FillFrequencyMap | ( | map< int, double > | newMap | ) |
Fills the _attenuationCoeffByFrequencyMap map with values of another map.
newMap | The map to get values |
Definition at line 272 of file CalculPropagation.cpp.
double CalculPropagationNMPB::Attenuation::getAtmosphericAbsorption | ( | ) | [inline] |
Gets atmospheric absorption.
Definition at line 217 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getBoundaryAttenuation_f | ( | ) | [inline] |
Gets border attenuation in favorable conditions.
Definition at line 287 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getBoundaryAttenuation_h | ( | ) | [inline] |
Gets border attenuation in homogeneous conditions.
Definition at line 277 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getDiffractionAttenuation_f | ( | ) | [inline] |
Gets diffraction attenuation in favorable conditions.
Definition at line 257 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getDiffractionAttenuation_h | ( | ) | [inline] |
Gets diffraction attenuation in homogeneous conditions.
Definition at line 247 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getDivergenceAttenuation | ( | ) | [inline] |
Gets divergence attenuation.
Definition at line 207 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getEmbankmentAttenuation | ( | ) | [inline] |
Gets embankment attenuation.
Definition at line 267 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getFavorableAttenuation | ( | ) | [inline] |
Gets attenuation along the path in favorable conditions, for the given frequency.
Definition at line 197 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getGroundAttenuation_f | ( | ) | [inline] |
Gets ground attenuation in favorable conditions.
Definition at line 237 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getGroundAttenuation_h | ( | ) | [inline] |
Gets ground attenuation in homogeneous conditions.
Definition at line 227 of file CalculPropagation.h.
double CalculPropagationNMPB::Attenuation::getHomogeneousAttenuation | ( | ) | [inline] |
Gets attenuation along the path in homogeneous conditions, for the given frequency.
Definition at line 187 of file CalculPropagation.h.