Acoustic FDTD Solver
ObservationRegion.hpp
Go to the documentation of this file.
1 #ifndef OBSERVATIONREGION_HPP
2 #define OBSERVATIONREGION_HPP
3 
4 #include "constant.hpp"
5 #include "Grid.hpp"
6 #include "H5.hpp"
7 
8 
14  double t;
15  std::vector<double> prim_y;
16  std::vector<double> prim_z;
17 
18  std::vector<double> time;
19  std::vector<double **> prs;
21 public:
23  ObservationRegion(double time_elapse, const Grid &grid);
24  void recordPressureField(const Grid &grid,
25  const double* const *prs_curr,
26  const unsigned &i,
27  const double &dt);
28  void recordVelcityField(const Grid &grid,
29  const double* const *u_y_curr,
30  const double **u_z_curr,
31  const double &curr_time,
32  const double &dt);
38  void write(const std::string file_name);
40 };
41 
42 #endif