![]() |
openPSTD
2.0
Open source simulation for sound propagation in urban environments
|
Locations and amplitude of initial sound pressure. More...
#include <Speaker.h>

Public Member Functions | |
| Speaker (std::vector< float > location) | |
| Speaker initialization with coordinates from scene. More... | |
| void | addDomainContribution (std::shared_ptr< Domain > domain) |
| Adds the initial sound pressure to the domain values. More... | |
Public Attributes | |
| const float | x |
| const float | y |
| const float | z |
| std::vector< float > | location |
| Point | grid_point = Point((int) x, (int) y, (int) z) |
| std::vector< float > | grid_offset |
Locations and amplitude of initial sound pressure.
This class is a 'wrapper' around a gaussian kernel contribution. Note that speaker locations (just like receiver locations) are defined on the grid, but don't need to lie on grid points; their coordinates are not rounded off.
| OpenPSTD::Kernel::Speaker::Speaker | ( | std::vector< float > | location | ) |
Speaker initialization with coordinates from scene.
| location | vector of world coordinates |
| void OpenPSTD::Kernel::Speaker::addDomainContribution | ( | std::shared_ptr< Domain > | domain | ) |
Adds the initial sound pressure to the domain values.
The initial pressure shape is a Gaussian, defined as
with bandwidth
and speaker location
.
| domain | domain to compute sound pressure contribution for |
1.8.11