32 #ifndef OPENPSTD_RECEIVER_H 33 #define OPENPSTD_RECEIVER_H 38 #include "../KernelInterface.h" 42 #include "kernel_functions.h" 43 #include "WisdomCache.h" 82 std::shared_ptr<PSTDSettings>
config;
102 Receiver(std::vector<float> location, std::shared_ptr<PSTDSettings> config,
int id,
103 std::shared_ptr<Domain> container);
125 float compute_with_nn();
131 float compute_with_si();
136 Eigen::ArrayXXf calc_domain_fields(std::shared_ptr<Domain> container,
CalcDirection bt);
143 #endif //OPENPSTD_RECEIVER_H This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
Receiver(std::vector< float > location, std::shared_ptr< PSTDSettings > config, int id, std::shared_ptr< Domain > container)
Initializes a receiver on coordinates (x,y,z) in grid space (not fixed to integers) ...
Definition: Receiver.cpp:34
std::shared_ptr< PSTDSettings > config
Config file containing the receiver parameters.
Definition: Receiver.h:82
CalcDirection
Helper enums - used to distinguish horizontal boundaries from vertical boundaries.
Definition: kernel_functions.h:71
std::vector< float > location
Unrounded (grid) location.
Definition: Receiver.h:67
Point grid_location
Integer grid location.
Definition: Receiver.h:72
float compute_local_pressure()
Calculates the sound pressure at the receiver at the current time step.
Definition: Receiver.cpp:46
std::shared_ptr< Domain > container_domain
Domain containing the receiver.
Definition: Receiver.h:87
The points of the grid, represented by 2D integer vectors.
Definition: Geometry.h:43
std::vector< float > received_values
Vector of observed pressure values in the receiver.
Definition: Receiver.h:93
Measure pressure values on a fixed location in the scene.
Definition: Receiver.h:56
std::vector< float > grid_offset
Distance from the receiver to the top left of the cell.
Definition: Receiver.h:77