57 _pAtmos = std::unique_ptr<AtmosphericConditions>(
new AtmosphericConditions(config->AtmosPressure, config->AtmosTemperature, config->AtmosHygrometry) );
75 if (!bRet) {
return false; }
79 if ( !apf.
exec() ) {
return false; }
97 for (
int i = 0; i < static_cast<int>(aproblem.
nsources()); i++)
99 for (
int j = 0; j < static_cast<int>(aproblem.
nreceptors()); j++)
104 matrix(j, i) = tabSpectre[i][j];
113 size_t nb_srcs = aproblem.
nsources();
116 for (
int i = 0; i < static_cast<int>(aproblem.
nsources()); i++)
118 for (
int j = 0; j < static_cast<int>(aproblem.
nreceptors()); j++)
127 #endif //__ONLY_RAYS__ 130 if (config->Anime3DKeepRays ==
false) { tabRays.clear(); }
133 if (config->UseMeteo)
135 for (
unsigned int i = 0; i < tabRays.size(); i++)
141 if (config->showScene)
This file provides the top-level declaration for the acoustic result model.
This file provides the top-level declaration for the acoustic problem model.
IGeometryModifier * get_geometry_modifier()
Get the geometry modifier.
size_t nreceptors() const
Return the total number of receptors.
Research of acoustic paths for the ANIME3D method.
bool exec()
Launch the research of acoustic paths.
bool exec(TYStructSurfIntersect *&tabPolygon, size_t &tabPolygonSize)
Build list of faces.
void resize(size_t nb_receptors, size_t nb_sources)
Resize the matrix (data is cleared)
Simulation & getRayTracer()
Get ray tracing object.
This file provides class for solver configuration.
SpectrumMatrix & get_data()
Return the results matrix.
TYStructSurfIntersect * _tabPolygon
Array containing all the informations relative to a site geometry and associated material to each fac...
virtual void setType(TYSpectreType type)
Set the spectrum type.
~TYANIME3DSolver()
Destructor of ANIME3DSolver.
virtual bool solve(const tympan::AcousticProblemModel &aproblem, tympan::AcousticResultModel &aresult, tympan::LPSolverConfiguration configuration)
Resolution with the ANIME3D method.
Scene * getScene()
Get a pointer to the scene.
size_t _tabPolygonSize
Array size of _tabPolygon.
Spectrum matrix N*M used to store results. N is the number of receptors. M is the number of sources...
TYANIME3DSolver()
Constructor of ANIME3DSolver.
static void set(LPSolverConfiguration config)
Set a configuration.
virtual void save_to_file(std::string fileName)=0
Export to a file.
Class to describe the acoustic problem.
virtual void purge()
Clean memory after being used in a calculation.
boost::shared_ptr< SolverConfiguration > LPSolverConfiguration
Building class of the faces list used by the ray tracer and the acoustic solver.
size_t nsources() const
Return the total number of sources.
tab_acoustic_path & get_path_data()
Return the array of the acoustic paths.
Contains the results of the model solved.
Class for the definition of atmospheric conditions.
Acoustic model of ANIME3D method.
Store acoustic power values for different frequencies.
void export_to_ply(std::string fileName)
Export the Scene to a PLY format file named fileName.
std::vector< acoustic_path * > tab_acoustic_path
std::unique_ptr< AtmosphericConditions > _pAtmos
OTab2DSpectreComplex ComputeAcousticModel()
Complete calculation of the acoustic model ANIME3D.
static LPSolverConfiguration get()
Get the configuration.
void init()
Initialize some data structures used by ANIME3D.
std::vector< std::vector< OSpectreComplex > > OTab2DSpectreComplex
OTabSpectreComplex 2D array.