Acoustic FDTD Solver
HardPlaneWaveSource.hpp
Go to the documentation of this file.
1 #ifndef HARDPLANEWAVESOURCE_HPP
2 #define HARDPLANEWAVESOURCE_HPP
3 
4 #include "constant.hpp"
5 #include "Function.hpp"
6 #include "Gaussian.hpp"
8 #include "Sinusoid.hpp"
9 #include "Scalar.hpp"
10 
11 
12 
28 public:
29  double theta;
30  double y_0;
31  double z_0;
34  double T;
35 public:
55  HardPlaneWaveSource(const double incident_angle,
56  const double y_coord,
57  const double z_coord,
58  const double freq,
59  const double t_spread,
60  const double s_spread);
61 
62 
77  HardPlaneWaveSource(const double incident_angle,
78  const double y_coord,
79  const double z_coord,
80  const double freq,
81  const unsigned nPeriods,
82  const double s_spread);
83 
98  HardPlaneWaveSource(const double incident_angle,
99  const double y_coord,
100  const double freq,
101  const double t_spread);
102 
110  double getSpatialWaveform(const double z) const;
111 
119  double getTemporalWaveform(const double t, const double z, const double v_p) const;
120 
121 
122  double getFrequency();
123 
124 };
125 
126 #endif