16 #ifndef __TYACOUSTICMODEL_DEFAULTSOLVER__
17 #define __TYACOUSTICMODEL_DEFAULTSOLVER__
25 #include <gtest/gtest_prod.h>
65 bool conditionFav =
false)
const;
77 double distance)
const;
89 bool conditionFav =
false)
const;
127 const double& re,
const double& epaisseur,
const bool& vertical,
128 const bool& avantApres,
bool& bDiffOk,
bool conditionFav =
false)
const;
std::vector< OPoint3D > TabPoint3D
std::deque< TYCheminDefaultSolver > TYTabCheminDefaultSolver
TYChemin collection.
std::deque< TYEtapeDefaultSolver > TYTabEtapeDefaultSolver
TYEtape collection.
Class to define a segment.
Acoustic model for the default solver.
OSpectre calculAttDiffraction(const OSegment3D &rayon, const OSegment3D &penteMoyenne, const bool &miroir, const double &re, const double &epaisseur, const bool &vertical, const bool &avantApres, bool &bDiffOk, bool conditionFav=false) const
Compute the attenuation from the diffraction on the screen.
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.
void computeCheminSansEcran(const OSegment3D &rayon, const tympan::AcousticSource &source, TYTabCheminDefaultSolver &TabChemins, double distance, bool conditionFav=false) const
Compute the list of paths generated by reflection on the ground if there is no screen.
bool solve(TYTrajetDefaultSolver &trajet)
Compute the source contribution to the point.
virtual void compute(const std::deque< TYSIntersection > &tabIntersect, TYTrajetDefaultSolver &trajet, TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight)
FRIEND_TEST(test_TYAcousticModel, computeCheminReflexion)
OSpectre limAttDiffraction(const OSpectre &sNC, const OSpectre &C) const
Limit the screen attenuation value with a frequency dependent criteria.
void computeCheminReflexion(const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &rayon, const tympan::AcousticSource &source, TYTabCheminDefaultSolver &TabChemins, double distance) const
Compute the list of path generated by reflection on the vertical walls.
TYSolverDefaultSolver & _solver
Reference to the solver.
bool addGroundSteps(const OPoint3D &ptDebut, const OPoint3D &ptFin, const OSegment3D &penteMoyenne, const tympan::AcousticSource &source, const bool &fromSource, const bool &toRecepteur, TYTabEtapeDefaultSolver &Etapes, double &longueur) const
Compute the different steps from a point to another via a reflection and a direct view.
void computeCheminAPlat(const OSegment3D &rayon, const tympan::AcousticSource &source, TYTabCheminDefaultSolver &TabChemins, double distance) const
Compute the list of paths for a perfectly flat and reflective ground.
OSpectreComplex _absoNulle
OSpectre calculC(const double &epaisseur) const
Compute the spectrum of the C factor used in the diffraction calculation.
void computeWaveLength() override
Compute the wave length for the default solver.
TYSolver & getSolver() const override
FRIEND_TEST(test_TYAcousticModel, limAttDiffraction)
TYAcousticModelDefaultSolver(TYSolverDefaultSolver &solver)
FRIEND_TEST(test_TYAcousticModel, calculC)
virtual bool computeCheminsAvecEcran(const OSegment3D &rayon, const tympan::AcousticSource &source, const TabPoint3D &pts, const bool vertical, TYTabCheminDefaultSolver &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...
FRIEND_TEST(test_TYAcousticModel, calculAttDiffraction)
Acoustic model for the considered solver.
Class which represents the Solver for 9613 family solvers.
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths,...
Describes an acoustic source.