16 #ifndef __TYACOUSTICMODEL_9613__
17 #define __TYACOUSTICMODEL_9613__
23 #include <gtest/gtest_prod.h>
46 virtual void compute(
const std::deque<TYSIntersection>& tabIntersect,
TYTrajet& trajet,
69 double distance,
const bool left)
const;
82 double distance)
const;
97 double distance,
bool conditionFav =
false)
const;
134 const double& dsr,
const double& width,
const bool& vertical)
const;
156 const bool& fromSource,
TYTabEtape& Etapes)
const;
174 double hr,
double& Gs,
double& Gm,
double& Gr)
const;
193 bool getGroundfactors(
const std::deque<TYSIntersection>& tabIntersectUpSegment,
194 const std::deque<TYSIntersection>& tabIntersectDownSegment,
const OSegment3D& SO2D,
195 const OSegment3D& OR2D,
double hs,
double hr,
double& Gs,
double& Gm,
260 const std::deque<TYSIntersection>& tabIntersect)
const;
std::vector< OPoint3D > TabPoint3D
Representation of one of the most optimal path between source and receptor: S—>R.
std::deque< TYChemin > TYTabChemin
TYChemin collection.
std::deque< TYEtape > TYTabEtape
TYEtape collection.
Interface class for acoustic models.
Plan defined by its equation : ax+by+cz+d=0.
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...
bool computeSegmentEdgesHeights(double &hauteurA, double &hauteurB, const OSegment3D &meanSlope, const OSegment3D &ray) const
Compute heights relative to real ground, of the edges of a segment.
TYSolver & _solver
Reference to the solver.
void init()
Initialize the acoustic model.
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.
TYAcousticModel(TYSolver &solver)
OSpectreOctave computeEffectiveBarAttenuation(const OSpectreOctave &Abar_top, const OSpectreOctave &Abar_left, const OSpectreOctave &Abar_right)
OSpectreOctave 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.
OSpectreOctave calculC3(const double &epaisseur) const
Compute the spectrum of the C3 factor used in the diffraction calculation.
void meanSlope(const OSegment3D &director, OSegment3D &slope) const
Create a segment corresponding to the projection of "director" segment on the ground.
bool computeGZone(const OPoint3D &ptDebut, const OPoint3D &ptFin, double &GZone, double &dpZone, const std::deque< TYSIntersection > &tabIntersect) const
Compute GZone and dpZone for the segment between ptDebut and ptFin.
virtual ~TYAcousticModel()
bool solve(TYTrajet &trajet)
Compute the source contributions to the receptor point.
virtual void compute(const std::deque< TYSIntersection > &tabIntersect, TYTrajet &trajet, TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight)
Main entry point, trigger acoustic computations.
OPlan buildMeanSlopePlan(const OSegment3D &penteMoyenne) const
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.
OSpectreOctave _absoNulle
virtual bool computeCheminsAvecEcran(const OSegment3D &rayon, const tympan::AcousticSource &source, const TabPoint3D &pts, const bool vertical, TYTabChemin &TabChemins, double distance, const bool left) const
Compute barrier attenuation effect on the direct path for the considered geometrical path (top,...
bool getGroundfactors(const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &ray2D, double hs, double hr, double &Gs, double &Gm, double &Gr) const
Get ground factors for source, middle and receptor zones.
bool addStep(const OPoint3D &ptStart, const OPoint3D &ptEnd, const tympan::AcousticSource &source, const bool &fromSource, TYTabEtape &Etapes) const
Compute the different steps from a point to another via a reflection and a direct view.
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths,...
Describes an acoustic source.