|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Class to describe the acoustic problem. More...
#include <acoustic_problem_model.hpp>

Public Member Functions | |
| AcousticProblemModel () | |
| virtual | ~AcousticProblemModel () |
| Constructor. More... | |
| node_idx | make_node (const Point &point) |
| Destructor. More... | |
| node_idx | make_node (double x, double y, double z) |
| Call make_node(Point) with a point given by its coordinates. More... | |
| triangle_idx | make_triangle (node_idx n1, node_idx n2, node_idx n3) |
| size_t | npoints () const |
| Return the total number of nodes. More... | |
| size_t | ntriangles () const |
| Return the total number of triangles. More... | |
| size_t | nsources () const |
| Return the total number of sources. More... | |
| size_t | nreceptors () const |
| Return the total number of receptors. More... | |
| AcousticTriangle & | triangle (triangle_idx tri_idx) |
| Return a triangle by its id. More... | |
| const AcousticTriangle & | triangle (triangle_idx tri_idx) const |
| Return a triangle by its id. More... | |
| Point & | node (node_idx idx) |
| Return a node by its id. More... | |
| const Point & | node (node_idx idx) const |
| Return a node by its id. More... | |
| AcousticSource & | source (source_idx idx) |
| Return a source by its id. More... | |
| const AcousticSource & | source (source_idx idx) const |
| Return a source by its id. More... | |
| AcousticReceptor & | receptor (receptor_idx idx) |
| Return a receptor by its id. More... | |
| const AcousticReceptor & | receptor (receptor_idx idx) const |
| Return a receptor by its id. More... | |
| size_t | nmaterials () const |
| Return the total number of materials. More... | |
| const AcousticMaterialBase & | material (size_t mat_idx) const |
| Return a material by its id. More... | |
| AcousticMaterialBase & | material (size_t mat_idx) |
| Return a material by its id. More... | |
| material_ptr_t | make_material (const string &name, double resistivity, double deviation, double length, double factor_g) |
| Push a representation of a ground material into the model. If an instance of a ground material with same name and characteristics is already pushed, then return it. More... | |
| material_ptr_t | make_material (const string &name, const ComplexSpectrum &spectrum) |
| Push a representation of a building material into the model. More... | |
| source_idx | make_source (const Point &point_, const Spectrum &spectrum_, SourceDirectivityInterface *directivity) |
| Push a new acoustic source into the model. More... | |
| receptor_idx | make_receptor (const Point &position_) |
| Push a new acoustic receptor into the model. More... | |
| const nodes_pool_t & | nodes () const |
| Return array of nodes. More... | |
| const triangle_pool_t & | triangles () const |
| Return array of triangles. More... | |
| const material_pool_t & | materials () const |
| Return array of materials. More... | |
| const source_pool_t & | sources () const |
| Return array of sources. More... | |
| const receptor_pool_t & | receptors () const |
| Return array of receptors. More... | |
Protected Attributes | |
| nodes_pool_t | all_nodes |
| Array of all nodes. More... | |
| triangle_pool_t | all_triangles |
| Array of all triangles. More... | |
| material_pool_t | all_materials |
| Array of all materials. More... | |
| source_pool_t | all_sources |
| Array of all sources. More... | |
| receptor_pool_t | all_receptors |
| Array of all receptors. More... | |
Class to describe the acoustic problem.
Definition at line 39 of file acoustic_problem_model.hpp.
|
inline |
Definition at line 42 of file acoustic_problem_model.hpp.
|
inlinevirtual |
Constructor.
Definition at line 43 of file acoustic_problem_model.hpp.
| material_ptr_t tympan::AcousticProblemModel::make_material | ( | const string & | name, |
| const ComplexSpectrum & | spectrum | ||
| ) |
Push a representation of a building material into the model.
| name | the name of the material |
| spectrum | the absorption spectrum (TO BE PRECISED) |
Definition at line 109 of file acoustic_problem_model.cpp.
| material_ptr_t tympan::AcousticProblemModel::make_material | ( | const string & | name, |
| double | resistivity, | ||
| double | deviation, | ||
| double | length, | ||
| double | factor_g | ||
| ) |
Push a representation of a ground material into the model. If an instance of a ground material with same name and characteristics is already pushed, then return it.
| name | the name of the material |
| resistivity | the resistivity of the ground, expressed in kRayls |
| deviation | the deviation of the ground |
| length | medium length |
| factor_g | the ground factor G used in ISO 9613-2 |
Definition at line 76 of file acoustic_problem_model.cpp.
Destructor.
Maps a Point or OPoint3D as a node_ref
Definition at line 57 of file acoustic_problem_model.cpp.

