Acoustic FDTD Solver
Sinusoid.hpp
Go to the documentation of this file.
1 #ifndef SINUSOID_HPP
2 #define SINUSOID_HPP
3 
4 #include "constant.hpp"
5 
6 #include "Function.hpp"
7 
8 
9 class Sinusoid:public Function {
10  double f_c;
11  double A;
12  unsigned n;
13 
14 public:
26  Sinusoid(const double magnitude,
27  const double frequency,
28  const unsigned ramp_period=1);
29  virtual double getValue(const double x) const;
30  virtual void setScale(const double x);
31  virtual double getDf(const double x) const;
32  virtual double getFrequency() const;
33  int getType() const;
34  virtual ~Sinusoid() {}
35 };
36 
37 #endif