|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Representation of one of the most optimal path between source and receptor: S—>R. The class TYChemin represents a path between a Source and a receptor (Recepteur class). It's constituted of a collection of steps (TYEtape class). More...
#include <TYChemin.h>

Public Member Functions | |
| TYChemin () | |
| Constructor. More... | |
| TYChemin (const TYChemin &other) | |
| Copy contructor. More... | |
| virtual | ~TYChemin () |
| Destructor. More... | |
| TYChemin & | operator= (const TYChemin &other) |
| Operator =. More... | |
| bool | operator== (const TYChemin &other) const |
| Operator ==. More... | |
| bool | operator!= (const TYChemin &other) const |
| Operator !=. More... | |
| void | calcAttenuation (const TYTabEtape &tabEtapes, const AtmosphericConditions &atmos, double dp=0.0, double hs=0.0, double hr=0.0, double Gs=0.5, double Gm=0.5, double Gr=0.5) |
| void | computeBarAttenuation (const OSpectreOctave &Dz, const bool vertical, const bool left) |
| OSpectreOctave & | getAttenuation (TYTypeAttenuation type) |
| OSpectreOctave & | getAttenuation () |
| Return the path attenuation. More... | |
| const OSpectreOctave & | getAttenuation () const |
| void | setAttenuation (const TYTypeAttenuation &type, const OSpectreOctave &att) |
| void | setAttenuationBarWhenNoPath (bool vertical, bool left) |
| Set attenuation bar to max to traduce the lack of diffracted ray on this path. More... | |
| double | getLongueur () |
| Get/Set the path length. More... | |
| const double | getLongueur () const |
| void | setLongueur (const double &longueur) |
| double | getDistance () |
| Get/Set the distance between source and receptor. More... | |
| const double | getDistance () const |
| void | setDistance (const double &distance) |
| void | setType (const TYTypeChemin &type) |
| Change the path type. More... | |
| const TYTypeChemin | getType () const |
| void | build_eq_path (const TYTabEtape &tabEtapes) |
| acoustic_path * | get_ray (OPoint3D ptR) |
| TYChemin () | |
| TYChemin (const TYChemin &other) | |
| virtual | ~TYChemin () |
| TYChemin & | operator= (const TYChemin &other) |
| Operator =. More... | |
| bool | operator== (const TYChemin &other) const |
| Operator ==. More... | |
| bool | operator!= (const TYChemin &other) const |
| Operator !=. More... | |
| void | calcAttenuation (const TYTabEtape &tabEtapes, const AtmosphericConditions &atmos) |
| Compute the global attenuation on the path. More... | |
| OSpectreComplex & | getAttenuation () |
| const OSpectreComplex & | getAttenuation () const |
| void | setAttenuation (const OSpectreComplex &att) |
| Set the attenuation. More... | |
| double | getLongueur () |
| const double | getLongueur () const |
| void | setLongueur (const double &longueur) |
| double | getDistance () |
| const double | getDistance () const |
| void | setDistance (const double &distance) |
| void | setType (const int &type) |
| Change the path type. More... | |
| int | getType () const |
| void | build_eq_path (const TYTabEtape &tabEtapes) |
| acoustic_path * | get_ray (OPoint3D ptR) |
Protected Attributes | |
| TYTypeChemin | _typeChemin |
| Path type (has an influence on the algorithm) More... | |
| double | _longueur |
| Total path length. More... | |
| double | _distance |
| Direct distance between source and receptor. More... | |
| std::map< TYTypeAttenuation, OSpectreOctave > | _attenuations |
| Attenuations spectra of the path. More... | |
| OSpectreOctave | _attenuation |
| acoustic_path * | _eq_path |
| Equivalent acoustic_path. More... | |
| OSpectreComplex | _attenuation |
| Attenuation spectrum of the path. More... | |
Private Member Functions | |
| void | calcGroundAttenuations (double distance, double hs, double hr, double Gs, double Gm, double Gr) |
| OSpectreOctave | calcGroundAttenuationSR (double dp, double h, double G) |
| OSpectreOctave | calcGroundAttenuationM (double q, double Gm) |
Representation of one of the most optimal path between source and receptor: S—>R. The class TYChemin represents a path between a Source and a receptor (Recepteur class). It's constituted of a collection of steps (TYEtape class).
Definition at line 70 of file TYChemin.h.
| TYChemin::TYChemin | ( | ) |
Constructor.
Definition at line 19 of file TYChemin.cpp.
| TYChemin::TYChemin | ( | const TYChemin & | other | ) |
Copy contructor.
Definition at line 25 of file TYChemin.cpp.
|
virtual |
| TYChemin::TYChemin | ( | ) |
| TYChemin::TYChemin | ( | const TYChemin & | other | ) |
|
virtual |
| void TYChemin::build_eq_path | ( | const TYTabEtape & | tabEtapes | ) |
Definition at line 187 of file TYChemin.cpp.


| void TYChemin::build_eq_path | ( | const TYTabEtape & | tabEtapes | ) |
| void TYChemin::calcAttenuation | ( | const TYTabEtape & | tabEtapes, |
| const AtmosphericConditions & | atmos | ||
| ) |
Compute the global attenuation on the path.
| [in] | tabEtapes | Array of steps. |
| [in] | atmos | Atmospheric ocnditions. |
| [in] | dp | Distance 2D between source and receptor for considered path. |
| [in] | hs | Height of source. |
| [in] | hr | Height of receptor |
| [in] | Gs | Ground factor of the source zone. |
| [in] | Gm | Ground factor of the middle zone. |
| [in] | Gr | Ground factor of the receptor zone. |
Definition at line 86 of file TYChemin.cpp.

| void TYChemin::calcAttenuation | ( | const TYTabEtape & | tabEtapes, |
| const AtmosphericConditions & | atmos, | ||
| double | dp = 0.0, |
||
| double | hs = 0.0, |
||
| double | hr = 0.0, |
||
| double | Gs = 0.5, |
||
| double | Gm = 0.5, |
||
| double | Gr = 0.5 |
||
| ) |
Definition at line 87 of file TYChemin.cpp.


|
private |
|
private |
Definition at line 205 of file TYChemin.cpp.


|
private |
| void TYChemin::computeBarAttenuation | ( | const OSpectreOctave & | Dz, |
| const bool | vertical, | ||
| const bool | left | ||
| ) |
\ brief compute barrier attenuation on the path
Definition at line 126 of file TYChemin.cpp.
| acoustic_path * TYChemin::get_ray | ( | OPoint3D | ptR | ) |
| acoustic_path* TYChemin::get_ray | ( | OPoint3D | ptR | ) |
|
inline |
Return the path attenuation.
const OSpectreComplex& getAttenuation()
Definition at line 134 of file TYChemin.h.
|
inline |
Definition at line 83 of file TYChemin.h.
|
inline |
Definition at line 139 of file TYChemin.h.
|
inline |
Definition at line 87 of file TYChemin.h.
| OSpectreOctave & TYChemin::getAttenuation | ( | TYTypeAttenuation | type | ) |
|
inline |
Get/Set the distance between source and receptor.
const double getDistance() void setDistance(const double & distance)
Definition at line 188 of file TYChemin.h.
|
inline |
Definition at line 129 of file TYChemin.h.
|
inline |
Definition at line 192 of file TYChemin.h.
|
inline |
Definition at line 133 of file TYChemin.h.
|
inline |
Get/Set the path length.
const double getLongueur() void setLongueur(const double & longueur)
Definition at line 166 of file TYChemin.h.

|
inline |
Definition at line 107 of file TYChemin.h.
|
inline |
Definition at line 170 of file TYChemin.h.
|
inline |
Definition at line 111 of file TYChemin.h.
|
inline |
|
inline |
Definition at line 159 of file TYChemin.h.
| bool TYChemin::operator!= | ( | const TYChemin & | other | ) | const |
| bool TYChemin::operator!= | ( | const TYChemin & | other | ) | const |
Operator !=.
Operator =.
Definition at line 39 of file TYChemin.cpp.
| bool TYChemin::operator== | ( | const TYChemin & | other | ) | const |
Operator ==.
Definition at line 53 of file TYChemin.cpp.

| bool TYChemin::operator== | ( | const TYChemin & | other | ) | const |
Operator ==.
|
inline |
Set the attenuation.
Definition at line 96 of file TYChemin.h.
|
inline |
Definition at line 148 of file TYChemin.h.
| void TYChemin::setAttenuationBarWhenNoPath | ( | bool | vertical, |
| bool | left | ||
| ) |
Set attenuation bar to max to traduce the lack of diffracted ray on this path.
Definition at line 168 of file TYChemin.cpp.
|
inline |
|
inline |
Definition at line 138 of file TYChemin.h.
|
inline |
|
inline |
Definition at line 116 of file TYChemin.h.
|
inline |
Change the path type.
Definition at line 147 of file TYChemin.h.
|
inline |
Change the path type.
Definition at line 206 of file TYChemin.h.

|
protected |
Definition at line 243 of file TYChemin.h.
|
protected |
Attenuation spectrum of the path.
Definition at line 182 of file TYChemin.h.
|
protected |
Attenuations spectra of the path.
Definition at line 239 of file TYChemin.h.
|
protected |
Direct distance between source and receptor.
Definition at line 236 of file TYChemin.h.
|
protected |
Equivalent acoustic_path.
Definition at line 246 of file TYChemin.h.
|
protected |
Total path length.
Definition at line 233 of file TYChemin.h.
|
protected |
Path type (has an influence on the algorithm)
Definition at line 230 of file TYChemin.h.