Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYSolverDefines.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 /*
17  *
18  *
19  *
20  *
21  */
22 
23 #ifndef __TY_SOLVERDEFINES__
24 #define __TY_SOLVERDEFINES__
25 
26 #include <deque>
27 
30 
36 {
37  string volume_id;
40  bool isEcran;
42  boost::shared_ptr<tympan::AcousticFaceGeomData> pFaceGeomData;
43 
47  bool is_infra() const
48  {
50 
51  return (pMat == nullptr) ? false : true;
52  }
53 };
54 
59 {
62  bool noIntersect;
63  bool bIntersect[2];
64  bool isEcran;
65  bool isInfra;
67  boost::shared_ptr<tympan::AcousticFaceGeomData> pFaceGeomData;
68 };
69 
73 typedef struct
74 {
78 } TYSPlan;
79 
83 typedef struct
84 {
88 
90 typedef std::deque<TYStructSegLPSp> TYTabStructSegLPSp;
91 
93 #define TY_EDF_FOREST_RAYON 5000
95 #define TY_EDF_DIFFRACTION_LIMIT 1.023293
96 
97 #endif // __TY_SOLVERDEFINES__
All base classes related to 3D manipulation.
std::vector< OPoint3D > TabPoint3D
Definition: 3d.h:483
std::deque< TYStructSegLPSp > TYTabStructSegLPSp
Rayon du cercle utilise dans le calcul de l'attenuation de la vegetation.
The 3D point class.
Definition: 3d.h:487
Class to define a segment.
Definition: 3d.h:1141
The 3D vector class.
Definition: 3d.h:298
Describes building material.
Definition: entities.hpp:64
Base class for material.
Definition: entities.hpp:37
This file provides the declaration of the entities of the model, which inherit from BaseEntity.
Data structure for intersections.
bool isInfra
Flag to define if is a infrastructure face.
bool bIntersect[2]
Flag to indicate the face cuts vertical plane ([0]) or horizontal plane ([1])
bool isEcran
Flag to define if is a screen face.
boost::shared_ptr< tympan::AcousticFaceGeomData > pFaceGeomData
OSegment3D segInter[2]
bool noIntersect
Flag to indicate that the face should not be tested for intersection.
tympan::AcousticMaterialBase * material
Pointer to a material.
Structure to describe a plan defined with 3 points.
OPoint3D pt3
OPoint3D pt1
OPoint3D pt2
Structure containing a segment and a spectrum.
OSpectre * _spectreAtt
OSegment3D _segment
Describe surface intersections.
tympan::AcousticMaterialBase * material
Reference to a material.
string volume_id
Volume id.
TabPoint3D tabPoint
Array of points used for the preselection.
boost::shared_ptr< tympan::AcousticFaceGeomData > pFaceGeomData
bool isEcran
Flag to define if it is a screen.
bool is_infra() const
Detect if a face is on a infrastructure (has a material)
OVector3D normal
Normal vector to a face.