Acoustic FDTD Solver
PML.hpp
Go to the documentation of this file.
1 #ifndef PML_HPP
2 #define PML_HPP
3 
4 #include "constant.hpp"
5 
9 class PML {
10  unsigned N;
11  double xi_rat;
12  double ka_max;
13  double al_max;
14  unsigned m;
15  unsigned m_alpha;
16 public:
17  PML();
27  PML(unsigned nLayers, double xi_ratio, double kappa_max, double alpha_max);
28 
32  PML(unsigned nLayers, double xi_ratio);
33  double getAlpha(const double delta, const unsigned i, const int flag) const;
42  double getXi(const double delta, const unsigned i, const int flag) const;
43  double getKappa(const double delta, const unsigned i, const int flag) const;
44  unsigned getnLayers() const;
45 };
46 
47 #endif
48