Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAcousticModel.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14  */
15 
16 #ifndef __TYACOUSTICMODEL__
17 #define __TYACOUSTICMODEL__
18 
19 #include "Tympan/core/interfaces.h"
22 #include <gtest/gtest_prod.h>
23 
24 class TYTrajet;
25 class TYSolver;
26 
32 {
33 public:
34  TYAcousticModel(); //<! Constructor
35  virtual ~TYAcousticModel(); //<! Destructor
36 
38  void init();
43  virtual void computeWaveLength() = 0;
44 
45  /*
46  * @brief Compute mean slope plan - Kept for ISO 9613-2 ground effect alternative method.
47  *
48  * @param penteMoyenne Mean slope used to compute the plan corresponding to this slope.
49  *
50  * @return OPlan The computed mean slope plan.
51  */
52  OPlan buildMeanSlopePlan(const OSegment3D& penteMoyenne) const;
53 
57  void meanSlope(const OSegment3D& director, OSegment3D& slope) const;
58 
59 private:
60  virtual TYSolver& getSolver() const = 0;
61 
62 protected:
63  bool _useSol;
64  bool _useReflex;
66  bool _useAtmo;
68  double _paramH;
69 
70  std::unique_ptr<AtmosphericConditions> _pSolverAtmos;
71 };
72 
73 #endif // __TYACOUSTICMODEL__
Interface class for acoustic models.
Definition: interfaces.h:48
Plan defined by its equation : ax+by+cz+d=0.
Definition: plan.h:31
Class to define a segment.
Definition: 3d.h:1141
Acoustic model for the considered solver.
void init()
Initialize the acoustic model.
std::unique_ptr< AtmosphericConditions > _pSolverAtmos
virtual TYSolver & getSolver() const =0
void meanSlope(const OSegment3D &director, OSegment3D &slope) const
Create a segment corresponding to the projection of "director" segment on the ground.
virtual ~TYAcousticModel()
OPlan buildMeanSlopePlan(const OSegment3D &penteMoyenne) const
virtual void computeWaveLength()=0
Compute the wave length for the considered solver.
Class which represents the Solver for 9613 family solvers.
Definition: TYSolver.h:36
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths,...
Definition: TYTrajet.h:33