Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
Research of acoustic paths for the ANIME3D method. More...
#include <TYANIME3DAcousticPathFinder.h>
Public Member Functions | |
TYANIME3DAcousticPathFinder (TYStructSurfIntersect *tabPolygon, const size_t &tabPolygonSize, const tympan::AcousticProblemModel &aproblem_, tab_acoustic_path &tabTYRays, AtmosphericConditions &atmos) | |
Constructor. More... | |
virtual | ~TYANIME3DAcousticPathFinder () |
Destructor. More... | |
bool | exec () |
Launch the research of acoustic paths. More... | |
Simulation & | getRayTracer () |
Get ray tracing object. More... | |
IGeometryModifier * | get_geometry_modifier () |
Get the geometry modifier. More... | |
Private Member Functions | |
unsigned int | getTabsSAndR (vector< vec3 > &sources, vector< vec3 > &recepteurs, vector< tympan::VolumeFaceDirectivity *> &directivities) |
Contruit la liste des points sources et des points recepteurs en fonction du parametre de sens de propa (S -> R) ou (R -> S) More... | |
bool | appendTriangleToScene () |
Convertion des triangles Tympan en primitives utilisables par le lancer de rayons. More... | |
void | appendRecepteurToSimulation (vector< vec3 > &recepteurs) |
Ajoute les recepteurs a la simulation. More... | |
void | appendSourceToSimulation (vector< vec3 > &sources, vector< tympan::VolumeFaceDirectivity *> &directivities) |
Ajoute les sources ponctuelles actives a la simulation. More... | |
void | convert_Rays_to_acoustic_path (const unsigned int &sens) |
convertion des rayons en rayons TYMPAN More... | |
void | sampleAndCorrection () |
Computes angle and length correction \ by calling the three previous functions \ Creates two matrix which have corrected lengths and angles. More... | |
void | set_source_idx_and_receptor_idx_to_acoustic_path (int sens, Ray *ray, acoustic_path *tyRay) |
void | build_geometry_transformer (const vector< vec3 > &sources) |
Method to build the transformer of the scene geometry according to different parameters. More... | |
void | configure_raytracer () |
Configure parameters of the AcousticRayTracer. More... | |
Private Attributes | |
Simulation | _rayTracing |
Object _rayTracing for the straigth-line ray tracer. More... | |
std::unique_ptr< IGeometryModifier > | transformer |
Object _curveRayTracing for the curved ray tracer. More... | |
TYStructSurfIntersect * | _tabPolygon |
Array containing all the informations relative to a site geometry and associated material to each face. More... | |
const size_t & | _tabPolygonSize |
Polygons number in _tabPolygon. More... | |
tab_acoustic_path & | _tabTYRays |
Array containing all the Code_Tympan rays. More... | |
AtmosphericConditions & | _atmos |
Atmospheric conditions. More... | |
const tympan::AcousticProblemModel & | _aproblem |
Research of acoustic paths for the ANIME3D method.
Definition at line 29 of file TYANIME3DAcousticPathFinder.h.
TYANIME3DAcousticPathFinder::TYANIME3DAcousticPathFinder | ( | TYStructSurfIntersect * | tabPolygon, |
const size_t & | tabPolygonSize, | ||
const tympan::AcousticProblemModel & | aproblem_, | ||
tab_acoustic_path & | tabTYRays, | ||
AtmosphericConditions & | atmos | ||
) |
Constructor.
tabPolygon | Array containing all the informations relative to a site geometry and associated material to each face |
tabPolygonSize | Size of the previous array |
aproblem_ | Acoustic problem |
tabTYRays | Array containing the acoustic paths for the rays |
atmos | Atmospheric conditions object |
Definition at line 45 of file TYANIME3DAcousticPathFinder.cpp.
|
virtual |
Destructor.
Definition at line 58 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
Ajoute les recepteurs a la simulation.
Definition at line 230 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
Ajoute les sources ponctuelles actives a la simulation.
Definition at line 245 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
Convertion des triangles Tympan en primitives utilisables par le lancer de rayons.
Definition at line 180 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
Method to build the transformer of the scene geometry according to different parameters.
Definition at line 372 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
Configure parameters of the AcousticRayTracer.
Definition at line 429 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
convertion des rayons en rayons TYMPAN
Definition at line 299 of file TYANIME3DAcousticPathFinder.cpp.
bool TYANIME3DAcousticPathFinder::exec | ( | ) |
Launch the research of acoustic paths.
Definition at line 62 of file TYANIME3DAcousticPathFinder.cpp.
|
inline |
Get the geometry modifier.
Definition at line 62 of file TYANIME3DAcousticPathFinder.h.
|
inline |
Get ray tracing object.
Definition at line 59 of file TYANIME3DAcousticPathFinder.h.
|
private |
Contruit la liste des points sources et des points recepteurs en fonction du parametre de sens de propa (S -> R) ou (R -> S)
Definition at line 113 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
Computes angle and length correction \ by calling the three previous functions \ Creates two matrix which have corrected lengths and angles.
Definition at line 324 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
Definition at line 350 of file TYANIME3DAcousticPathFinder.cpp.
|
private |
Definition at line 134 of file TYANIME3DAcousticPathFinder.h.
|
private |
Atmospheric conditions.
Definition at line 132 of file TYANIME3DAcousticPathFinder.h.
|
private |
Object _rayTracing for the straigth-line ray tracer.
Definition at line 117 of file TYANIME3DAcousticPathFinder.h.
|
private |
Array containing all the informations relative to a site geometry and associated material to each face.
Definition at line 123 of file TYANIME3DAcousticPathFinder.h.
|
private |
Polygons number in _tabPolygon.
Definition at line 126 of file TYANIME3DAcousticPathFinder.h.
|
private |
Array containing all the Code_Tympan rays.
Definition at line 129 of file TYANIME3DAcousticPathFinder.h.
|
private |
Object _curveRayTracing for the curved ray tracer.
Definition at line 120 of file TYANIME3DAcousticPathFinder.h.