16 #ifndef __TYACOUSTICMODEL__
17 #define __TYACOUSTICMODEL__
22 #include <gtest/gtest_prod.h>
37 virtual void compute(
const std::deque<TYSIntersection>& tabIntersect,
TYTrajet& trajet,
59 double distance,
bool conditionFav =
false)
const;
71 double distance)
const;
106 TYTabChemin& TabChemins,
double distance,
bool conditionFav =
false)
const;
144 const double& re,
const double& epaisseur,
const bool& vertical,
145 const bool& avantApres,
bool& bDiffOk,
bool conditionFav =
false)
const;
std::vector< OPoint3D > TabPoint3D
std::deque< TYChemin > TYTabChemin
TYChemin collection.
std::deque< TYEtape > TYTabEtape
TYEtape collection.
Representation of one of the most optimal path between source and receptor: S—>R.
Interface class for acoustic models.
Class to define a segment.
Acoustic model for the default solver.
OSpectreOctave limAttDiffraction(const OSpectreOctave &sNC, const OSpectreOctave &C) const
Limit the screen attenuation value with a frequency dependent criteria.
std::unique_ptr< AtmosphericConditions > pSolverAtmos
void computeCheminSansEcran(const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &rayon, const tympan::AcousticSource &source, TYTabChemin &TabChemins, double distance, bool conditionFav=false) const
Compute the main path between source and receptor. In 9613 solver, this path includes all attenuation...
FRIEND_TEST(test_TYAcousticModel, limAttDiffraction)
TYSolver & _solver
Reference to the solver.
virtual bool computeCheminsAvecEcran(const OSegment3D &rayon, const tympan::AcousticSource &source, const TabPoint3D &pts, const bool vertical, TYTabChemin &TabChemins, double distance, bool conditionFav=false) const
Compute the segment path from the list of the points of the TYTrajet journey. It takes in account the...
void init()
Initialize the acoustic model.
FRIEND_TEST(test_TYAcousticModel, calculAttDiffraction)
void computeCheminAPlat(const OSegment3D &rayon, const tympan::AcousticSource &source, TYTabChemin &TabChemins, double distance) const
Compute the list of paths for a perfectly flat and reflective ground.
OSpectreOctave calculAttDiffraction(const OSegment3D &ray, const double &re, const double &dss, const double &dsr, const double &width, const bool &vertical) const
Compute the attenuation from the diffraction on the screen.
void addEtapeDirectToChemins(const TYEtape &EtapeDirecte, TYTabChemin &TabChemin) const
Add a direct journey to all the paths.
TYAcousticModel(TYSolver &solver)
virtual ~TYAcousticModel()
OSpectreComplex getReflexionSpectrumAt(const OSegment3D &incident, double length, const OSegment3D &segPente, const tympan::AcousticSource &source) const
Find Reflexion spectrum at point defined by the end of an incident segment.
FRIEND_TEST(test_TYAcousticModel, calculC)
FRIEND_TEST(test_TYAcousticModel, computeCheminReflexion)
void meanSlope(const OSegment3D &director, OSegment3D &slope) const
Create a segment corresponding to the projection of "director" segment on the ground.
OSpectreComplex _absoNulle
bool solve(TYTrajet &trajet)
Compute the source contribution to the point.
bool addEtapesSol(const OPoint3D &ptDebut, const OPoint3D &ptFin, const OSegment3D &penteMoyenne, const tympan::AcousticSource &source, const bool &fromSource, const bool &toRecepteur, TYTabEtape &Etapes, double &longueur) const
Compute the different steps from a point to another via a reflection and a direct view.
void computeCheminReflexion(const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &rayon, const tympan::AcousticSource &source, TYTabChemin &TabChemins, double distance) const
Compute the list of path generated by reflection on the vertical walls.
OSpectre calculC(const double &epaisseur) const
Compute the spectrum of the C factor used in the diffraction calculation.
void computeCheminReflexion(const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &ray, const tympan::AcousticSource &source, TYTabChemin &TabChemins, double distance) const
Compute the list of path generated by reflection on the vertical walls.
virtual void compute(const std::deque< TYSIntersection > &tabIntersect, TYTrajet &trajet, TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight)
The TYEtape class is used to describe a part (a step) of a path (TYChemin) for the computation of tra...
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths,...
Describes an acoustic source.