Acoustic FDTD Solver
PointSensor.hpp
Go to the documentation of this file.
1 #ifndef POINTSENSOR_HPP
2 #define POINTSENSOR_HPP
3 
4 #include "constant.hpp"
5 #include "Sensor.hpp"
6 
10 class PointSensor : public Sensor {
11  double x;
12  std::vector<std::vector<unsigned> > coord;
13  std::vector<double> sen_weight;
14  double *sen_p;
15  unsigned length;
16  std::string name;
17 public:
18  double y;
19  double z;
20 public:
21  PointSensor(const std::string &name);
22  PointSensor(const std::string &name, const double y, const double z);
23  PointSensor(const std::string &name, const CartPosition &pos);
27  virtual void initialize(const Grid &grid, const unsigned nTimeSteps);
28  virtual void recordPressureField(double **field, const unsigned i);
29  virtual int clear();
30  virtual ~PointSensor();
31  const double *getData() const;
32  unsigned getLength() const;
33  std::string getName() const;
34 };
35 
36 #endif