|
inline |
Call make_node(Point) with a point given by its coordinates.
Definition at line 52 of file acoustic_problem_model.hpp.

| receptor_idx tympan::AcousticProblemModel::make_receptor | ( | const Point & | position_ | ) |
Push a new acoustic receptor into the model.
Definition at line 125 of file acoustic_problem_model.cpp.
| source_idx tympan::AcousticProblemModel::make_source | ( | const Point & | point_, |
| const Spectrum & | spectrum_, | ||
| SourceDirectivityInterface * | directivity | ||
| ) |
Push a new acoustic source into the model.
| point_ | Source position |
| spectrum_ | Spectrum associated to the source |
| directivity | Pointer to a source directivity |
Definition at line 117 of file acoustic_problem_model.cpp.
| triangle_idx tympan::AcousticProblemModel::make_triangle | ( | node_idx | n1, |
| node_idx | n2, | ||
| node_idx | n3 | ||
| ) |
Definition at line 70 of file acoustic_problem_model.cpp.
|
inline |
Return a material by its id.
Definition at line 129 of file acoustic_problem_model.hpp.
|
inline |
Return a material by its id.
Definition at line 124 of file acoustic_problem_model.hpp.
|
inline |
Return array of materials.
Definition at line 178 of file acoustic_problem_model.hpp.

|
inline |
Return the total number of materials.
Definition at line 119 of file acoustic_problem_model.hpp.
Return a node by its id.
Definition at line 89 of file acoustic_problem_model.hpp.
Return a node by its id.
Definition at line 94 of file acoustic_problem_model.hpp.
|
inline |
Return array of nodes.
Definition at line 170 of file acoustic_problem_model.hpp.

|
inline |
Return the total number of nodes.
Definition at line 59 of file acoustic_problem_model.hpp.
|
inline |
Return the total number of receptors.
Definition at line 74 of file acoustic_problem_model.hpp.

|
inline |
Return the total number of sources.
Definition at line 69 of file acoustic_problem_model.hpp.

|
inline |
Return the total number of triangles.
Definition at line 64 of file acoustic_problem_model.hpp.
|
inline |
Return a receptor by its id.
Definition at line 109 of file acoustic_problem_model.hpp.
|
inline |
Return a receptor by its id.
Definition at line 114 of file acoustic_problem_model.hpp.
|
inline |
Return array of receptors.
Definition at line 186 of file acoustic_problem_model.hpp.
|
inline |
Return a source by its id.
Definition at line 99 of file acoustic_problem_model.hpp.
|
inline |
Return a source by its id.
Definition at line 104 of file acoustic_problem_model.hpp.
|
inline |
Return array of sources.
Definition at line 182 of file acoustic_problem_model.hpp.
|
inline |
Return a triangle by its id.
Definition at line 79 of file acoustic_problem_model.hpp.
|
inline |
Return a triangle by its id.
Definition at line 84 of file acoustic_problem_model.hpp.
|
inline |
Return array of triangles.
Definition at line 174 of file acoustic_problem_model.hpp.

|
protected |
Array of all materials.
Definition at line 208 of file acoustic_problem_model.hpp.
|
protected |
Array of all nodes.
Definition at line 206 of file acoustic_problem_model.hpp.
|
protected |
Array of all receptors.
Definition at line 210 of file acoustic_problem_model.hpp.
|
protected |
Array of all sources.
Definition at line 209 of file acoustic_problem_model.hpp.
|
protected |
Array of all triangles.
Definition at line 207 of file acoustic_problem_model.hpp.