Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Attributes | List of all members
TYTrajet9613Solver Class Reference

This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths, in addition to the direct path. Specific derivation of TYTrajet for 9613Solver. More...

#include <TYTrajet9613Solver.h>

Inheritance diagram for TYTrajet9613Solver:
Inheritance graph
[legend]
Collaboration diagram for TYTrajet9613Solver:
Collaboration graph
[legend]

Public Member Functions

 TYTrajet9613Solver (tympan::AcousticSource &asrc_, tympan::AcousticReceptor &arcpt_)
 Constructor. More...
 
virtual ~TYTrajet9613Solver ()
 Destructor. More...
 
TYTrajet9613Solveroperator= (const TYTrajet9613Solver &other)
 Operator =. More...
 
bool operator== (const TYTrajet9613Solver &other) const
 Operator ==. More...
 
bool operator!= (const TYTrajet9613Solver &other) const
 Operator !=. More...
 
void reset () override
 Reset method. More...
 
size_t getNbChemins ()
 Return the number of path in *this (in addition to the direct path). More...
 
TYTabChemin9613SolvergetChemins ()
 Return the collection of paths of *this. More...
 
TYTabChemin9613SolvergetCheminsDirect ()
 Return an array of the direct paths. More...
 
void addChemin (const TYChemin9613Solver &chemin)
 Add a new path. More...
 
void addCheminDirect (const TYChemin9613Solver &chemin)
 Add a new path to the array of direct paths. More...
 
TYChemin9613Solver getChemin (int index)
 Return a path thanks to its index. More...
 
OSpectreOctavegetSpectreOct ()
 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
 
void build_tab_rays ()
 
- Public Member Functions inherited from TYTrajet
 TYTrajet (tympan::AcousticSource &asrc_, tympan::AcousticReceptor &arcpt_)
 Constructor. More...
 
 TYTrajet (const TYTrajet &other)
 Copy constructor. More...
 
virtual ~TYTrajet ()
 Destructor. More...
 
TYTrajetoperator= (const TYTrajet &other)
 Operator =. More...
 
bool operator== (const TYTrajet &other) const
 Operator ==. More...
 
bool operator!= (const TYTrajet &other) const
 Operator !=. More...
 
double getDistance ()
 Get/Set the distance between source and receptor. More...
 
const double getDistance () const
 
void setDistance (const double &distance)
 
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
 
std::vector< acoustic_path * > & get_tab_rays ()
 

Protected Attributes

TYTabChemin9613Solver _chemins
 Paths collection. More...
 
TYTabChemin9613Solver _cheminsDirect
 Direct paths collection (without obstacles) More...
 
OSpectreOctave _sLP
 
- Protected Attributes inherited from TYTrajet
OPoint3D _ptS
 Source point definition in the site frame. More...
 
OPoint3D _ptR
 Receptor point definition in the site frame. More...
 
double _distance
 Distance between source and receptor. More...
 
std::vector< acoustic_path * > _tabRays
 Vector of rays equivalent to chemin. More...
 

Additional Inherited Members

- Public Attributes inherited from TYTrajet
tympan::AcousticSourceasrc
 Business source. More...
 
tympan::source_idx asrc_idx
 
tympan::AcousticReceptorarcpt
 Business receptor. More...
 
tympan::receptor_idx arcpt_idx
 

Detailed Description

This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths, in addition to the direct path. Specific derivation of TYTrajet for 9613Solver.

Version
v 1.0
Date
2024/01/17
Author
Projet_Tympan

Definition at line 36 of file TYTrajet9613Solver.h.

Constructor & Destructor Documentation

◆ TYTrajet9613Solver()

TYTrajet9613Solver::TYTrajet9613Solver ( tympan::AcousticSource asrc_,
tympan::AcousticReceptor arcpt_ 
)

Constructor.

Parameters
asrc_Source
arcpt_Receptor

Definition at line 19 of file TYTrajet9613Solver.cpp.

◆ ~TYTrajet9613Solver()

TYTrajet9613Solver::~TYTrajet9613Solver ( )
virtual

Destructor.

Definition at line 24 of file TYTrajet9613Solver.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addChemin()

void TYTrajet9613Solver::addChemin ( const TYChemin9613Solver chemin)

Add a new path.

Definition at line 72 of file TYTrajet9613Solver.cpp.

◆ addCheminDirect()

void TYTrajet9613Solver::addCheminDirect ( const TYChemin9613Solver chemin)

Add a new path to the array of direct paths.

Definition at line 77 of file TYTrajet9613Solver.cpp.

◆ build_tab_rays()

void TYTrajet9613Solver::build_tab_rays ( )

Definition at line 82 of file TYTrajet9613Solver.cpp.

Here is the caller graph for this function:

◆ getChemin()

TYChemin9613Solver TYTrajet9613Solver::getChemin ( int  index)
inline

Return a path thanks to its index.

Returns
_chemins.at(index)

Definition at line 115 of file TYTrajet9613Solver.h.

Here is the caller graph for this function:

◆ getChemins()

TYTabChemin9613Solver & TYTrajet9613Solver::getChemins ( )
inline

Return the collection of paths of *this.

Returns
_chemins

Definition at line 83 of file TYTrajet9613Solver.h.

Here is the caller graph for this function:

◆ getCheminsDirect()

TYTabChemin9613Solver & TYTrajet9613Solver::getCheminsDirect ( )
inline

Return an array of the direct paths.

Returns
_cheminsDirect

Definition at line 93 of file TYTrajet9613Solver.h.

◆ getNbChemins()

size_t TYTrajet9613Solver::getNbChemins ( )
inline

Return the number of path in *this (in addition to the direct path).

Returns
_chemins.size()

Definition at line 73 of file TYTrajet9613Solver.h.

Here is the caller graph for this function:

◆ getSpectre() [1/2]

OSpectre & TYTrajet9613Solver::getSpectre ( )
inline

Get the spectrum in third-octave band at the receptor point Used to build the result matrix by TYSolver.cpp.

const OSpectre getSpectre() const

Returns
OSpectre

Definition at line 143 of file TYTrajet9613Solver.h.

Here is the call graph for this function:

◆ getSpectre() [2/2]

const OSpectre TYTrajet9613Solver::getSpectre ( ) const
inline

Definition at line 147 of file TYTrajet9613Solver.h.

Here is the call graph for this function:

◆ getSpectreOct()

OSpectreOctave & TYTrajet9613Solver::getSpectreOct ( )
inline

Get the spectrum in octave band at the receptor point Used to compute the pressure spectrum in octave band.

Returns
OSpectreOctave&

Definition at line 129 of file TYTrajet9613Solver.h.

Here is the caller graph for this function:

◆ operator!=()

bool TYTrajet9613Solver::operator!= ( const TYTrajet9613Solver other) const

Operator !=.

Definition at line 67 of file TYTrajet9613Solver.cpp.

Here is the call graph for this function:

◆ operator=()

TYTrajet9613Solver & TYTrajet9613Solver::operator= ( const TYTrajet9613Solver other)

Operator =.

Definition at line 35 of file TYTrajet9613Solver.cpp.

Here is the call graph for this function:

◆ operator==()

bool TYTrajet9613Solver::operator== ( const TYTrajet9613Solver other) const

Operator ==.

Definition at line 46 of file TYTrajet9613Solver.cpp.

Here is the caller graph for this function:

◆ reset()

void TYTrajet9613Solver::reset ( void  )
overridevirtual

Reset method.

Implements TYTrajet.

Definition at line 29 of file TYTrajet9613Solver.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _chemins

TYTabChemin9613Solver TYTrajet9613Solver::_chemins
protected

Paths collection.

Definition at line 158 of file TYTrajet9613Solver.h.

◆ _cheminsDirect

TYTabChemin9613Solver TYTrajet9613Solver::_cheminsDirect
protected

Direct paths collection (without obstacles)

Definition at line 161 of file TYTrajet9613Solver.h.

◆ _sLP

OSpectreOctave TYTrajet9613Solver::_sLP
protected

Spectrum in octave band at the receptor point of the journey which integrates geometrical divergence and the source power

Definition at line 165 of file TYTrajet9613Solver.h.


The documentation for this class was generated from the following files: