Code_TYMPAN
4.2.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) |
Push a representation of a ground material into the model. 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 40 of file acoustic_problem_model.hpp.
|
inline |
Definition at line 44 of file acoustic_problem_model.hpp.
|
inlinevirtual |
Constructor.
Definition at line 45 of file acoustic_problem_model.hpp.
material_ptr_t tympan::AcousticProblemModel::make_material | ( | const string & | name, |
double | resistivity, | ||
double | deviation, | ||
double | length | ||
) |
Push a representation of a ground material into the model.
name | the name of the material |
resistivity | the resistivity of the ground, expressed in kRayls (TO BE CONFIRMED) |
deviation | the deviation of the ground |
length | medium length |
Definition at line 79 of file acoustic_problem_model.cpp.
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 87 of file acoustic_problem_model.cpp.
Destructor.
Maps a Point
or OPoint3D
as a node_ref
Definition at line 60 of file acoustic_problem_model.cpp.
|
inline |
Call make_node(Point) with a point given by its coordinates.
Definition at line 54 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 105 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 95 of file acoustic_problem_model.cpp.
triangle_idx tympan::AcousticProblemModel::make_triangle | ( | node_idx | n1, |
node_idx | n2, | ||
node_idx | n3 | ||
) |
Definition at line 73 of file acoustic_problem_model.cpp.
|
inline |
Return a material by its id.
Definition at line 99 of file acoustic_problem_model.hpp.
|
inline |
Return a material by its id.
Definition at line 102 of file acoustic_problem_model.hpp.
|
inline |
Return array of materials.
Definition at line 144 of file acoustic_problem_model.hpp.
|
inline |
Return the total number of materials.
Definition at line 96 of file acoustic_problem_model.hpp.
Return a node by its id.
Definition at line 77 of file acoustic_problem_model.hpp.
Return a node by its id.
Definition at line 80 of file acoustic_problem_model.hpp.
|
inline |
Return array of nodes.
Definition at line 142 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 68 of file acoustic_problem_model.hpp.
|
inline |
Return the total number of sources.
Definition at line 65 of file acoustic_problem_model.hpp.
|
inline |
Return the total number of triangles.
Definition at line 62 of file acoustic_problem_model.hpp.
|
inline |
Return a receptor by its id.
Definition at line 89 of file acoustic_problem_model.hpp.
|
inline |
Return a receptor by its id.
Definition at line 92 of file acoustic_problem_model.hpp.
|
inline |
Return array of receptors.
Definition at line 146 of file acoustic_problem_model.hpp.
|
inline |
Return a source by its id.
Definition at line 83 of file acoustic_problem_model.hpp.
|
inline |
Return a source by its id.
Definition at line 86 of file acoustic_problem_model.hpp.
|
inline |
Return array of sources.
Definition at line 145 of file acoustic_problem_model.hpp.
|
inline |
Return a triangle by its id.
Definition at line 71 of file acoustic_problem_model.hpp.
|
inline |
Return a triangle by its id.
Definition at line 74 of file acoustic_problem_model.hpp.
|
inline |
Return array of triangles.
Definition at line 143 of file acoustic_problem_model.hpp.
|
protected |
Array of all materials.
Definition at line 167 of file acoustic_problem_model.hpp.
|
protected |
Array of all nodes.
Definition at line 165 of file acoustic_problem_model.hpp.
|
protected |
Array of all receptors.
Definition at line 169 of file acoustic_problem_model.hpp.
|
protected |
Array of all sources.
Definition at line 168 of file acoustic_problem_model.hpp.
|
protected |
Array of all triangles.
Definition at line 166 of file acoustic_problem_model.hpp.