Code_TYMPAN  4.4.0
Industrial site acoustic simulation
config.h
Go to the documentation of this file.
1 
6 #ifndef TY_MS_CONFIG
7 #define TY_MS_CONFIG
8 
9 #include <boost/shared_ptr.hpp>
10 
11 namespace tympan
12 {
13 
14 class SolverConfiguration;
15 typedef boost::shared_ptr<SolverConfiguration> LPSolverConfiguration;
16 
22 {
23 public:
24  double AtmosPressure;
26  double AtmosHygrometry;
27  double WindDirection;
28  double AnalyticGradC;
29  double AnalyticGradV;
30 
36  float MaxLength;
37  float SizeReceiver;
41  float AngleDiffMin;
43  float CylindreThick;
45  bool UseSol;
57  bool KeepDebugRay;
59 
64  float FinalAnglePhi;
66  double AnalyticTMax;
67  double AnalyticH;
68  double AnalyticDMax;
69 
73  bool RefineMesh;
75  bool showScene;
76 
77  float MinSRDistance;
78  int NbThreads;
80  // bool UseVegetation;
81  bool UseScreen;
89  bool KeepRays;
90 
91  float
93  bool ModSummation;
94 
100 
103  static LPSolverConfiguration get();
104  static void set(LPSolverConfiguration config);
105 
106 private:
107  // singleton
109 };
110 
111 } // namespace tympan
112 
113 #endif // TY_MS_CONFIG
Class to define a solver configuration (contains all the data needed by the different Tympan solvers)
Definition: config.h:22
bool KeepRays
Flag to keep the rays in the results.
Definition: config.h:89
float MaxPathDifference
Parameter (by default 24) for path validations during diffraction.
Definition: config.h:54
float FinalAngleTheta
Ending angle theta for the curve ray sampler.
Definition: config.h:62
float MaxLength
LengthSelector Selector option (maximal length)
Definition: config.h:36
bool UsePathDifValidation
Flag to activate path validations during diffraction.
Definition: config.h:53
int NbThreads
Number of threads used by TYSolver.
Definition: config.h:78
float MinSRDistance
Not used.
Definition: config.h:77
int AnalyticNbRay
Rays number to launch for the curve ray sampler.
Definition: config.h:65
int MaxReflexion
Maximal reflection events.
Definition: config.h:46
bool UseSol
Flag to activate specular reflection on the ground.
Definition: config.h:45
static void set(LPSolverConfiguration config)
Set a configuration.
Definition: config.cpp:102
~SolverConfiguration()
Destructor.
Definition: config.cpp:107
bool KeepDebugRay
Flag to store rays into a debug_rays array after being invalidated.
Definition: config.h:57
int MaxTreeDepth
BvhAccelerator Accelerator option (Maximal tree depth)
Definition: config.h:40
float CylindreThick
Diffraction cylinder diameter.
Definition: config.h:43
double AtmosTemperature
Atmospheric temperature [°C].
Definition: config.h:25
bool DiffractionFilterRayAtCreation
Flag to filter the created rays during diffraction.
Definition: config.h:52
bool DebugUseFaceSelector
Flag to add the FaceSelector filter.
Definition: config.h:99
float InitialAnglePhi
Starting angle phi for the curve ray sampler.
Definition: config.h:63
double AtmosHygrometry
Atmospheric hygrometry.
Definition: config.h:26
float H1parameter
Multiplicative coefficient for the additional reflections if PropaConditions is true.
Definition: config.h:92
float InitialAngleTheta
Starting angle theta for the curve ray sampler.
Definition: config.h:61
bool DebugUseCloseEventSelector
Flag to add the the CloseEventSelector filter.
Definition: config.h:95
bool DiffractionUseDistanceAsFilter
Definition: config.h:55
int NbRayWithDiffraction
Number of rays to throw during diffraction.
Definition: config.h:49
static LPSolverConfiguration _pInstance
Definition: config.h:108
int CurveRaySampler
Not used.
Definition: config.h:60
float MeshElementSizeMax
Not used.
Definition: config.h:72
int NbRaysPerSource
Number of rays per source for the Sampler.
Definition: config.h:35
double WindDirection
Wind direction.
Definition: config.h:27
double AnalyticH
The propagation time step for the curve ray sampler.
Definition: config.h:67
static LPSolverConfiguration get()
Get the configuration.
Definition: config.cpp:93
bool ModSummation
Flag to activate in the acoustic model a calculation with interference.
Definition: config.h:93
double AnalyticGradV
Wind gradient.
Definition: config.h:29
bool DiffractionUseRandomSampler
Flag to enable random (and not regular) sampling for diffraction.
Definition: config.h:48
bool DebugUseDiffractionPathSelector
Flag to add the DiffractionPathSelector filter.
Definition: config.h:97
double AnalyticDMax
The maximal distance for the curve ray sampler.
Definition: config.h:68
bool DebugUseFermatSelector
Flag to add the FermatSelector filter.
Definition: config.h:98
SolverConfiguration()
Constructor.
Definition: config.cpp:24
bool UseRealGround
Flag to model ground into the acoustic model.
Definition: config.h:79
bool UsePostFilters
Flag to use some specifics Selector.
Definition: config.h:58
bool showScene
Flag to export Scene in order to visualize it.
Definition: config.h:75
double AnalyticGradC
Sound speed gradient.
Definition: config.h:28
bool DebugUseDiffractionAngleSelector
Flag to add the DiffractionAngleSelector filter.
Definition: config.h:96
double AtmosPressure
Atmospheric pressure [Pa].
Definition: config.h:24
bool UseReflection
Flag to use reflection on vertical walls.
Definition: config.h:83
int MaxProfondeur
Maximal number of events for ray validation in ANIME3D solver.
Definition: config.h:44
int MaxDiffraction
Maximal diffraction events.
Definition: config.h:47
bool UseLateralDiffraction
Flag to compute horizontal paths in the acoustic path finder.
Definition: config.h:82
double AnalyticTMax
The maximal propagation time for the curve ray sampler.
Definition: config.h:66
bool UseScreen
Not used.
Definition: config.h:81
float FinalAnglePhi
Ending angle phi for the curve ray sampler.
Definition: config.h:64
boost::shared_ptr< SolverConfiguration > LPSolverConfiguration
Definition: interfaces.h:25