Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
TYSolverDefaultSolver Class Reference

Default solver. More...

#include <TYSolverDefaultSolver.h>

Inheritance diagram for TYSolverDefaultSolver:
Inheritance graph
[legend]
Collaboration diagram for TYSolverDefaultSolver:
Collaboration graph
[legend]

Public Member Functions

 TYSolverDefaultSolver ()
 Constructor. More...
 
virtual ~TYSolverDefaultSolver ()
 Destructor. More...
 
TYAcousticModelDefaultSolvergetAcousticModel ()
 Get acoustic model. More...
 
- Public Member Functions inherited from TYSolver
 TYSolver ()
 Constructor. More...
 
virtual ~TYSolver ()
 Destructor. More...
 
void init ()
 Initialize solver This method must be called after instantiation of a solver. More...
 
virtual bool solve (const tympan::AcousticProblemModel &aproblem, tympan::AcousticResultModel &aresult, tympan::LPSolverConfiguration configuration)
 Launch the resolution and get the results. More...
 
const std::vector< TYStructSurfIntersect > & getTabPolygon () const
 Get the array of polygons. More...
 
TYFaceSelectorgetFaceSelector ()
 Get the face selector. More...
 
TYAcousticPathFindergetAcousticPathFinder ()
 Get the acoustic path finder. More...
 
const ScenegetScene () const
 Get the Scene. More...
 
void selectFaces (std::deque< TYSIntersection > &tabIntersect, const OSegment3D &rayon, const string &sourceVolumeId)
 Delegate to _faceSelector the build of the array of intersections. More...
 
- Public Member Functions inherited from SolverInterface
 SolverInterface ()
 
virtual ~SolverInterface ()
 
virtual void purge ()
 

Protected Member Functions

std::unique_ptr< TYAcousticModelDefaultSolvermake_acoustic_model ()
 TYAcousticModel builder. More...
 
- Protected Member Functions inherited from TYSolver
std::unique_ptr< TYFaceSelectormake_face_selector ()
 TYFaceSelector builder. More...
 
std::unique_ptr< TYAcousticPathFindermake_path_finder ()
 TYAcousticPathFinder builder. More...
 

Protected Attributes

std::unique_ptr< TYAcousticModelDefaultSolver_acousticModel
 Pointer to the TYAcousticModel. More...
 
- Protected Attributes inherited from TYSolver
std::unique_ptr< TYFaceSelector_faceSelector
 Pointer to the TYFaceSelector. More...
 
std::unique_ptr< TYAcousticPathFinder_acousticPathFinder
 Pointer to the TYAcousticPathFinder. More...
 
OThreadPool_pool
 

Private Member Functions

void clearTabTrajets () override
 Clear the array of TYTrajetDefaultSolver. More...
 
void addNewTaskForOneTrajetSrcRcp (const tympan::AcousticProblemModel &aproblem, unsigned int src_index, unsigned int rcp_index, int nbTrajetsForThisSource, int nNbTrajets) override
 Instanciate a new task to compute a Trajet. More...
 
void buildAcousticModel () override
 Build the acoustic model. More...
 
void initAcousticModel () override
 Initialize the acoustic model. More...
 
void displayRaysInGUI (tab_acoustic_path &) override
 Keep rays in tab in order to display them in GUI. More...
 
void buildResultsMatrix (int nSourceTrajetsNumber, tympan::SpectrumMatrix &matrix) override
 Build the matrix of the results for a given source and all the receptors These results are the resulting spectrum of acoustic pressure in Pa at each receptor due to this source. More...
 
void deleteTrajets () override
 Delete all the Trajets. More...
 

Private Attributes

std::vector< TYTrajetDefaultSolver * > _tabTrajets
 Vector of TYTrajetDefaultSolver. More...
 

Detailed Description

Default solver.

Definition at line 34 of file TYSolverDefaultSolver.h.

Constructor & Destructor Documentation

◆ TYSolverDefaultSolver()

TYSolverDefaultSolver::TYSolverDefaultSolver ( )

Constructor.

Definition at line 23 of file TYSolverDefaultSolver.cpp.

