|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths, in addition to the direct path. More...
#include <TYTrajet.h>

Public Member Functions | |
| TYTrajet (tympan::AcousticSource &asrc_, tympan::AcousticReceptor &arcpt_) | |
| Constructor. More... | |
| TYTrajet (const TYTrajet &other) | |
| Copy constructor. More... | |
| virtual | ~TYTrajet () |
| Destructor. More... | |
| TYTrajet & | operator= (const TYTrajet &other) |
| Operator =. More... | |
| bool | operator== (const TYTrajet &other) const |
| Operator ==. More... | |
| bool | operator!= (const TYTrajet &other) const |
| Operator !=. More... | |
| void | reset () |
| Reset method. More... | |
| double | getDistance () |
| Get/Set the distance between source and receptor. More... | |
| const double | getDistance () const |
| void | setDistance (const double &distance) |
| size_t | getNbChemins () |
| Return the number of path in *this (in addition to the direct path). More... | |
| TYTabChemin & | getChemins () |
| Return the collection of paths of *this. More... | |
| TYTabChemin & | getCheminsDirect () |
| Return an array of the direct paths. More... | |
| void | addChemin (const TYChemin &chemin) |
| Add a new path. More... | |
| void | addCheminDirect (const TYChemin &chemin) |
| Add a new path to the array of direct paths. More... | |
| TYChemin | getChemin (int index) |
| Return a path thanks to its index. More... | |
| OSpectreOctave | getPNoOp () |
| Return the attenuation without computation (computed by an external function) More... | |
| void | setPtSetPtR (const OPoint3D &pt1, const OPoint3D &pt2) |
| Get/Set points for source and receptor. More... | |
| void | getPtSetPtR (OPoint3D &pt1, OPoint3D &pt2) |
| void | setPtSetPtRfromOSeg3D (const OSegment3D &seg) |
| Get/Set points for source and receptor with an OSegment3D. More... | |
| void | getPtSetPtRfromOSeg3D (OSegment3D &seg) const |
| OSpectreOctave & | getSpectreOct () |
| Get the spectrum in octave band at the receptor point \Used to compute the pressure spectrum in octave band. More... | |
| OSpectre | getSpectre () |
| Get the spectrum in third-octave band at the receptor point \Used to build the result matrix by TYSolver.cpp. More... | |
| const OSpectre | getSpectre () const |
| OSpectreOctave | getPEnergetique (const AtmosphericConditions &atmos) |
| Compute the acoustic pressure in octave bands on the journey. More... | |
| std::vector< acoustic_path * > & | get_tab_rays () |
| void | build_tab_rays () |
| TYTrajet (tympan::AcousticSource &asrc_, tympan::AcousticReceptor &arcpt_) | |
| TYTrajet (const TYTrajet &other) | |
| virtual | ~TYTrajet () |
| TYTrajet & | operator= (const TYTrajet &other) |
| Operator =. More... | |
| bool | operator== (const TYTrajet &other) const |
| Operator ==. More... | |
| bool | operator!= (const TYTrajet &other) const |
| Operator !=. More... | |
| void | reset () |
| double | getDistance () |
| const double | getDistance () const |
| void | setDistance (const double &distance) |
| size_t | getNbChemins () |
| TYTabChemin & | getChemins () |
| TYTabChemin & | getCheminsDirect () |
| void | addChemin (const TYChemin &chemin) |
| void | addCheminDirect (const TYChemin &chemin) |
| TYChemin | getChemin (int index) |
| OSpectre | getPNoOp () |
| void | setPtSetPtR (const OPoint3D &pt1, const OPoint3D &pt2) |
| void | getPtSetPtR (OPoint3D &pt1, OPoint3D &pt2) |
| void | setPtSetPtRfromOSeg3D (const OSegment3D &seg) |
| void | getPtSetPtRfromOSeg3D (OSegment3D &seg) const |
| OSpectre & | getSpectre () |
| const OSpectre | getSpectre () const |
| void | setSpectre (const OSpectre &spectre) |
| OSpectre | getPEnergetique (const AtmosphericConditions &atmos) |
| OSpectre | getPInterference (const AtmosphericConditions &atmos) |
| Compute the quadratic pressure on the journey. More... | |
| std::vector< acoustic_path * > & | get_tab_rays () |
Public Attributes | |
| tympan::AcousticSource & | asrc |
| Business source. More... | |
| tympan::source_idx | asrc_idx |
| tympan::AcousticReceptor & | arcpt |
| Business receptor. More... | |
| tympan::receptor_idx | arcpt_idx |
Protected Attributes | |
| OPoint3D | _ptS |
| Source point definition in the site frame. More... | |
| OPoint3D | _ptR |
| Receptor point definition in the site frame. More... | |
| TYTabChemin | _chemins |
| Paths collection. More... | |
| TYTabChemin | _cheminsDirect |
| Direct paths collection (without obstacles) More... | |
| double | _distance |
| Distance between source and receptor. More... | |
| OSpectreOctave | _sLP |
| std::vector< acoustic_path * > | _tabRays |
| Vector of rays equivalent to chemin. More... | |
| OSpectre | _sLP |
Private Member Functions | |
| OSpectre | correctTiers (const OSpectreComplex &si, const OSpectreComplex &sj, const AtmosphericConditions &atmos, const double &ri, const double &rj) const |
| void | build_tab_rays () |
| FRIEND_TEST (test_TYTrajet, getPInterference) | |
| FRIEND_TEST (test_TYTrajet, getPEnergetique) | |
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths, in addition to the direct path.
Definition at line 34 of file TYTrajet.h.
| TYTrajet::TYTrajet | ( | tympan::AcousticSource & | asrc_, |
| tympan::AcousticReceptor & | arcpt_ | ||
| ) |
Constructor.
| asrc_ | Source |
| arcpt_ | Receptor |
Definition at line 19 of file TYTrajet.cpp.

| TYTrajet::TYTrajet | ( | const TYTrajet & | other | ) |
Copy constructor.
Definition at line 28 of file TYTrajet.cpp.

|
virtual |
| TYTrajet::TYTrajet | ( | tympan::AcousticSource & | asrc_, |
| tympan::AcousticReceptor & | arcpt_ | ||
| ) |
| TYTrajet::TYTrajet | ( | const TYTrajet & | other | ) |
|
virtual |
| void TYTrajet::addChemin | ( | const TYChemin & | chemin | ) |
Add a new path.
Definition at line 114 of file TYTrajet.cpp.
| void TYTrajet::addChemin | ( | const TYChemin & | chemin | ) |
| void TYTrajet::addCheminDirect | ( | const TYChemin & | chemin | ) |
Add a new path to the array of direct paths.
Definition at line 119 of file TYTrajet.cpp.
| void TYTrajet::addCheminDirect | ( | const TYChemin & | chemin | ) |
| void TYTrajet::build_tab_rays | ( | ) |
|
private |
|
private |
Definition at line 369 of file TYTrajet.cpp.


|
private |
|
private |
| std::vector< acoustic_path * > & TYTrajet::get_tab_rays | ( | ) |
Definition at line 207 of file TYTrajet.cpp.
| std::vector<acoustic_path*>& TYTrajet::get_tab_rays | ( | ) |
|
inline |
Return a path thanks to its index.
Definition at line 138 of file TYTrajet.h.

|
inline |
Definition at line 138 of file TYTrajet.h.
|
inline |
Return the collection of paths of *this.
Definition at line 106 of file TYTrajet.h.

|
inline |
Definition at line 106 of file TYTrajet.h.
|
inline |
Return an array of the direct paths.
Definition at line 116 of file TYTrajet.h.
|
inline |
Definition at line 116 of file TYTrajet.h.
|
inline |
Get/Set the distance between source and receptor.
const double getDistance()
Definition at line 77 of file TYTrajet.h.

|
inline |
Definition at line 77 of file TYTrajet.h.
|
inline |
Definition at line 81 of file TYTrajet.h.
|
inline |
Definition at line 81 of file TYTrajet.h.
|
inline |
Return the number of path in *this (in addition to the direct path).
Definition at line 96 of file TYTrajet.h.

|
inline |
Definition at line 96 of file TYTrajet.h.
| OSpectre TYTrajet::getPEnergetique | ( | const AtmosphericConditions & | atmos | ) |
Compute the acoustic pressure in octave bands on the journey.
Compute the acoustic pressure (phase modulation) on the journey.
Definition at line 129 of file TYTrajet.cpp.

| OSpectre TYTrajet::getPEnergetique | ( | const AtmosphericConditions & | atmos | ) |
| OSpectre TYTrajet::getPInterference | ( | const AtmosphericConditions & | atmos | ) |
Compute the quadratic pressure on the journey.
Definition at line 199 of file TYTrajet.cpp.

| OSpectre TYTrajet::getPNoOp | ( | ) |
Return the attenuation without computation (computed by an external function)
Definition at line 124 of file TYTrajet.cpp.
| OSpectre TYTrajet::getPNoOp | ( | ) |
Definition at line 159 of file TYTrajet.h.
Definition at line 159 of file TYTrajet.h.
|
inline |
|
inline |
Definition at line 175 of file TYTrajet.h.
|
inline |
Get the spectrum in third-octave band at the receptor point \Used to build the result matrix by TYSolver.cpp.
Get/Set the spectrum at the receptor point.
const OSpectre getSpectre() const
const TYSpectre getSpectre() void setSpectre(const TYSpectre& spectre)
Definition at line 203 of file TYTrajet.h.

|
inline |
Definition at line 190 of file TYTrajet.h.
|
inline |
|
inline |
Definition at line 194 of file TYTrajet.h.
|
inline |
Get the spectrum in octave band at the receptor point \Used to compute the pressure spectrum in octave band.
Definition at line 189 of file TYTrajet.h.

| bool TYTrajet::operator!= | ( | const TYTrajet & | other | ) | const |
| bool TYTrajet::operator!= | ( | const TYTrajet & | other | ) | const |
Operator !=.
Operator =.
Definition at line 53 of file TYTrajet.cpp.
| bool TYTrajet::operator== | ( | const TYTrajet & | other | ) | const |
Operator ==.
Definition at line 70 of file TYTrajet.cpp.

| bool TYTrajet::operator== | ( | const TYTrajet & | other | ) | const |
Operator ==.
| void TYTrajet::reset | ( | void | ) |
Reset method.
Definition at line 47 of file TYTrajet.cpp.

| void TYTrajet::reset | ( | ) |
|
inline |
Definition at line 86 of file TYTrajet.h.
|
inline |
Definition at line 86 of file TYTrajet.h.
Get/Set points for source and receptor.
void getPtSetPtR(OPoint3D& pt1, OPoint3D& pt2)
Definition at line 154 of file TYTrajet.h.
Definition at line 154 of file TYTrajet.h.
|
inline |
Get/Set points for source and receptor with an OSegment3D.
void getPtSetPtRfromOSeg3D(OSegment3D& seg)
Definition at line 170 of file TYTrajet.h.
|
inline |
Definition at line 170 of file TYTrajet.h.
|
inline |
Definition at line 198 of file TYTrajet.h.
|
protected |
Paths collection.
Definition at line 241 of file TYTrajet.h.
|
protected |
Direct paths collection (without obstacles)
Definition at line 244 of file TYTrajet.h.
|
protected |
Distance between source and receptor.
Definition at line 247 of file TYTrajet.h.
|
protected |
Receptor point definition in the site frame.
Definition at line 238 of file TYTrajet.h.
|
protected |
Source point definition in the site frame.
Definition at line 235 of file TYTrajet.h.
|
protected |
Spectrum in octave band at the receptor point of the journey which integrates geometrical divergence and the source power
Definition at line 251 of file TYTrajet.h.
|
protected |
Spectrum at the receptor point of the journey which integrates geometrical divergence and the source power
Definition at line 254 of file TYTrajet.h.
|
protected |
Vector of rays equivalent to chemin.
Definition at line 254 of file TYTrajet.h.
| tympan::AcousticReceptor & TYTrajet::arcpt |
Business receptor.
Definition at line 229 of file TYTrajet.h.
| tympan::receptor_idx TYTrajet::arcpt_idx |
Definition at line 230 of file TYTrajet.h.
| tympan::AcousticSource & TYTrajet::asrc |
Business source.
Definition at line 225 of file TYTrajet.h.
| tympan::source_idx TYTrajet::asrc_idx |
Definition at line 226 of file TYTrajet.h.