diff --git a/FDTD/excitation.cpp b/FDTD/excitation.cpp index 4e1ba85..b750c91 100644 --- a/FDTD/excitation.cpp +++ b/FDTD/excitation.cpp @@ -53,7 +53,7 @@ void Excitation::Reset( double timestep ) m_foi = 0; } -bool Excitation::SetupGaussianPulse(double f0, double fc) +void Excitation::SetupGaussianPulse(double f0, double fc) { m_Excit_Type = Excitation::GaissianPulse; m_f0 = f0; @@ -62,7 +62,7 @@ bool Excitation::SetupGaussianPulse(double f0, double fc) m_SignalPeriod = 0; } -bool Excitation::SetupSinusoidal(double f0) +void Excitation::SetupSinusoidal(double f0) { m_Excit_Type = Excitation::Sinusoidal; m_f0 = f0; @@ -70,21 +70,21 @@ bool Excitation::SetupSinusoidal(double f0) m_SignalPeriod = 1/f0; } -bool Excitation::SetupDiracPulse(double fmax) +void Excitation::SetupDiracPulse(double fmax) { m_Excit_Type = Excitation::DiracPulse; m_SignalPeriod = 0; m_f_max = fmax; } -bool Excitation::SetupStepExcite(double fmax) +void Excitation::SetupStepExcite(double fmax) { m_Excit_Type = Excitation::Step; m_SignalPeriod = 0; m_f_max = fmax; } -bool Excitation::SetupCustomExcite(string str, double f0, double fmax) +void Excitation::SetupCustomExcite(string str, double f0, double fmax) { m_Excit_Type = Excitation::CustomExcite; m_CustomExc_Str = str; diff --git a/FDTD/excitation.h b/FDTD/excitation.h index 8ae3a5b..b43ad28 100644 --- a/FDTD/excitation.h +++ b/FDTD/excitation.h @@ -31,11 +31,11 @@ public: virtual void Reset( double timestep ); - bool SetupGaussianPulse(double f0, double fc); - bool SetupSinusoidal(double f0); - bool SetupDiracPulse(double fmax); - bool SetupStepExcite(double fmax); - bool SetupCustomExcite(std::string str, double f0, double fmax); + void SetupGaussianPulse(double f0, double fc); + void SetupSinusoidal(double f0); + void SetupDiracPulse(double fmax); + void SetupStepExcite(double fmax); + void SetupCustomExcite(std::string str, double f0, double fmax); double GetCenterFreq() {return m_f0;} double GetCutOffFreq() {return m_fc;}