Here is the call graph for this function:

◆ ~TYSolverDefaultSolver()

TYSolverDefaultSolver::~TYSolverDefaultSolver ( )
virtual

Destructor.

Definition at line 29 of file TYSolverDefaultSolver.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addNewTaskForOneTrajetSrcRcp()

void TYSolverDefaultSolver::addNewTaskForOneTrajetSrcRcp ( const tympan::AcousticProblemModel aproblem,
unsigned int  src_index,
unsigned int  rcp_index,
int  nbTrajetsForThisSource,
int  nNbTrajets 
)
overrideprivatevirtual

Instanciate a new task to compute a Trajet.

Parameters
aproblemThe acoustic problem
src_indexIndex of the source in the acoustic problem
rcp_indexIndex of the receptor in the acoustic problem
nbTrajetsForThisSourceNumber of routes already created for the considered source
nNbTrajetsTotal number of routes already created

Implements TYSolver.

Definition at line 47 of file TYSolverDefaultSolver.cpp.

Here is the call graph for this function:

◆ buildAcousticModel()

void TYSolverDefaultSolver::buildAcousticModel ( )
overrideprivatevirtual

Build the acoustic model.

Implements TYSolver.

Definition at line 62 of file TYSolverDefaultSolver.cpp.

Here is the call graph for this function:

◆ buildResultsMatrix()

void TYSolverDefaultSolver::buildResultsMatrix ( int  nSourceTrajetsNumber,
tympan::SpectrumMatrix matrix 
)
overrideprivatevirtual

Build the matrix of the results for a given source and all the receptors These results are the resulting spectrum of acoustic pressure in Pa at each receptor due to this source.

Parameters
nSourceTrajetsNumberThe number of routes for a given source to all the receptors
matrixThe global contribution matrix

Implements TYSolver.

Definition at line 86 of file TYSolverDefaultSolver.cpp.

◆ clearTabTrajets()

void TYSolverDefaultSolver::clearTabTrajets ( )
overrideprivatevirtual

Clear the array of TYTrajetDefaultSolver.

Returns

Implements TYSolver.

Definition at line 39 of file TYSolverDefaultSolver.cpp.

Here is the caller graph for this function:

◆ deleteTrajets()

void TYSolverDefaultSolver::deleteTrajets ( )
overrideprivatevirtual

Delete all the Trajets.

Implements TYSolver.

Definition at line 97 of file TYSolverDefaultSolver.cpp.

◆ displayRaysInGUI()

void TYSolverDefaultSolver::displayRaysInGUI ( tab_acoustic_path tabRays)
overrideprivatevirtual

Keep rays in tab in order to display them in GUI.

Parameters
tabRaysThe tab of rays

Implements TYSolver.

Definition at line 75 of file TYSolverDefaultSolver.cpp.

◆ getAcousticModel()

TYAcousticModelDefaultSolver* TYSolverDefaultSolver::getAcousticModel ( )
inline

Get acoustic model.

Definition at line 40 of file TYSolverDefaultSolver.h.

Here is the caller graph for this function:

◆ initAcousticModel()

void TYSolverDefaultSolver::initAcousticModel ( )
overrideprivatevirtual

Initialize the acoustic model.

Implements TYSolver.

Definition at line 70 of file TYSolverDefaultSolver.cpp.

◆ make_acoustic_model()

std::unique_ptr< TYAcousticModelDefaultSolver > TYSolverDefaultSolver::make_acoustic_model ( )
protected

TYAcousticModel builder.

Definition at line 34 of file TYSolverDefaultSolver.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _acousticModel

std::unique_ptr<TYAcousticModelDefaultSolver> TYSolverDefaultSolver::_acousticModel
protected

Pointer to the TYAcousticModel.

Definition at line 47 of file TYSolverDefaultSolver.h.

◆ _tabTrajets

std::vector<TYTrajetDefaultSolver*> TYSolverDefaultSolver::_tabTrajets
private

Vector of TYTrajetDefaultSolver.

Definition at line 50 of file TYSolverDefaultSolver.h.


The documentation for this class was generated from the following files: